Skip to main content
Abdelrahman
Associate
May 4, 2023
Question

Debugging from bank 2

  • May 4, 2023
  • 3 replies
  • 1250 views

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 ?

This topic has been closed for replies.

3 replies

Senior III
May 4, 2023

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

Dudo
Abdelrahman
Associate
May 4, 2023

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

but cannot debug it

Tesla DeLorean
Guru
May 4, 2023

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Technical Moderator
May 15, 2023

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL