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
Hi there, I have gone through the following support thread http://www.keil.com/support/docs/2747.htm and found that my configuration is similar. Please kindly suggest me some method to debug this error.
Thank-you
i have same problem with linker but give error 23
give me reson for error and web page of support
What part number you are trying to program ?
why part number? is kiel uvision arm with ide?
code with linker fails so not complile. give me url now of fix so link works.
Hi there, Iam using NXP's LPC2368 controller. Also, the Flash programming algorithm is as per Keil's support documents.(i.e.LP2000 IAP2 512kB Flash). Yes, Iam using evaluation version Keil uVision3 IDE and installed and enabled the GNU Compiler option in it. Is this error due to the evaluation version Keil uVision3 IDE that Iam using ??????
Thats should not be a problem with evaluation version. Try removing all the algorithms and then reload the one you need again. Also try configuring the settings again (sometimes we may have missed a zero in some address :) ).
Regards
Suvidh
One more thing Set the frequency for JTAG <= 100Khz.
Hi Suvidh, Thank you for your valuable suggestion. I set the JTAG freq. to 100kHz and it's working. The default setting was 1MHz. Can you please tell me as to why the JTAG doesn't work for 1Mhz because the Keil sample project like Blinky works(compiled with Keil's Real View Compiler). Also, can you please suggest me some do's/don'ts while using the Ulink2(JTAG Debugger.)
The project setting for blinky must be having indeed JTAG clock as < 1Mhz. I had found that it works good and always with 100Khz .
For JTAG interface nothing special except that if you are using the debugger then it would be good to turn off the watchdog timer.