LPCOpen USB example errors

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

LPCOpen USB example errors

347 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom-gds on Fri Dec 21 05:15:47 MST 2012
Hi.

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.
0 Kudos
7 Replies

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jan 03 01:25:19 MST 2013
On this occasion only, please can you contact our support team directly, referencing this forum post, using the "email the support team" link at:

http://www.code-red-tech.com/support.php

Regards,
CodeRedSupport
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom-gds on Wed Jan 02 09:41:23 MST 2013
I've just downloaded and installed LPCXpresso v4.3 and most of the examples now seem to work. I've tested all the applicable single core examples and they are fine. The dual core blinky works too. The only one that doesn't work is the dual core mass storage example, which gives a usb device fault in windows.

It seems that version 5 of LPCXpresso breaks the LPCUSBlib examples. Is this also true of the code red suite? If it is then I would be very reluctant to fork out the cash to invest in this platform. If this problem isn't isolated to myself, it also shows that version 5 wasn't fully tested before release, which is another worrying sign.

I plan on getting an evaluation copy of Red Suite 5 to see if these problems persist. Let me know if you have any more information on the matter.
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom-gds on Wed Jan 02 07:58:08 MST 2013
Hi,

I'm still not having any luck on this, any suggestions? If I can't get this working soon, we'll have to move over to a different platform, which would be a shame as this processor looks like the best solution.

Tom
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom-gds on Fri Dec 21 08:37:25 MST 2012
sorry, I changed the optimisation options between making those two posts in the hope that it might make it work.

Here is the map, log and axf. all from the same build.
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Dec 21 08:28:37 MST 2012
I think that we are going to need to see the actual generated AXF as well please.

Also, I suspect that the map file that you provided does not match with the actual build used for the debug log file that you originally provided?

Thus could you please provide matching map file, axf and debug log?

Regards,
CodeRedSupport
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom-gds on Fri Dec 21 07:18:34 MST 2012
since updating to the latest version, I still get the same error "15: Target error from Commit Flash write" when debugging the usb keyboard example, however when closing the message box, the debug window stays open and I can now pause and resume the program. I also get a USB Device not recognised error in windows.

For all the other examples, the behaviour is the same as i described in my original post. I've attached the .map file for the keyboard example.
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Dec 21 05:25:01 MST 2012
Please try again with LPCXpresso 5.0.14, which was released yesterday.

If that doesn't help, then please can you attach the map file generated by the linker when you build your application.

Regards,
CodeRedSupport
0 Kudos