I have modified a Teensy 4.1 to give me access to the JTAG pins on the IMXRT1062, it is connected to a Segger J-Link EDU with the following pins: VTref, GND, TDI,TMS,TCK,TDO.
I am having trouble uploading and debugging using platformio in VSCode. When I try and upload my code it shows the following and just hangs forever.
Configuring upload protocol... AVAILABLE: jlink, jlink-jtag, teensy-gui CURRENT: upload_protocol = jlink-jtag Uploading .pio\build\teensy41\firmware.hex
My platformio.ini looks like this:
[env:teensy41] platform = teensy board = teensy41 framework = arduino debug_tool = jlink upload_protocol = jlink-jtag
I am able to upload the hex file to the teensy using Seggers tools with no issues so I’m not quite sure what is wrong. I have tried various config settings with no luck. What is the best way to troubleshoot this?