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
Solved! Go to Solution.
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
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
That's great to hear @Lukaz , glad to know everything is working for you.
Diego
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?
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.
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