Debugging from bank 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-04 2:35 AM
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 ?
- Labels:
-
DEBUG
-
Flash
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-04 12:50 PM
So you run application from bank2 ? Can't use debug option in stm32cubeide?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-04 1:13 PM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-04 2:42 PM
yes, I can flash my code into bank 2 using stm32 st-link utility tool
but cannot debug it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-15 10:32 AM
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.
