RT1011 cannot restart by software

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RT1011 cannot restart by software

1,213件の閲覧回数
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,194件の閲覧回数
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,189件の閲覧回数
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 件の賞賛
返信

930件の閲覧回数
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,153件の閲覧回数
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 件の賞賛
返信