How to generate a valid DFU project in STM32CUBEIDE
- September 13, 2021
- 7 replies
- 4330 views
Tested on : one pieces of NUCLEO-L152RE evm board.
I could create one DFU project(NUCLEO-L152-DFU) together with one APP project(NUCLEO-L152-BLINK) in STM32CUBEIDE towards STM32L152.
I could upgrade firmware in STM32CUBEPROGRAMMER as well.
After upgrading firmware, I pushed the reset button to make the MCU power-cycled. Then the bootloader identified the App firmware (base address = 0x801000) and tried to jump to "0x801093d". However, no expected logging information shown and LD2 didn't blink as wished as well.
Try to get button state
Button state: 1
Check hex-format data at address: 0x8010000
Jump to address: 0x801093d
I analyzed the App hex file, the starting-point address shoud be correct.
And the bytes in chip flash coincides with the data in hex file.
So I could confirm that the DFU programming process is unquestionable. There must be somthing wrong with the App firmware.
Could somebody help find the root cause why the APP firmware couldn't run as expected- output logging information during blinking peroid?
Toggle LD2
Toggle LD2
Toggle LD2
I guess there's something wrong with the APP project.
I'll be gratefull if you could give me a hand.
