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
One more thing Set the frequency for JTAG <= 100Khz.
Regards
Suvidh
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.