Content originally posted in LPCWare by jx1 on Wed Jul 17 23:17:36 MST 2013
Hi everyone,
I am having a problem when I debug using LPCXpresso v5.2.4. The error is " Flash driver 'UnInit' return code : 0x1 ".
This is the message when I tried to program flash
Ni: LPCXpresso Debug Driver v5.2 (Apr 26 2013 19:52:22 - crt_emu_lpc11_13_nxp.exe build 1153)
Pc: ( 0 ) Reading remote configuration
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_5.2.4_2122/lpcxpresso/bin/LPC1343.xml
Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.2.4_2122/lpcxpresso/bin/nxp_directory.xml
Nc: Found generic directory XML file in C:/nxp/LPCXpresso_5.2.4_2122/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: 2BA01477. Info: HID64HS12
Nc: SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0 Poll delay: 0.
Nc: Loaded LPC11_12_13_32K_8K.cfx: LPC11_12_13 (32K Flash, min 8K RAM) Apr 22 2013 12:14:02 On-chip Flash Memory
Nc: NXP: LPC1343 Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=true
Cr:v Registered license, download limit of 128K
Pc: ( 70 ) License Check Complete
Nt: Loading binary file 'blinky.bin' at location 00000000
Nt: Writing 1092 bytes to 0000 in Flash (assumed clock: 48.0MHz)
Pb: 1 of 1 ( 0 ) Writing pages 0-0 at 0x00000000 with 1092 bytes
Ps: ( 0 ) Page 0 at 00000000
Ps: ( 0 ) Page 0 at 00000000: 1092 bytes
Wc: Verify of Flash failed at 00000000.
Ec: Flash driver "UnInit" return code: 0x1
Pb: (100) Writing Flash ended with an error.
Ed:06: File 'blinky.bin' load failure: Ef(5). Flash verify operation failed.
Wc: SWD Frequency (Final): 250 KHz.
Pc: (100 ) Target Connection Failed
What is the problem? Anyone knows? Thanks in advance ~