Open mrquincle opened 3 years ago
The branch https://github.com/crownstone/crownstone-microapp/tree/srec_cat/scripts/srec_cat contains all manipulations using a combination of srecord
and other command line tools such as dd
or cut
to create a proper header. This means that you can run the compiler/linker only once and then do the manipulations afterwards without having to run it another time. In platform.io or with the arduino sdk you might actually benefit from some scripting to do so. A python script (that is independent of the bluenet libs) would be much easier to write and maintain than the bash scripts in the scripts/srec_cat
directory of this branch.
Calculating the CRC in python itself is already available in CRC.py
.
There's just for building the microapp a dependency on python, worse, there's a dependency on a particular python script:
This dependency should be removed. It is fine that there is a way to upload microapps using python, but to just compile the microapps, there should be no dependency on python scripts or pip packages.