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
Loading flash with J-Link
Started by ●December 5, 2009
Reply by ●December 5, 20092009-12-05
--- 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
>
>
> 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
>
Reply by ●December 5, 20092009-12-05
> 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
>
> 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
>