What is the difference when starting with the debugger instead of reset

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

What is the difference when starting with the debugger instead of reset

跳至解决方案
834 次查看
simonteki
Contributor II

Hi,

I am working with KDS 3.0.0 with the TWR-K60F120M and my project works if I use the gdb debugger. But as soon as I have an reset the SW get stuck in an undefined area (No source available for "0xfffffffe" ) and the reset light on the board is half lit. Can the use of the interrupt vectors in RAM cause such problems? As the reset vector isn't handled correctly?

0 项奖励
回复
1 解答
704 次查看
simonteki
Contributor II

Yes, and the interrupts work correctly but I think I found the problem. The interrupts seem to be only in RAM so after a reset the beginning of the flash is "empty". It seems like that with the debugger a different start address is used and that confused me :smileyhappy:

在原帖中查看解决方案

0 项奖励
回复
3 回复数
704 次查看
simonteki
Contributor II

Ok, it is definitely a problem with the interrupts in RAM. Even if I use the PE generated code for it, it fails after a reset. Any ideas what I am missing? Shouldn't' it jump to address 0 and start up normally?

0 项奖励
回复
704 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

did you ever perform vector relocation in your application?


Have a great day,
Zhang Jun

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

0 项奖励
回复
705 次查看
simonteki
Contributor II

Yes, and the interrupts work correctly but I think I found the problem. The interrupts seem to be only in RAM so after a reset the beginning of the flash is "empty". It seems like that with the debugger a different start address is used and that confused me :smileyhappy:

0 项奖励
回复