05: File 'test1.axf' load failure: Ef(9). Flash erase or write operation aborted.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

05: File 'test1.axf' load failure: Ef(9). Flash erase or write operation aborted.

1,012 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by maxlobovsky on Tue May 25 10:03:36 MST 2010
I am trying to use LPC-Link to program a PCB I built with an LPC 1313 over Serial Wire Debug.  When I try to use the "Program Flash" utility, it seems to complete some of the programming, but stops with this error:

Quote:
05: File 'test1.axf' load failure: Ef(9). Flash erase or write operation aborted.


I can use the erase flash utility successfully.

This PCB has no crystal, so I'm trying to load a piece of test code that sets the microcontroller to use the internal RC oscillator, so this may be part of the problem.  Does anyone have any demo programs using the internal RC oscillator?

Also, I only have SDIO, SWCLK, and GND connected between the LPC-Link and my board, but I have tested this configuration with the LPC 1343 that came with the LPC-Link and it programs just fine.

Thanks,
Max
0 Kudos
Reply
3 Replies

971 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andersop on Fri Mar 04 11:41:48 MST 2011
I was also getting this error intermittently. I am using the LPCXpresso installed in a target board. I had disconnected external +5V to the board, but the error still occurred. I solved the problem by disconnecting all external cables to the board.

I believe the issue was that although the connected circuitry was not powered from the LPCX 5V rail, there was still sufficient leakage current such that the programming operation was affected and could not complete reliably.

So, if you encounter this - isolate the LPCX and try again. Hope this helps someone!
0 Kudos
Reply

971 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by maxlobovsky on Wed May 26 14:30:42 MST 2010
I figured it out.  I hadn't set all the clock settings properly.  I believe it was turning off System Oscillator and USB PLL setup in CMSIS (USB isn't even present in the 1313 that I was using)

Thanks,
Max
0 Kudos
Reply

971 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 26 00:22:00 MST 2010
There shouldn't be flash programming issues running with the internal oscillator. The abort message is telling you the resident flash driver (IAP interface) has taken an abort. There may be more than one reason behind this. Is your board sufficiently powered? You should connect RESET. The debug utility will attempt to reset the part if there is a problem communicating over the debug port (DP) or AP.

Regards,

CodeRedSupport
0 Kudos
Reply