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