I have an IAR Embedded Workbench 5.11, J-Link debugger and a board with LPC2368 and a JTAG connector. I should be able to load the program into Flash, so that it can start on power-up and run on its own without J-Link, right? What steps should I take?
I understand that I need to build my project with certain options. But what are they? Then there will be some output file (like .hex) which cane be downloaded into the micro from EWARM IDE or with something JLinkARM.
Couldn’t find a document or a web page describing how to do it. I’ve been trying to figure them out all day today.
I’ve been using IAR + J-Link for a long time. I’ll try to remember what I did as a newbie way back. Once done, I’ve just used it (daily) and don’t remember the setup.
Install J-link’s software - application and USB driver. I never used their application - no need, it’s integrated with IAR.
In IAR, grab one of the example projects. Maybe there’s one setup for J-link already.
Right click on the top of the left window pane, topmost item in the list of files. In that pop-up select the J-link as the debugger.
That’s about all I did.
Once the project is setup, you merely click on the compile and debug icon or menu choice. It complies then downloads via JTAG, assuming it’s plugged in, USB drivers are in place, and the target board is powered on and alive. This doesn’t need a .hex file - that’s needed only to use a serial port downloader.
On your target board (NXP?) you need to disable the serial bootloader (jumper) and there’s a jumper to disable JTAG. CHeck these.
If you’ve purchased IAR, give them a call - they’ll talk you through it if you’re stuck. Great support.
The default flash loader was switching to the external xtal, but I had only the internal RC osc (unfortunately the footprint for the xtal was incorrect, and xtal go shorted to ground plane). This was the root cause of my problem. I had a long conversation with IAR support. I even had to give them remote access to my computer.
kender:
The default flash loader was switching to the external xtal, but I had only the internal RC osc (unfortunately the footprint for the xtal was incorrect, and xtal go shorted to ground plane). This was the root cause of my problem. I had a long conversation with IAR support. I even had to give them remote access to my computer.
IAR phone support is indeed excellent. But several elements are completely missing in their support structure:
No forum. There used to be one on SevensAndNines (IAR-maintained community site). It’s no longer running. Archive of the old posts is not available either.