Repository navigation
Modify the link address and default values of EEPROM for V203 - #463
Open
TianpeiLee wants to merge 1 commit into
Open
TianpeiLee wants to merge 1 commit into
TianpeiLee wants to merge 1 commit into
Conversation
…igurator failing to upgrade.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#462
The current AM32 Configurator cannot upgrade the firmware of V203.Testing revealed that when the bootloader reports a 64KB FLASH SIZE signature, the configurator recognizes it and processes it uniformly according to the base address 0x08000000, subtracting this base address from the address in the hex file. However, the V203's base address is linked using an offset of 0x0, causing the configurator to fail to upgrade the firmware for the V203's ESC.
Before it was modified, it would always get stuck on the screen below:

When capturing communication packets between the bootloader and configurator, the connection gets stuck after the handshake and then stops responding:

I was able to solve the problem by using the first two commands in the startup file to force the running PC to jump to the base address 0x08000000. There may be other solutions.
Once the modifications are complete, you can download and update the firmware normally:

Additionally, sending the default configuration now sets the beep tune section in the EEPROM to 0xFF. This eliminates the need to explicitly define ERASED_FLASH_BYTE as 0x39 in V203, otherwise the power-on startup tone will be incorrect. Therefore, I commented out the definition in targets.h.