Hi @mimlo and @EdwinHz ,
this is an older discussion, but I think it is important to clarify two things (for anyone looking for a similar thing too).
1) I do *not* recommend using crt_emu_cm_redlink. This is more of an internal tool working in the background and should not be called directly. Instead, the LinkServer should be used. Sure, you can use it, but it is not recommended.
2) You can use LinkServer instead, and you can directly specif the JSON file. As already noted, the syntax is
DEVICE can be:
- <DEVICE_NAME>:<BOARD> pair, same as `devices --filter` parameter
- device configuration file with extension `.json`.
Use `config` command for generating such a file from an existing device
The point I want to stress is that it is either <DEVICE_NAME>:<BOARD> *or* the path to the JSON file.
Using
LinkServer.exe flash C:\Embedded\Target\customBoard\src\NewBoard\MIMXRT1170.json:NewBoard load C:\Embedded\Target\customBoard\src\NewBoard\Debug\example.axf
mixes up the JSON file with the <BOARD>.
So use the following
LinkServer.exe flash C:\Embedded\Target\customBoard\src\NewBoard\MIMXRT1170.json load C:\Embedded\Target\customBoard\src\NewBoard\Debug\example.axf
and it should work fine.
I hope this helps,
Erich