FRDM-RT1186:The flash loader program reported an error. The debug log may contain more details

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-RT1186:The flash loader program reported an error. The debug log may contain more details

110 Views
guogai
Contributor I

Every time I modify the code and click download for the first time, it throws an error (a popup prompts "The flash loader program reported an error", and the debug log shows "Processor did not stop on hardware reset").

However, if I do nothing after the error and simply click download again, it successfully flashes the code and enters normal debugging.

Could anyone explain what causes this? How should I configure IAR or the debugger settings to avoid this issue? Thanks!

 

 

 

Labels (2)
0 Kudos
Reply
3 Replies

15 Views
ShellyZhang
NXP Employee
NXP Employee

Dear guogai,

The current latest version is SDK_26_03_00_FRDM-IMXRT1186, please use the latest SDK.
In addition, please check whether the flash loader is 
$TOOLKIT_DIR$/config/flashloader/NXP/FlashIMXRT1186-FRDM_FlexSPI_M33.board
If not, please modify it to this file. 

ShellyZhang_0-1781056357708.png

 

0 Kudos
Reply

6 Views
guogai
Contributor I
Dear Shelly,

Thanks for your reply. Regarding your suggestion to switch to FlashIMXRT1186-FRDM_FlexSPI_M33.board, I have two questions:

Missing File: My IAR version is relatively old, so I do not have the FlashIMXRT1186-FRDM_FlexSPI_M33.board file in my current environment. Could you please kindly provide this single .board file for me?

Hardware Mismatch: The target flash memory on my board is physically connected to the FlexSPI2 interface. If I switch the loader to FlexSPI (which usually targets SPI1), will it still be able to flash and program successfully?

Thank you for your support!
0 Kudos
Reply

43 Views
ShellyZhang
NXP Employee
NXP Employee

Dear guogai,

When I changed the configuration to flexspi_nor_debug, I was able to reproduce the issue you reported. I am currently investigating the root cause and working on a solution.

I will keep you updated on the progress.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2378166%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-RT1186%3AThe%20flash%20loader%20program%20reported%20an%20error.%20The%20debug%20log%20may%20contain%20more%20details%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378166%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEvery%20time%20I%20modify%20the%20code%20and%20click%20download%20for%20the%20first%20time%2C%20it%20throws%20an%20error%20(a%20popup%20prompts%20%22The%20flash%20loader%20program%20reported%20an%20error%22%2C%20and%20the%20debug%20log%20shows%20%22Processor%20did%20not%20stop%20on%20hardware%20reset%22).%3C%2FP%3E%3CP%3EHowever%2C%20if%20I%20do%20nothing%20after%20the%20error%20and%20simply%20click%20download%20again%2C%20it%20successfully%20flashes%20the%20code%20and%20enters%20normal%20debugging.%3C%2FP%3E%3CP%3ECould%20anyone%20explain%20what%20causes%20this%3F%20How%20should%20I%20configure%20IAR%20or%20the%20debugger%20settings%20to%20avoid%20this%20issue%3F%20Thanks!%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2378166%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E