larus-breeze / sw_sensor

Firmware for Larus sensor MK1 and MK2
3 stars 3 forks source link

Firmware update: Use Git Tag for uSD image generation #68

Closed MaxBaex closed 5 months ago

MaxBaex commented 6 months ago

https://github.com/larus-breeze/sw_sensor/blob/Klaus_work/sw_stm32/scripts/create-decimal-version-info.py creates the header sw_stm32/Core/Inc/git-commit-version.h file with git tag version information.

E.G. #define GIT_TAG_INFO "0.2.3-dirty"

use this tag information and also put it into the pack.toml file: https://github.com/larus-breeze/sw_sensor/blob/Klaus_work/sw_stm32/pack.toml

MaxBaex commented 6 months ago

@realtimepeople : Can we move the https://github.com/larus-breeze/sw_sensor/blob/Klaus_work/sw_stm32/pack.toml and https://github.com/larus-breeze/sw_sensor/blob/Klaus_work/sw_stm32/meta_data.c

to the folder Image_Loader?

Why do we need the file copy_stm32f407_1m.elf ?

MaxBaex commented 6 months ago

copy_stm32f407_1m.elf contains the copy program on top of the flash which copies the new firmware from the top to the bottom.

MaxBaex commented 5 months ago

Cleaned up git information header creation script. With commit #c168a89