Hello, I have a Black Magic Probe (firmware version 2.0) that I am using as an external debugger with a 20-pin JTAG to 10-pin SWD adapter. I’m having trouble getting it to work with the MIMXRT1180-EVK. Could you please let me know which jumpers need to be shorted on the board to enable external debugging with this probe?
I tried shorting JP4, and using the following commands:
arm-none-eabi-gdb Debug/evkmimxrt1180_rled_blinky_cm33.axf
(gdb) target extended-remote /dev/ttyACM0
Remote debugging using /dev/ttyACM0
(gdb) monitor swdp_scan
Target voltage: 0.0V
SWD scan failed!
Failed
Today I powered the MIMXRT1180-EVK board using the barrel jack instead of the usb_debug port on my laptop and retried the setup. The result was:
(gdb) monitor swdp_scan
Target voltage: 3.2V
SWD scan failed!
Failed
Previously, I had only powered the board via the usb_debug port. I tested several configurations:
JP4 shorted
JP4 and JP5 shorted
JP4 shorted with DIP switch SW5 set to 0100
JP4 and JP5 shorted with DIP switch SW5 set to 0100
According to the zephyr docs: https://docs.zephyrproject.org/latest/boards/nxp/mimxrt1180_evk/doc/index.html
SW5 should be set to 0100 when debugging the CM33 core and 0001 when debugging the CM7 core.
In all test configurations, the debugger detected target voltage but the scan still failed. One additional note: when powering the board through the barrel jack, the pre-flashed LED blink demo did not run, which might be a clue.
Hello,
target extended-remote /dev/ttyUSB0
command (or the corresponding serial port on your operating system).
I tested different jumper configurations: JP4 shorted with JP5 open, and JP4 open with JP5 shorted, both with SW5 set to 0100, which according to the documentation should boot from FlexSPI quad SPI serial NOR (or octal SPI NOR in quad SPI NOR mode) when powered from the 5 V barrel jack. With SW5 in this setting, D7 blinks red and D6 blinks green, but the pre-flashed LED blink program does not run.
When powering through the USB debug port with SW5 at the default 0001 (Serial Downloader), the pre-flashed LED blink program does run as expected.
The Black Magic Probe reports “Target voltage: 3.3V” when the EVK is powered from the barrel jack, but the SWD scan still fails. When powered through the USB debug port, the Black Magic Probe reports “Target voltage: 0V” and the SWD scan also fails.