cancel
Showing results for 
Search instead for 
Did you mean: 

Debug port not enabled after exit of secure user area STM32H755, STM32H7B3

aco990
Associate III

Hi @Jocelyn RICARD,

im trying to enable the secure user memory on my custom bootloader for  STM32H755 and STM32H7B3 MCUs.
The bootloader is on the first bank and the app on the second bank. The secure user memory is enabled successfully on bank 1 but jumping on Bank 2 with the follwing instruction works. But the debug port is not reopened before jumping to the application. I can see that the app is running (through a blinky led) but i cannot attach using cube programmer in hotplug mode:

RSS_API->exitSecureArea(userAppAddress, RSS_ENABLE_JTAG_AT_EXIT);


My question is, what is the value of RSS_ENABLE_JTAG_AT_EXIT ? Is it mcu dependent?
The reference Manual does not give any info about the value of the macro:

aco990_0-1753114156983.png

Could you help?
Thank you!

@VPanc.1 , @gpeh@Fred , @Tesla DeLorean 

0 REPLIES 0