I am having problem load Hello World demo program to the IMXRT1050 EVKB board with USB cable and MDK 5.26. The error message is CMSIS-DAP Cortex-M error. Could not stop Cortex-M device! Please check the JTAG cable.
I am using external power with J1 jumper at 1-2 position. Also tried both 1-2 and 2-3 position on J27. Neither worked. SW7 position is off-on-on-off. The bootloader firmware onboard has the following text information:
# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 0227000047784e4500519003d745004addb1000097969900
HIC ID: 97969900
Auto Reset: 0
Automation allowed: 0
Overflow detection: 0
Daplink Mode: Interface
Interface Version: 0244
Bootloader Version: 0244
Git SHA: b3435dbed0ba4f09680e49d2fcfdaab32c7a4c71
Local Mods: 0
USB Interfaces: MSD, CDC, HID
Bootloader CRC: 0x44eadb90
Interface CRC: 0x0135174a
Remount count: 1
Hi @jweisd
I have not seen J27 on the RT1050 EVKB schematics (SCH-30168, PDF: SPF-30168). Could you share your schematic or give me an snapshot for check that jumper? Or better yet a high resolution picture of your EVK , to see your jumper setup.
Secondly, have you already tried to re-gain debug access by setting the MCU into serial downloader mode? Basically the process is as follows:
All the best,
Diego
Did what you recommended. Was able to download the program to the board. Notice the following message on keil which says "RDDI-DAP Error" :
.......
Load "flexspi_nor_debug\\hello_world.out"
Erase Done.
Programming Done.
Verify OK.
Application running ...
RDDI-DAP Error
Flash Load finished at 11:32:56
Also, reset the board does not print Hello World on Putty. And download program again failed with the same error message.
Hi @jweisd
Thank you for your response!
I saw that your jumper configuration okay, and that you have the UART jumpers (J31 and J32 fitted)
I was able to see UART output using the hello world demo from our MCUXpresso RT1050 EVKB SDK v2.13
To get the a similar test enviroment, Please take a look at this demo and this SDK version. Get package from https://mcuxpresso.nxp.com/en/builder?hw=EVKB-IMXRT1050 unzip the package and open the demo workspace.
This demo comes ready with the necesary UART and CMSIS DAP debugger setup.You may want to change it from ram_0x1400 to flexspi release.
Let me know your results.
Diego
Hi Diego,
Thanks for the response. I have tried the procedure you outlined. After that, I could flash the board once. But it would not print Hello World to Putty terminal. And the board would be unflashable again with the same error message. The picture is attached here for your reference. The J27 is located on the upper right corner.