Reset the MC to factory settings

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

Reset the MC to factory settings

Jump to solution
1,316 Views
Lukaz
Contributor III

Hello,

I am working on a project with the MC MIMXRT1061CVL5B, I was trying some things out dealing with external flash programming, I have multiple sample boards for our product and one of them has just gone out of order, when I upload the code using IAR it acts so weird and goes to places in the code that are not even called, which might suggest that it is something to do with addressing and memory. When I try uploading the code using the MfgTool, it never succeeds to upload the code and I get this log info (see attchment file). I try uploading the code to other sample boards and they work ok either with IAR or using the MfgTool. I also tried some SDK examples and it is the same results, works with the other board but not with that one.

Is there a way to maybe set everything back to a factory setting (I guess that would be the boot loader), or any other suggestion that might help?
Thanks in advance.

P.S: This board was already functioning well before it started acting all weird

Lukaz_0-1661504861046.png

 

Labels (1)
0 Kudos
1 Solution
1,257 Views
Lukaz
Contributor III

Thank you Diego,
it turned out that, I was testing the "Write Status Register" flash operation and it caused some area protection to be activated therefore the code couldn't run from the flash. I have then uploaded a code that erases and resets the flash to the factory setting and ran it from the SRAM after this everything is back to normal.

 

Thanks

View solution in original post

5 Replies
1,258 Views
Lukaz
Contributor III

Thank you Diego,
it turned out that, I was testing the "Write Status Register" flash operation and it caused some area protection to be activated therefore the code couldn't run from the flash. I have then uploaded a code that erases and resets the flash to the factory setting and ran it from the SRAM after this everything is back to normal.

 

Thanks

1,250 Views
diego_charles
NXP TechSupport
NXP TechSupport

That's great to hear @Lukaz , glad to know everything is working for you.

Diego

0 Kudos
1,290 Views
Lukaz
Contributor III

Hi Diego,
Thank you for your reply. I have only the USB OTG and the JTAG interfaces available, can I still run the program from SRAM?

0 Kudos
1,272 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Lukaz ,

Thanks for your reply as well. Yes, to link a program to internal chip SRAM you need to use the IDE, which can manage the linking process. Then, just program the program over JTAG.

 

 

0 Kudos
1,304 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Lukaz

 

Regarding, Is there a way to maybe set everything back to a factory setting (I guess that would be the boot loader), or any other suggestion that might help?
     Currently I am thinking on a mass erase. Did you burned any fuse?

To troubleshoot:

Where you running a SRAM flashloader, in order to let the RT1064 communicate using  BLHOST commands? Since the serial downloader of the MCU can only process sdphost commands.

If the above is correct,  this would mean that you are able to load applications that execute in SRAM. Anyway, could you confirm that you can run SRAM applications? It seems you are having a problem write flash images in your FlexSPI NOR memory.

Following the above idea, to narrow down the issue:

What if you try program an SRAM application that reads the FlexSPI memory from application? This could be easy if you can test the default FlexSPI nor examples from the SDK ( without adapt them to work with your NOR flash LUT for example ) and completely link them to execute from SRAM. 

Else, can you tell me more about you NOR flash HW settings, and fuse settings (if any)?

Best regards,

Diego