I am using the MIMXRT1160 Evaluation Kit and am trying to run an initial project on the CM4 core.
Interestingly, flashing, debugging and running the provided example projects works just fine on both cores.
So it does not seem to be an hardware issue.
But when I create a new blank CM4 standalone project, write my code and try to flash it, the process fails with
Failed to execute MI command:
-target-download
Error message from debugger back end:
Could not write register "pc"; remote failure reply 'E22'
Failed to execute MI command:
-target-download
Error message from debugger back end:
Could not write register "pc"; remote failure reply 'E22'
Could not write register "pc"; remote failure reply 'E22'
I was not able to find any relevant difference between the provided example projects and my new project, which I created from a blank C++ project.
I removed any relevant core, so the project in its current version only contains a PRINTF-statement in the main function in addition to the standard Init functions.
The image is also compiled without any errors.