We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I try to execute the Blinky program
On menu, select Debug -> Start/Stop Debug Session
I get a dialog box:
JLink - Cortex-M Error
No Cortex-M Device found in JTAG chain.
Please check the JTAG cable and the connected devices.
The LPC-Link2 board is connected to the LPC4330-Xplorer board correctly.
Blinky compiles with no errors.
What should I look for?
Hello wd0ug,
can you please check the application note 272? It describes the requires steps to make the LPC-Link2 work with uVision.
Kind regards,
Christopher
Thanks for the suggestion but I've certainly tried that and "no joy."
From the uVision compiler, when trying to upload the code, I get "JLink - Cortex-M Error" and "No JLink Device found"
I have tried it with the jumper installed and with the jumper off (LPC LINK2 board)
Any clue what that means?
73, Doug
Hello Doug,
other problems I can think of are that the target is not powered (unlikely), wrong connector used on the LPCLink (can you double-check), or that the target is broken. Can you please try:
What do you see? Can you post it here, please?
I have given up. I can't tell you the number of hours I wasted on thid. I'm an experienced micro programmer with an EE degree, and the setup and lack of proper docs finally defeated me.
It's off my workbench and I have no further interest in this struggle.
Regards,
Doug
Hi Christopher,
Thank you very much for your post! As well as I´m not the wd0ug user, I had the same problem and your post above helped me a lot to fix it.
in fact, the problem was the connection between the NXP LPC433x-Xplorer board and the NXP LPC-LINK2 board. I did on the wrong connectors. The correct way to connect the 11 wires flat cable is from the J2 conector of the LPC433x-Xplorer to the J7 conector on the LINK2.
After that, I could see the adresses on the JTAG Device Chain place.
I still had another error: ' Error: Flash Download failed - "Cortex-M4" ', but, I´m searching for this on internet. If you have any guess, please, let me know.
Thanks a lot.
Antonio.
Hello Antonio,
glad to hear that the debug adapter is working now. Can you please check if you have set the Flash algorithm correctly:
If you have not set or set the wrong one, you might see the problem you are describing.
Hi Christopher!! Thank you very much for your prompt answer. I checked my environment and it is configured correctly:
The messages I got on Keil and the error are:
Load "C:\\Users\\Antonio\\Documents\\Blinky\\Objects\\Blinky.axf"
* JLink Info: Device "LPC4333_M4" selected.
Set JLink Project File to "C:\Users\Antonio\Documents\Blinky\JLinkSettings.ini"
JLink info:
------------
DLL: V4.98e, compiled May 5 2015 11:00:52
Firmware: J-Link LPCXpresso V2 compiled Jan 28 2015 16:43:37
Hardware: V1.00
S/N : 720000000
* JLink Info: TotalIRLen = 8, IRPrint = 0x0011
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl 0 @ E00FF000
* JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
* JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
* JLink Info: ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
* JLink Info: ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
* JLink Info: ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
ROMTableAddr = 0xE00FF003
* JLink Info: LPC18xx/43xx reset: Halting CPU before performing reset...
* JLink Info: LPC18xx/43xx reset: Halted CPU before reset.
* JLink Info: Configured reset type is not supported for this device. Changing reset type to type 0
* JLink Info: LPC18xx/LPC43xx reset: CPU did not halt after bootloader. Manually halting CPU.
Target info:
Device: LPC4330:Cortex-M4
VTarget = 3.300V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 4000 kHz
No Algorithm found for: 00000000H - 0000268BH
Erase skipped!
Error: Flash Download failed - "Cortex-M4"
Flash Load finished at 12:45:18
Do you have any idea about what can be wrong?? I have Norton Firewall and anti-vírus, I already put them down, but, same thing. I´m using Windows 8.1.
Thank you very much for your help!!!
Best regards,
You are trying to flash from address 0x0. As you can see from your own screenshot, there's no algorithm for that address. Have you made sure that you are using the correct RAM/ROM settings in the Options for Target dialog? On the target tab, the settings should look like this:
See AN272 on page 11 "Setup of a Multi-Core Project".
Hello guys,
First of all, many thanks for this thread.
I´m trying to upload my first project into the Freescale FRDM-K64F from uVision5, but I´m getting the issue "No JLink Device found - Error: Flash Download failed - Target DLL has been cancelled".
In my Project -> Options for Target -> Debug -> Settings, I use J-LINK/J-TRACE Cortex box, but the JTAG Device Chain is presenting the error: Cannot read JLink version number.
Any help on that? ideas or suggestions? what may I missing? In the same way, I´m spending much time on this, trying to upload the code from uVision5. Using the mbed environment from Web, the other code is ok and the Freescale is up and running correctly. Any suggestion?
Many thanks in advance!
Waldemir.
Hello Waldemir,
it seems that something went wrong during flashing of the J-LINK FW. Are you sure that you have downloaded the correct image file for the J-LINK? There is a new V2 available that works fine for me:
Do not use the first one (for older FRDM boards) and also not the V2.1. Both don't work on the K64F. Using the right one, I see the following in the OPtions for Target dialog window:
Can you try to re-flash the J-LINK FW?
Hello Christopher,
Many thanks for your help. I just downloaded the correct image and later I will test, re-flashing the J-LINK FW. I´ll let you know if ok!
Cheers,
I´m still having an issue with my freescale and I´m not able to upload the code from apnt_271 sample, to continue my project.
I still cannot read the JLINK version number, from the JTAG Device Chain panel, in the Debug tab from Debug Settings.
Please, any link or direction to guide me in the re-flash process?
I already downloaded in my desktop the JLink_OpenSDA_V2_2015-04-23.bin, indicated for my Freescale FRDM-K64F.
Many thanks in advance and Congrats!!! for the great Support for the community since the beginning.
After speding some time in other aspects from my project, I´m returning to the J-LINK issue.
I´m still stuck on that. Can you help me explaining how to re-flash the J-LINK FW?
Chees,
Hello Christopher, how are you?
I´m planning to finish Project this weekend. But I´m still stuck in process, with issues trying to re-flash my card with J-LINK, as you guided.
Please, could you send me any link or whitepaper where I can find the process or topics how to re-flash?
Sorry for the many e-mails.
Waldemi.