init upload + readme + error handling
This commit is contained in:
25
ReadMe.md
Normal file
25
ReadMe.md
Normal 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.
|
Reference in New Issue
Block a user