Unable to link T2080 U-Boot executable and source in code warrior 10.4.

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

Unable to link T2080 U-Boot executable and source in code warrior 10.4.

782 Views
karunakaranradh
Contributor IV

I am not able to link with U-Boot executable.

 

Kindly, help us to connect the u-boot executable in code warrior. Below, I mention my step to connect the code warrior.

 

Step 1: Select File->Import and choose the  code warrior executable importer.

 

22300_22300.bmp001.bmp

 

Step 2: Give the project name

22301_22301.bmp002.bmp

 

Step 3: Select uboot executable.

 

22302_22302.bmp004.bmp

 

Step 4: Select Processor Type.

22303_22303.bmp005.bmp

Step 5: In Target setting, select connection type as codewarrior Tap (over USB) and enable attach for launch.

22304_22304.bmp006.bmp

 

Step 6: select Core 0 for configuration and finish.

22305_22305.bmp007.bmp

 

Step 7: In Debug Configuration, Remove all Initialization in attach configuration for debug.

22308_22308.bmp008.bmp

22306_22306.bmp009.bmp

22307_22307.bmp010.bmp

 

Step 9: After attached, debug viewer two thread are created, one is shown reset vector address which is not ask for source for lookup and another thread is shown 0x0 address but it is ask for fdt.c file for source lookup.

 

22312_22312.bmp012_01.bmp

 

22313_22313.bmp013_01.bmp

 

Kindly help me, where i did mistake.

same procedure i followed for P1022 processor. it was working. but here is not taken.

Labels (1)
0 Kudos
3 Replies

368 Views
lunminliang
NXP Employee
NXP Employee

Hello Karunakaran Radhakrishnan,

As the AN4876 suggests in Section 4.2 Configure initialization file of project for debugging, you need to choose U-Boot initialization file. Copy below:

1. Choose Run > Debug configurations, to open the Debug configurations dialog.

2. Select Project name from the left pane and from the right pane, under Main tab – Target settings, select Edit.

3. From the Hardware or Simulator Connection dialog, select Edit to edit the target.

4. From the Initialization tab, browse to the location of U_Boot initialization file and add its location in the Initialize target.

5. Navigate to Memory tab and deselect Memory configuration.

6. Select OK to exit the Debug configurations dialog.

Regards

Lunmin

0 Kudos

368 Views
karunakaranradh
Contributor IV

Hi Lunmin , Hi Adrian,

Thanks for your reply.

Default Reset vector Address is 0xFFFFFFFC. My Uboot reset vector address is 0xEFFFFFFC.

initialize nor flash in the script and change the PC reg to effffffc.

Now, I can able to debug using the u-boot source in code warrior.

Thanks,

Karunakaran R

0 Kudos

368 Views
addiyi
NXP Employee
NXP Employee

Take a look on this document for more info about U-Boot debugging using CodeWarrior - CodeWarrior U-Boot Debugging

Adrian

0 Kudos