LPCOpen USB example errors

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by tom-gds on Fri Dec 21 05:15:47 MST 2012

I've been getting up and running with LPCXpresso (v5.0.12) and the LPC4357 using the mcb4357 evaluation board, LPC-Link programmer and LPCOpen platform.

Unfortunately i always get this error: "15: Target error from Commit Flash write" when trying to debug any of the single core USB examples. The basic blinky examples (both single core and dual core) work perfectly, however I can't get any of the usb examples to work.

The dual core usb mass storage example programs and starts the debug session fine but then always jumps immediatley into a hardfault so I can't get anywhere with that either.

I've read through the other posts and wiki entries on this error and have tried using an external 2A power supply, enabling vector catch and booting into the ISP bootloader. None of these has made any difference.

When attempting to program the board using the keyboard example and the flash tool i get a similar error and the following log:

Pc: (  0) Reading remote configuration
Ni: LPCXpresso Debug Driver v5.0 (Nov 22 2012 08:46:21 build 1083)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_5.0.12_1083/lpcxpresso/bin/LPC4357.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.0.12_1083/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_5.0.12_1083/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 4BA00477. Info: HID64HS12
Nc: JTAG Frequency: 250 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 4  Poll delay: 4.
Nc: Loaded LPC18x7_43x7_2x512_BootA.cfx: LPC18x7/LPC43x7 Flash 2x512KB @0x1A000000 (Boot Bank A) Aug 17 2012 00:15:43  On-chip Flash Memory

Nc: NXP: LPC4357  Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=true. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'Example_KeyboardDevice.axf' at location 1A000000
Nt: Writing 13564 bytes to 1A000000 in Flash (assumed clock: 204.0MHz)
Pb: 1 of 1 (  0) Writing pages 0-1 at 0x1A000000 with 13564 bytes
Ps: (  0) Page  0 at 1A000000
Ps: (  0) Page  0 at 1A000000: 4096 bytes
Ps: ( 30) Page  0 at 1A001000: 4096 bytes
Ps: ( 60) Page  1 at 1A002000: 4096 bytes
Ps: ( 90) Page  1 at 1A003000: 1276 bytes
Nt: Erased/Wrote page  0-1 with 13564 bytes in 3541msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done
Nt: Loading ELF file 'Example_KeyboardDevice.axf' at location 1A003800
Nt: Writing 5848 bytes to 1A003800 in Flash (assumed clock: 204.0MHz)
Pb: 1 of 1 (  0) Writing pages 1-2 at 0x1A003800 with 5848 bytes
Ps: (  0) Page  1 at 1A003800
Ec: Flash driver "ProgramPage" return code: 0x1
Pb: (100) Writing Flash ended with an error.
Ed:05: File 'Example_KeyboardDevice.axf' load failure: Ef(38). Flash operation has returned an error (see log).
Nc: Core reset only (VECTRESET)

I'd be very grateful for any help as I need to get this working asap as we need to decide on a new microcontroller platform for our new product range.