RT1011 cannot restart by software

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

RT1011 cannot restart by software

1,257 次查看
VectorH
Contributor I

Hello all,

  I cannot restart RT1011 by software, but the restart function works fine in RT1021/RT1052/RT1062/RT1176.

  J-Link Error when I run to "NVIC_SystemReset();".

  What's wrong with my restart function?

 

_20231026134555.png

 

0 项奖励
回复
4 回复数

1,238 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, I found this thread that maybe could help you.

NVIC_SystemReset() is not working with MiMxRT1020 - NXP Community

Best regards,
Pavel

0 项奖励
回复

1,233 次查看
VectorH
Contributor I

Hi Pavel, changed the FlexRam was the cause of the problem.

I changed the FlexRam to 96K Itcm and 32K Dtcm size in "Startup.s" file, the code crash when software reset. My code was copy from flash and run in Itcm, it was more than 64k size. If change FlexRam to default value, the code crash, too. I see the problem but no idea to fix it now.

Thank you for reading, have any questions, please contact at first.

0 项奖励
回复

974 次查看
Alex_Tsai
Contributor II

@VectorH 

Try to use the FLEXRAM_SetAllocateRamSrc() funciton before the system reset, and reset it using the settings in efuse.

Refer to the following

FLEXRAM_SetAllocateRamSrc(kFLEXRAM_BankAllocateThroughHardwareFuse);
NVIC_SystemReset();

0 项奖励
回复

1,197 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the late response, you need to modify another register to use the Flex RAM please check the link below maybe can help you.

Reallocating the FlexRAM - NXP Community

Best regards,
Pavel

0 项奖励
回复