Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added bootloader update firmware #17

Merged
merged 4 commits into from
Sep 16, 2024
Merged

Conversation

tridge
Copy link
Member

@tridge tridge commented Sep 16, 2024

this adds an automatic build of a bootloader update firmware for all bootloaders

For example, it builds AM32_E230_BL_UPDATER_PB4_V12.hex which corresponds to AM32_E230_BOOTLOADER_PB4_V12.hex

when you load this firmware it pauses for 1.5s then replaces the bootloader with the new bootloader. If power is interrupted during this process then the ESC can only be recovered with a debug adapter.

If the currently installed bootloader is the same as the one embedded in the updater then the erase of the current bootloader is skipped

Once the new bootloader is written then the 3 possible eeprom locations are invalidated by writing 8 bytes of zero. This will prevent the updater firmware from running again

update: now builds an 'amj' file, AM32 json, as per @freasy idea
image

@tridge tridge force-pushed the pr-bl-update branch 2 times, most recently from 1b00e7a to 09b9350 Compare September 16, 2024 01:42
@tridge tridge force-pushed the pr-bl-update branch 2 times, most recently from a2f8eb0 to 6c9fb81 Compare September 16, 2024 08:49
@freasy freasy merged commit d2c44bd into am32-firmware:master Sep 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants