2025-11-19 3:01 PM - edited 2025-11-19 3:03 PM
I'm trying to debug TF-A BL2 on my stm32mp157f-dk2 kit
1. Memory card is setup. Partition 1&2 is copied with TF-A
2. I'm expecting that if I connect a debugger, open a debug session with open OCD and gdb , I would be able to connect to the target
3. I would set breakpoint at entry point of BL2 and reset the target by debugger.
4. After reset I would be able to halt the CPU at entry point and then I go on with debugging..
Is this approach valid?
Or it's not possible to debug TF-A with this method?
I tried it and I find problems:
1. I can put breakpoint on bl2_main but it never hits.
2. I can't reset and get the connection back by using stm32cubeide
3. Can't access the address 0x2ffcxxxx
Can someone shed light on this topic?
2025-11-20 2:13 AM
Hi @embeddedbro
Did you read How to debug TF-A BL2 - stm32mpu ?
Olivier