Target error from Commit Flash write: Ef(49): Flash driver operation gave error.

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

Target error from Commit Flash write: Ef(49): Flash driver operation gave error.

1,523 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Thu Aug 06 05:00:23 MST 2015
Hello,

I programmed LPC11a14 but now no writte program into flash, I give error from Debug messages:

LPCXpresso Debug Driver v7.8 (May 28 2015 02:56:34 - crt_emu_lpc11_13_nxp build 181)
nSRST assert (if available)
Executing in user flash.
Emu(0): Conn&Reset. CpuID: 410CC200. Info: HID64HS12
Debug protocol: SWD Frequency 3000 KHz. RTCK: Disabled. Vector catch: Enabled.
loaded v.2 On-chip Flash Memory LPC11_12_13_32K_8K.cfx
image 'LPC11_12_13 (32K Flash, min 8K RAM) May 21 2015 09:32:39'
NXP: LPC11A14/301  Part ID: 0x00000000
Connected: was_reset=false. was_stopped=true
LPCXpresso Free License - Download limit is 256K
Writing 20780 bytes to address 0x00000000 in Flash
ProgramPage (0x0, 0x10000430, 0x1000) status 0x1 - driver reported driver error - ONCHIP driver rc 10 - Source and destination data not equal
Target error from Commit Flash write: Ef(49): Flash driver operation gave error.


And this from dialog:
Error in final launch sequence
Failed to execute MI command:
-target-download
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation


op ProgramPage (0x0, 0x10000430, 0x1000) status 0x1 - driver reported driver error - ONCHIP driver rc 10 - Source and destination data not equal
  op ProgramPage (0x0, 0x10000430, 0x1000) status 0x1 - driver reported driver error - ONCHIP driver rc 10 - Source and destination data not equal
  15: Target error from Commit Flash write: Ef(49): Flash driver operation gave error.


Supply it's OK,  Vector catch I have on true. i tried set DEBUG TRACE on 4095, but not working.

Help?

Labels (1)
0 Kudos
6 Replies

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Thu Aug 13 22:25:26 MST 2015
I have two board and with this project have problem on all board.

If I open new project and run Hello world app, run blink LED, create demo show on my LCD, Debug normally without problem.

Maybe problem in EEPROM library, because when I started with EEPROM I get this Error.
0 Kudos

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Aug 13 08:39:48 MST 2015
Hi Grega

I'm sorry to say that our testing of your project seems to result in a perfectly healthy application on our test LPC11A14 board using a Link1 probe.  It can certainly be downloaded and run many times with no obvious problem.

I see you use GPIO (including as an LCD interface) the ADC, RTC. They're not things we'd normally worry about.

The error you are seeing is produced near the hardware from the flash driver loaded on to the board. It would be produced if the flash you were using was not programmable.  Could there be a hardware problem? 

Have you seen the problem on more than one board?

Do you have another board you could try?

Sincerely
LPCXpresso Support
0 Kudos

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Wed Aug 12 04:31:50 MST 2015
Here is my project with reference.
0 Kudos

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Aug 12 04:08:25 MST 2015

Quote:
>> So does booting the board into ISP mode before programming work?
> 1. Yes I tried but I don't have lucky.



Not lucky in performing the reset? or not lucky because the reset works but it doesn’t fix the problem?

If you have been successful in performing an ISP reset any previous program will not execute.

If a previous download seems to run still the ISP reset did not work, so follow these instructions
https://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access


Quote:
>> Can you provide a build able example project that provokes the problem once programmed,
>> or at least an AXF?
> 2. Application is write data in my eeprom. I not change clock.



If you can, please send us an example project.  Use the attach button to do this. To export a project as a zip see:

https://www.lpcware.com/content/faq/lpcxpresso/how-importexport-projects

Looking at the error message, the flash driver may be complaining that the code programmed into the flash has not verified.  One possibility is that the previous code did not complete its last use of serial flash.  We might be able to determine whether this is the case with an example project.

It may help us if you can tell us which interrupts your program handles, too.

Sincerely
LPCXpresso Support
0 Kudos

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Mon Aug 10 22:30:00 MST 2015
1. Yes I tried but I don't have lucky.

2. Application is write data in my eeprom. I not change clock.

3. Yes, programmer who on LPCXPresso 1114 board. I think LPC Link 1.
0 Kudos

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Aug 06 12:01:11 MST 2015
So does booting the board into ISP mode before programming work?

https://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access

Can you provide a build able example project that provokes the problem once programmed, or at least an AXF? It would be interesting to know what the application you programmed into flash does with regards to clocks etc.

Can you also confirm what debug probe are you using  - an LPC-Link1?

Regards,
LPCXpresso Support
0 Kudos