Skip to main content
Associate III
November 19, 2025
Question

TF-A BL2 Debugging issue

  • November 19, 2025
  • 1 reply
  • 133 views

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?

 

1 reply

Olivier GALLIEN
Technical Moderator
November 20, 2025

Hi @embeddedbro 

 

Did you read How to debug TF-A BL2 - stm32mpu

 

Olivier 

Olivier GALLIEN In order 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.