"Connect" debug session type doesn't work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

"Connect" debug session type doesn't work

ソリューションへジャンプ
5,294件の閲覧回数
oznurcaliskan
Contributor III

Hi,

I am using CodeWarrior for MCU Version: 10.6 on my computer. I am trying to connect to the target without downloading. So, I tried to connect it with the "Connect" debug session type but it gives me an error "No source available for '0x00100068 (0x00100068)()'" and I cannot see the Variable's content or any of them. 

P.S.: The address it gives in an error is my Reset Vector Value for Bootloader. If it gives you any hint.

I tried connecting it with the "Custom" debug session by unchecking the boxes "Execute reset sequence" and "Execute initialization script", but it also downloaded it which I don't want. 

If anybody knows the settings need to be done, I appreciate it.

Thank you,

Öznur Çalışkan

タグ(4)
0 件の賞賛
返信
1 解決策
5,049件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, it's interesting that this doesn't work. Something similar works in S32 Design Studio.

Anyway, I found quick workaround - go to Debugger tab and add elf file like this:

lukaszadrapa_0-1683729194903.png

 

Then you should see the source code. It is possible to add more elf files here, so you can add elf files for both bootloader and application. I didn't test more elf files but I expect this should work.

Hope this helps.

Regards,

Lukas

元の投稿で解決策を見る

10 返答(返信)
5,260件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, let me get into your case and when I have more information, I will contact you.

Best regards,
Pavel

0 件の賞賛
返信
5,227件の閲覧回数
oznurcaliskan
Contributor III

Hi Pavel,

Thank you for your quick reply. Please let me know if you need more details about this case. Looking forward to reaching a solution to this problem.

Kind regards,

Öznur Çalışkan

0 件の賞賛
返信
5,194件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

sorry for the late response, I have more questions, could you share an image of this issue? and could you tell me about the part you are using?

Best regards,
Pavel

0 件の賞賛
返信
5,179件の閲覧回数
oznurcaliskan
Contributor III

Hi again,

Sure. Firstly, I am using the "Connect" debug session with the settings below; 

oznurcaliskan_0-1683189551065.png

The steps I am following are; I am uploading my bootloader code to a board and I want to be able to connect to the board to view the variables' change without downloading another code with the Connect debug session type I am getting the error below; (but, code doesn't crush down, it just stops and when I try to rerun it gives the same error with another hex values every time.)

 
 

oznurcaliskan_3-1683189772411.png

So, I thought it maybe cannot reset itself? But, I couldn't find any debug configuration settings that need to be done for connecting to target. 

Thank you,

Kind regards.

 

 

0 件の賞賛
返信
5,158件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry about this but could you confirm, what is your target? Are you using an EVK? if not, is right you are using a Universal Multilink as an external debugger?

Best regards,
Pavel

 

 

0 件の賞賛
返信
5,149件の閲覧回数
oznurcaliskan
Contributor III

Hello Pavel,

The platform I am using is, we can say it's like EVK but not the same. It is a prototype Engine Control Unit (ECU). In this prototype, I have an MPC5642A microcontroller (that's my target) on an XPC56XX EVB. And, yes you're right I am using USB Multilink Debug Probe as an external debugger. ECU is connected to Host PC via JTAG Port using USB Multilink Debug Probe.

Thank you,

Kind Regards.

0 件の賞賛
返信
5,059件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @oznurcaliskan 

this is not an "error":

lukaszadrapa_0-1683707928441.png

This says that you are connected but you do not have debug information from elf file. If you click on View Diassembly, you can step asm code. But you won't see original source code, symbols etc. Only pure asm instructions.

You wrote that it is address of your bootloader. But there's application project selected:

lukaszadrapa_1-1683708163828.png

 

If you want to see debug information for bootloder, you need to select bootloader project here.

Regards,

Lukas

 

 

0 件の賞賛
返信
5,056件の閲覧回数
oznurcaliskan
Contributor III

Hi,

Actually I tried the same process with Bootloader code, but it gave the same warning:

oznurcaliskan_0-1683708953155.png

Can you provide me a procedure for connecting to target without downloading? I only want to observe variables' behavior.

Thank you,

Kind regards.

 

0 件の賞賛
返信
5,050件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, it's interesting that this doesn't work. Something similar works in S32 Design Studio.

Anyway, I found quick workaround - go to Debugger tab and add elf file like this:

lukaszadrapa_0-1683729194903.png

 

Then you should see the source code. It is possible to add more elf files here, so you can add elf files for both bootloader and application. I didn't test more elf files but I expect this should work.

Hope this helps.

Regards,

Lukas

5,023件の閲覧回数
oznurcaliskan
Contributor III

Hi again,

It worked it just needed both .elf files to be added as you showed in your reply. Thank you so much

Kind regards,

Öznur

0 件の賞賛
返信