You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried debugging an STM32F722 with blackmagic probe, and it worked... until my code grew bigger.
I looked into the code, the memory region for both flash and RAM are incorrect.
How to reproduce
Place a breakpoint in a code located after 0x210000 (flash on ITCM interface)
set mem inaccessible-by-default off
Run code: the code does not stop at the breakpoint
Solution
RAM
It had no effect in my situation, but I replaced these two lines:
I am not confident in doing a pull request because of the intricate code paths.
If I had to do it, I would probably try to replace all the if... else... by an array of structures defining the memory map for each devices. I am not sure that this is the path you want to take, and maybe there are issues with this method I don't foresee, so I am leaving it to you to decide what to do.
The text was updated successfully, but these errors were encountered:
I tried debugging an STM32F722 with blackmagic probe, and it worked... until my code grew bigger.
I looked into the code, the memory region for both flash and RAM are incorrect.
How to reproduce
set mem inaccessible-by-default off
Solution
RAM
It had no effect in my situation, but I replaced these two lines:
blackmagic/src/target/stm32f4.c
Lines 425 to 426 in 729b773
with
Flash
And I made it work by replacing these 2 lines:
blackmagic/src/target/stm32f4.c
Lines 477 to 478 in 729b773
with
Which is exactly the code a few lines below, except the STM32F72xxx is not dual bank.
blackmagic/src/target/stm32f4.c
Lines 486 to 492 in 729b773
Next steps
I am not confident in doing a pull request because of the intricate code paths.
If I had to do it, I would probably try to replace all the
if... else...
by an array of structures defining the memory map for each devices. I am not sure that this is the path you want to take, and maybe there are issues with this method I don't foresee, so I am leaving it to you to decide what to do.The text was updated successfully, but these errors were encountered: