Debugging U-boot T1042

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debugging U-boot T1042

跳至解决方案
2,881 次查看
yusufalti333
Contributor IV

Hello community, using T1042RDB, I am trying to debug my own u-boot ( sdk compiled ) with Code warrior to learn how it works. 

I have a custom board and I want to debug my customized u-boot on it later.

According to https://www.nxp.com/docs/en/application-note/AN4876.pdf, 5.2.2.  Stage 1 – Debug NOR for AS0, after I wrote "setpicloadaddr 0xfff80000" command to shell, I think I had some kind of error. "No source available for "0x00000000FFFFFFFFFC (0x00000000FFFFFFFFFC)0 " and "?" on the given memory locations in Disassembly screen. 

What is the meaning of "?" ? How can resolve this? What is the procedure to debug U-boot with T1042 processor ? I also tried "setpicloadaddr 0xe800000" which is nor flash adress of t1042 rdb. Nothing changed.

Thanks.

pastedImage_1.png

标签 (1)
0 项奖励
回复
1 解答
2,766 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please click Locate File to specify the path of resetvec.S on your Windows PC.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,766 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In the Debugger Shell view, issue the following command to enter the PIC alternate load address:

"setpicloadaddr 0xFFF40000" 

For details, please refer to section "7.6.4.2 Debugging U-Boot using NOR flash" in C:\Freescale\CW_PA_v10.5.1\PA\Help\PDF\Targeting_PA_Processors.pdf

0 项奖励
回复
2,766 次查看
yusufalti333
Contributor IV

Capture.PNGHello mr wang,

After the steps in C:\Freescale\CW_PA_v10.5.1\PA\Help\PDF\Targeting_PA_Processors.pdf, It appears debugger wants to locate source code of compiled u-boot exactly at where it has compiled. I am compiling u-boot in with a linux desktop and trying to debug with different windows desktop. I copied the source code to windows PC. What procedure should I  follow to make debugger see this source file. It's still searching where it was compiled in Linux ( root path is starting with "/" ) 

Thanks

0 项奖励
回复
2,767 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please click Locate File to specify the path of resetvec.S on your Windows PC.

0 项奖励
回复