Debugging with hexfile

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

Debugging with hexfile

跳至解决方案
1,022 次查看
bob_walker
Contributor III

I have a boot loader that updates the user application via SCI.

The application runs fine when compiled stand alone. However when running with the boot loader, its behavior is erratic.

The boot loader clears all memory, my application uses no static variables, and I'm not using any CW libraries.

After loading the new image into flash, I can see that the code and its interrupts are mapped where they should be.

 

What I'd like to do is to connect to the target via a debug configuration (CONNECT?) that will not disturb the image and

will use the application's symbols for debugging. Is this possible? If so, how?

标签 (1)
0 项奖励
回复
1 解答
813 次查看
trytohelp
NXP Employee
NXP Employee

Hi Bob,

You can configure the debug through the Debug as ¦ Debug configurations ...

For Debug session type instead of Download you can select Attach or connect

In this case when you will launch a debug session, the application is not load on board.

Only connection to the board is done.

pastedImage_0.png

For details please have a look to the post:

      Hot-Sync: Attach, Connect & Download | MCU on Eclipse

the options are changed but descriptions are still valid.


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
813 次查看
trytohelp
NXP Employee
NXP Employee

Hi Bob,

Can you please let me know the tool version you're using and the architecture ?

If I'm right you can load on board the application with bootloader.

The problem is to debug the application loaded on board.

Am I right ?


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
813 次查看
bob_walker
Contributor III

Pascal,

I'm using CW10.6, 9S08SH16. You are correct.

0 项奖励
回复
814 次查看
trytohelp
NXP Employee
NXP Employee

Hi Bob,

You can configure the debug through the Debug as ¦ Debug configurations ...

For Debug session type instead of Download you can select Attach or connect

In this case when you will launch a debug session, the application is not load on board.

Only connection to the board is done.

pastedImage_0.png

For details please have a look to the post:

      Hot-Sync: Attach, Connect & Download | MCU on Eclipse

the options are changed but descriptions are still valid.


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复