Open fbeaulier opened 2 years ago
Update: after all it does not work so well with NXP's mcuxpresso either. After messing around i finally found a way to erase flash but just after the Flexram config change the probe can't connect to MCU anymore. I've contacted NXP's support.
Hi,
I've been using pyOCD to flash and debug my imxRT1061 based board. now i would like to change the FlexRAM configuration. Default is 128k ITCM, 128k DTCM, 256k OCRAM I have changed this to 0k ITCM, 256k DTCM, 256k OCRAM with few lines of code in the startup file. Everything seems to work but now there is no way i can flash my board anymore ! The only solution i have found is to use NXP's mcuxpresso once to flash a dummy hello world project, it puts the FlexRAM to it's default config again and then pyOCD is back to normal .
FYI with the modified FlexRAM config, loading the NXP Flashloader with USB works but when sending the command to start the flashloader the MCU resets. No way to erase flash with this tool.
Thanks for your great work.
Francois
Here is the pyocd log: