EmbeddedRelated.com
Forums

Firmware download Error via JTAG(ULINK2)

Started by chet...@gmail.com August 13, 2007
Hi there,

Iam using GNU compiler alongwith Keil uVision3 IDE for my project. The compilation is fine and Iam also able to download the firmware via ISP. But, iam getting the following errors while Iam trying to download the firmware via JTAG(ULINK2).
Please give me your suggestions to debug this problem.
Build target 'Target 1'
compiling Blinky.c...
cc1: warning: -mapcs-stack-check incompatible with -mno-apcs-frame
assembling startup.s...
linking...
creating hex file...
"BlinkLED.elf" - 0 Error(s), 0 Warning(s).
Load "C:\\Documents and Settings\\spa\\Desktop\\MyTest\\BlinkLED.ELF"
Cannot Write to RAM for Flash Algorithms !
Erase Failed!

ULINK -ARM Error:LPC_IAP2_512.FLX
CANNOT LOAD FLASH PROGRAMMING ALGORITHM

Error:Flash download failed -ARM7TDMI

An Engineer's Guide to the LPC2100 Series

c...@gmail.com wrote:
>
> Cannot Write to RAM for Flash Algorithms !
>

It told you exactly what the problem was. Check your linker script
(*.ld) to see what addresses the resulting image is being located to.
You should see a section in the file similar to:

MEMORY
{
/* uppermost 32K of external RAM reserved for bootloader stack */
CODE(rx) : ORIGIN = 0x81010000, LENGTH = 0x0005ffff
VECTORS(rw) : ORIGIN = 0x40000000, LENGTH = 0x1f
FLASHRAM(rw) : ORIGIN = 0x40001000, LENGTH = 0x1000
HEAPTOP(rw) : ORIGIN = 0x81070000, LENGTH = 0x4
STACK(rw) : ORIGIN = 0x8107ff00, LENGTH = 0x4
}

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------
--- In l..., Tom Walsh wrote:
>
> chetanrp@... wrote:
> >
> > Cannot Write to RAM for Flash Algorithms !
> > It told you exactly what the problem was. Check your linker script
> (*.ld) to see what addresses the resulting image is being located to.
> You should see a section in the file similar to:
>
> MEMORY
> {
> /* uppermost 32K of external RAM reserved for bootloader stack */
> CODE(rx) : ORIGIN = 0x81010000, LENGTH = 0x0005ffff
> VECTORS(rw) : ORIGIN = 0x40000000, LENGTH = 0x1f
> FLASHRAM(rw) : ORIGIN = 0x40001000, LENGTH = 0x1000
> HEAPTOP(rw) : ORIGIN = 0x81070000, LENGTH = 0x4
> STACK(rw) : ORIGIN = 0x8107ff00, LENGTH = 0x4
> }
>
> --
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware.net http://cyberiansoftware.com http://openzipit.org
> "Windows? No thanks, I have work to do..."
> ----------------
>

Hi there,
I have checked linker script file and it seems ok.
The problem got solved by setting the JTAG clock to 100kHz.
The default setting was 1Mhz.
But i really donot know the reason as to why it didn't work at 1Mhz as
the Keil example project Blinky(compiled with Real view
compiler)worked fine.
The only difference was that my project was compiled with GNU compiler.