How to display position independent code(PIC) symbols in Code Warrior IDE 10.0.9?

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

How to display position independent code(PIC) symbols in Code Warrior IDE 10.0.9?

Jump to solution
1,322 Views
janmejayjoshi
Contributor I

I am trying to debug position independent source code(PIC) in Code Warrior IDE. But I am not able see symbols for the same in command window, but I'm able to see disassembly.

 

Can anyone help me in this?
Is there any Code Warrior configuration required for this?

Thanks in advance.

Labels (1)
0 Kudos
1 Solution
1,033 Views
addiyi
NXP Employee
NXP Employee

For your case, you need to calculate correctly the PIC. Take a look on Chapter 8, from https://community.nxp.com/docs/DOC-333745 .

Adrian

View solution in original post

0 Kudos
4 Replies
1,033 Views
addiyi
NXP Employee
NXP Employee

The command for handling PIC is setpicloadaddr, indicaticating where a PIC executable is loaded.

Adrian

0 Kudos
1,033 Views
janmejayjoshi
Contributor I

addiyi‌: I have already tried with this command, but it is not much useful to me.
I am able see source code for my static binaries while debugging on CW.
I want to achieve same for the PIC enabled shared libraries. "setpic" command will tell debugger that PIC enabled code is at <addr> address, so that it can be debugged from there.

I want to iterate line by line in my source with debugging for PIC binary, just like we can see static binaries' code.

All my source is already attached with loaded project.

0 Kudos
1,034 Views
addiyi
NXP Employee
NXP Employee

For your case, you need to calculate correctly the PIC. Take a look on Chapter 8, from https://community.nxp.com/docs/DOC-333745 .

Adrian

0 Kudos
1,033 Views
janmejayjoshi
Contributor I

Thanks addiyi, it worked for me, after some tweaking with the command for specific address.

0 Kudos