HW breakpoint is not hit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HW breakpoint is not hit

972 Views
love_hate_and_repeat
Contributor III

i'm working on P2041RDB and have a codewarrior USB TAP for debugging purpose. i use codewarrior ide.

i want to debug early stage functions of u-boot like board_init_f function  and they reside in flash memory because

of that i can debug it with hardware breakpoint method but hardware breakpoint doesnt work.

even though i put a breakpoint in board_init_f function , u-boot code is running

if i debug a code area which it resides in RAM memory breakpoint is hit.

thanks in advance.

Tags (2)
0 Kudos
Reply
1 Reply

866 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the section "Debugging U-Boot from NOR for e500mc" in the step by step document CodeWarrior U-Boot Debugging.

Please make sure that you have already built u-boot with the debug option enabled. Please make sure that the the image programmed on NOR Flash is from the same build with the ELF imported into CodeWarrior to create the debug project.

Please set PIC load address as 0xfff80000 after attach and reset the target board.

Thanks,

Yiping

0 Kudos
Reply