init upload + readme + error handling

This commit is contained in:
2022-12-21 08:51:09 +01:00
commit 37cdda8f33
16 changed files with 2909 additions and 0 deletions

25
ReadMe.md Normal file
View File

@ -0,0 +1,25 @@
# Upload Tec Script
This Code is for uploading the [TECware](https://gitlab.psi.ch/coldbox/tec/tecware) to the TEC in the Coldbox environemen via the CAN Bus.
## Installation
- Please install python 3.6 on you PC / Raspberry PI
- then go to you terminal, jump to this directory
- go into the python directory: `cd python`
- install python library: `python setup.py install`
- then go back to the home directory
- copy the srec file from the [TECware](https://gitlab.psi.ch/coldbox/tec/tecware) reop to this directory
- (If you are on windows, please change you CAN Interface in the uploadtec.py script) [here](https://www.feaser.com/en/blog/2018/07/libopenblt-python-bindings-tutorial/) some infos
## Usage
to use this script the libopenblt.(so on linux)(dll on windows) library should be in the same directory.
on linux first reset the canbus with `./resetCAN.sh`.
the use the script to upload the code:
`python uploadtec.py [all/1-8] [filename]`
if the upload gets interrupted, the should restart the upload because th code on the TEC is now corrupted.
The Bootloader itself should not corrupt itself, so everything is save. These are 2 completly different and independent programms.