The debugged session ran into 0xDEADxxxx address after enable flexio3

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

The debugged session ran into 0xDEADxxxx address after enable flexio3

540 次查看
sprhawk
Contributor II

I'm writing a demo to use flexio, used one thirdparty EVK based on i.MX RT1062CVL5B.

When I enabled flexio3, the program ran into 0xDEADxxxx address

sprhawk_0-1727666854856.png

The testing code is attached.

 

To my tests, when I disable timer0 or disable flexio, the program ran well, but it ran into 0xDEADxxxx when enable timer0.

Got no clue why it is so.

 

 

标签 (1)
0 项奖励
回复
2 回复数

513 次查看
MultipleMonomials
Contributor IV

This type of error is easy to cause if you access the registers to a peripheral before enabling its clock -- the chip just locks up and it's not pretty.  Make sure in the clock configuration menu that you have enabled the FLEXIO2/FLEXIO3 clock and that it's set to a valid frequency (IIRC, up to 120MHz).

515 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @sprhawk,

Please follow the instructions as seen on this knowledge base article to recover the debug session in case you are facing issues with the debugger: RT board recovery for debugger connect issues - NXP Community.

If there are no issues with the debugger, then you can ignore that step.

It is likely that a hard fault is being caused by an incorrect initialization of a module. Please try debugging and running the application step by step to determine in what line of code the hard fault occurs. This step will be crucial to understand what is causing the issue.

BR,
Edwin.

0 项奖励
回复