I'm attempting to program a hex file into an STM32G473CC microcontroller with jflash.
However, I'm encountering an issue with setting the controller configuration to single bank mode. Although the flash content reads correctly after disabling read protection, the program doesn't execute due to the current dual bank setup.
To resolve this, I've tried modifying the option bits to enable single bank mode specifically for the STM32G473CC. Here are the techniques I've tried so far:
None of the above techniques gives the wanted result.
What can I try next?
However, I'm encountering an issue with setting the controller configuration to single bank mode. Although the flash content reads correctly after disabling read protection, the program doesn't execute due to the current dual bank setup.
To resolve this, I've tried modifying the option bits to enable single bank mode specifically for the STM32G473CC. Here are the techniques I've tried so far:
- I added this at the end of my HEX file to program the configuration
:020000041FFFDC:04780000430F70AA18
- Edited line 66 in the jflash file to reset the bits that I want
ExitStep8_Value1 = 0xFB3FFF00
None of the above techniques gives the wanted result.
What can I try next?