2024-05-09 05:35 AM - edited 2024-05-09 12:39 PM
Hi,
I am using the B-U585I-IOT20A Board and I want the board to notify me in some way if someone is attempting to access and modify its content via JTAG. Is there a way to do this?
Solved! Go to Solution.
2024-05-10 02:50 AM
Your intention gets less clearer with any new posting. What part should detect the intrusion? The MCU or the debugger? And you do not want detection of another kind of debugger "intusion"?
Did you check https://community.st.com/t5/stm32-mcus-products/how-to-check-at-runtime-if-a-debugger-is-connected/td-p/458687?
2024-05-09 05:43 AM
No, its not going to alert you to intrusion attempts.
You can disable the SWD/JTAG via Option Bytes / RDP Settings, in a permanent sense. Just be aware you'll not be able to use a debugger to program/debug the chip/board ever again.
2024-05-09 05:45 AM
You could perhaps not use, and associate PA13/PA14 with an EXTI, that interrupts if these signals are toggled/modulated. Use your imagination..
2024-05-09 06:02 AM
Does the Cortex-M33 have a register which tells you when a debugger is attached?
If it does, you could poll that.
If not, maybe something like this:
2024-05-09 06:06 AM
ITM_SendChar() etc should check flagging in assorted debug units
2024-05-09 06:13 AM
The thread title says, "Protection Against Unauthorized Access via JTAG", but the opening post just asks about detecting an attached debugger - so which one do you actually want to do?
2024-05-09 06:22 AM
U5 has system security. Read rm0456 chapter 75, especially 75.2.6 Security and 75.12. about debug authentication register. In the cube context, there should be examples and there are also presentations/tutorials about the subject,
2024-05-09 12:36 PM
I want to dettect an attached debugger
2024-05-09 12:37 PM
And it is posible to detect any access via ST-Link?
2024-05-10 02:50 AM
Your intention gets less clearer with any new posting. What part should detect the intrusion? The MCU or the debugger? And you do not want detection of another kind of debugger "intusion"?
Did you check https://community.st.com/t5/stm32-mcus-products/how-to-check-at-runtime-if-a-debugger-is-connected/td-p/458687?