cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging from bank 2

Abdelrahman
Associate

I'm working with Nucleo-f439zi board.

I use dual banking feature.

I cannot find a way to debug from bank 2

how to debug application from bank 2 ?

4 REPLIES 4
Kamil Duljas
Senior III

So you run application from bank2 ? Can't use debug option in stm32cubeide?​

Dudo

The debugger can see the memory as the MCU sees it.

Add some code to map the banks appropriately, and step into and across the control transfer.

Perhaps build a loader in such a way that it is duplicated in the front of both banks, and then "forks" into the application in the bank of interest.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

yes, I can flash my code into bank 2 using stm32 st-link utility tool

but cannot debug it

FBL
ST Employee

Hello @Abdelrahman​ 

You may want to check this example \STM32Cube\Repository\STM32Cube_FW_F4_V1.27.1\Projects\STM324x9I_EVAL\Examples\FLASH\FLASH_DualBoot\

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.