cancel
Showing results for 
Search instead for 
Did you mean: 

question about STM32G474 dual banks

MPME_240117
Associate II

I have a test question about STM32G474 dual banks to ask :
A test program for LED flashing has been successfully constructed in the IAR environment.
Use STM32CubeProgrammer to load BANK1 starting from 0X8000000, DBANK=1,BFB2=0, and the program runs OK
When BANK2 starting from 0x8040000 is loaded, DBANK=1 and BFB2=1, the program cannot run
May I ask to see if there are any problems with my application Settings

thank you

3 REPLIES 3
mƎALLEm
ST Employee

Hello,

Look at the example provided in the STM32G4 Cube package especially the example FLASH_DualBoot located at this Github link.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Thank you
Yes, I have referred to this program
Now I'm just verifying the deployment of the firmware in a manual way. Later, the program switching process will be placed in the program (my application is digital power firmware deployment and upgrade).
The firmware is fine when deployed on BANK1, but not on BANK2.
This is exactly what I want to consult.
You can also have a try.
Thank you for your reply

MPME_240117
Associate II

the process below:

微信图片_20250425193045.png微信图片_20250425193143.png微信图片_20250425193211.png微信图片_20250425193232.png微信图片_20250425193255.png微信图片_20250425193314.png微信图片_20250425193350.png