We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
OK. I'm finally got uVision3 to detect my ULink2 and the processor.
uLink2 shows up in Device Manager uLink2 shows up in uVision3 debug settings window processor shows up in uVision3 debug settings window
Now when I go to download code it gives me the error "Error: Flash Download Failed - ARM7TDMI". I have no idea what is causing it to fail the flash download. I have successfully built the application for the target processor I have (LPC2468). Followed all the instructions in the uVision3 and uLink2 manuals.
Anybody know what causes this error?
Thanks!
Yes! For some device types the clock rate can be a problem. Drop the clock rate to 500 KHz or 250 KHz. This is covered in the Ulink2 User's Manual. Bradford
I tried multipule other frequencies, 1Mhz, 500khz, 200khz, 5khz, etc. All gave me the same error.
Under Target Options -> Utilities, have you selected the correct flash program for your device type? Bradford
Yeah I believe so. It says "ULINK ARM DEBUGGER" and my debugger is a Ulink2. The settings button displays a connection along with all the debuggers version information and it connects to the processor to tell me what kind of processor I'm debugging.
Actually maybe that is where I'm falling short.... What do you mean flash program? The "init file" field is blank.
Do not worry about the init entry at this point. But check the "Settings" button. It should show a flash driver of some type. I'm not familiar with the LPC2468 but the NXP web site or some one on this forum should know what flash driver you might need for this device. I would leave the default driver entry in the "Setting" dialog and just add a different flash driver if required. Make sure the rest of the entries on the "Settings" dialog match your device. Also, go to http://www.flashmagictool.com for a Serial programmer external to Keil for an alternate resource. You can compare the Flash tools for the LPC2468 to the default tools of the Keil Utilities. Bradford
I just flipped to the FlashMagic website. I did not see a a set of flash tools for the LPC2468. I suggest that you go directly to NXP for this info. Probably one of the LPC 23xx series will work with the LPC24xx series but I do not know this as a fact. Bradford
Figured it out. For some reason uVision was not setting up the "Flash Algorithm" once I selected the correct algorithm it programmed the chip.
Hi M J,
Which flash algorithm did you select, since I'm having the same problem with the same device?
Goto flash -> configure flash tools...; click utilities tab; ;click settings button; click add button; and select "LPC2000 IAP 512kB Flash" that should do it. Good luck to ya.
Excellent thanks for the info M J. :)
Sorry for the double post but it does work for me also but I also had to drop the Max Jtag Clock rate so now I'm good to go.