EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Loading flash with J-Link

Started by kender_a December 5, 2009
Folks,

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.

- Nick

An Engineer's Guide to the LPC2100 Series

--- In l..., "kender_a" wrote:
>
> Folks,
>
> 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?

Right-Click the project name or hit Alt-F7.
Click Debugger and when J-Link/J-Trace is selected, hit the DOWNLOAD tab. Select "Use Flash Loader(s)". If the J-Link is installed, that should work.

>
> 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.

Intel .hex can be output too. Hit OPTIONS again and then Output Converter to select "intel extended" to make a .hex file.

>
> 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.

Should be in the documentation .PDF file(s) that came with EWARM.
boB
>
> - Nick
>

> Intel .hex can be output too. Hit OPTIONS again and then
> Output Converter to select "intel extended"
> to make a .hex file.

Thanks for the tips, Bob! I was able to generate a .hex file. However, when I try to connect to the target from J-Flash ARM, I get a message "Could not find any Flash devices. Failed to connect." I can run my code in RAM with a J-Link debugger from IAR Embedded Workbench, so I think the JTAG is wired correctly (it's custom PCB). LPC2368 has got on-board Flash. What could be causing this message?

Best,
- Nick

--- In l..., "bobtransformer" wrote:
>
> --- In l..., "kender_a" wrote:
> >
> > Folks,
> >
> > 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?
>
> Right-Click the project name or hit Alt-F7.
> Click Debugger and when J-Link/J-Trace is selected, hit the DOWNLOAD tab. Select "Use Flash Loader(s)". If the J-Link is installed, that should work.
>
> >
> > 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.
>
> Should be in the documentation .PDF file(s) that came with EWARM.
> boB
> >
> > - Nick
>


The 2024 Embedded Online Conference