i.MX RT1160 gets stuck on adress 0x223104 when debugging

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

i.MX RT1160 gets stuck on adress 0x223104 when debugging

2,125 次查看
CWRB
Contributor II

I am working on a custom PCB, which uses the i.MX XRT1160 MCU. The board uses the IS25LP032 serial flash memory. I have been able to flash the device without issues, but when I try debugging, it seems to get stuck in an infinite loop.

When suspending the debug session, the program breaks at the address 0x223104, with the message: "Break at address "0x223104" with no debug information available, or outside of program code." When I use the "step over" function, I get the error message "Cannot find bounds of current function". I have attached screenshots of the error message and break message. 

The project uses both cores using the multicore manager, where cm7 is set as the master and cm4 is set as the slave.

I think the issue has something to do with the serial flash memory I use, but I find it strange the problem only occurs while debugging. 

Does anyone have an idea how to fix this issue?

Thanks,

CWRB

0 项奖励
回复
8 回复数

2,102 次查看
jay_heng
NXP Employee
NXP Employee

It is the reason for address 0x223104

揭秘i.MXRT1170上用J-Link连接复位后PC总是停在0x223104的原因

If you don't debug the project, can the code in flash boot properly after power-on?

0 项奖励
回复

2,093 次查看
CWRB
Contributor II

Yes, it boots properly when not debugging. Only when debugging the problem occurs.

0 项奖励
回复

2,082 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @CWRB ,

Have you set the board to internal boot mode when debug?

Can you download a led_blinky example to flash and let led blink? How do you download image?

 

Regards,

Jing

标记 (1)
0 项奖励
回复

2,073 次查看
CWRB
Contributor II

Thank you for your response.

Both the cm4 and cm7 blinky examples that are provided flash and debug without issues. I used the same memory settings I used for my project for both cores.

The blinky examples don't make use of the multicore manager, so maybe that has something to do with the issue. 

About setting the board to internal boot. Are there separate settings for flashing the board and using the debugger? If so, where could I find them?

0 项奖励
回复

2,036 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @CWRB ,

Can you share the debug circuit of the customer board? And what flash do you use, how you connect with it?

 

Regards,

Jing

0 项奖励
回复

2,062 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @CWRB ,

You can set it to internal boot mode by SW1. Please refer to the getting start document of RT1160-EVK.

 

Regards,

Jing

0 项奖励
回复

2,057 次查看
CWRB
Contributor II

Hi @jingpan,

I am working with a custom board and not the EVK so I don't have access to SW1. The appropriate pins have been set to internal boot mode so that should not be the problem. 

I have an EVK available here, and I can debug my code on the EVK without issues. I want to get it to work on my own hardware though, as it also connects to some peripherals.

0 项奖励
回复

1,683 次查看
sukyeong
Contributor III
hello, i have a same problem
did you solve that isssue?
标记 (1)
0 项奖励
回复