Dear all,
I am working on MCB1768/keil uVision with my students for 2 years now, and we use ULINK2 to programm the board. Sometimes, a student (accidentally) push the reset button of a board while the programm is loading in the target. After that, it is no more possible to load anything, and the debug is also no more possible. The error message is "Could not stop Cortex-M device, Please check the Jtag cable". I know that the problem is with the board (not the ulink probe or the cable), as the problem is still here when I try to download the code with other probes or cable... even with Ulink-ME. I have tried different solutions found on the net (change clock, JTAG/SW mode...) but nothing seems to work. As I have now 5 boards with such problem, I ask you if you have an idea to make the boards work again... Thank you. Best regards,
Thank you for your answer.
-> Try alternate connection options, ie Connect Under Reset. I have tried that, then I get a "JTAG communication failure" (if JTAG connection) or "Can not acces Memory" (if SW)... The problem looks similar to the one presented in: community.nxp.com/.../443998 (same issue than what is presented in the word attached file, depending on the connection choice)
-> If the is a BOOT mode of some description, try using that. I am sorry I do not know what you are talking about. Where is the corresponding menu in uVision?
Thank you.
>>I am sorry I do not know what you are talking about. Where is the corresponding menu in uVision?
This is a going to be a board/chip level option, not Keil. Review the documentation for the part for a BOOT or ISP mode, ie where it runs a System Loader, or equivalent from ROM in the device.
JTAG connectivity will require a full complement of pins, SWD typically needs just the SWDIO/SWCLK. Having NRST connected can be critical in these difficult situations, as will a working familiarity with the parts and tools you are using.