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.
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