03: Failed on chip setup

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

03: Failed on chip setup

8,661 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Fri Nov 09 07:54:42 MST 2012
Hi, I have a problem when I try to debug my project. I get the following error:

LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:54)
Looked for chip XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/LPC11U14/201.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID:  BB11477. Info: FTVD8DDMA
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
Invalid LPC11U14/201 Part ID: 0x2998902B
Known LPC11U14/201 ID(s): 0x0998802B, 0x1998802B, 0x2998802B
03: Failed on chip setup: Ec(01). Invalid, mismatched, or unknown part


I checked that my MCU setting were right (in the bottom right corner of lpcxpresso it says LPC11U14/201).

Funny thing is that it was working fine before... When the error appeared I switched to different board(also with an LPC11U14) which again was working fine. But today I got the error also on this board.

Does anybody have an idea? Im using a red probe debugger to debug.
0 Kudos
Reply
16 Replies

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by seanz on Wed Feb 06 08:16:44 MST 2013
Turns out I had an older version of LPCXPresso.  installed version 5, and now I am good to go.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by seanz on Mon Feb 04 12:45:17 MST 2013
Frankb, Did you ever resolve this issue? I am having a similar problem where I am getting a part mismatch error (same as you have listed) but I know for a fact that I have the LPC11U14/201... Any help here would be greatly appreciated!
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Tue Nov 13 11:23:30 MST 2012
No, The LPC11U14 does not have JTAG.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Tue Nov 13 00:36:38 MST 2012
Are we talking about a custom board here?
If so then knows that it is good practise to provide a means to connect flashmagic en some jumpers/switches to force ISP mode.

Also maybe you have a faulty hardware design so that your MCU gets dammaged after a while. Since at first it did work and the problem repeated itself with a second board.

Does the LPC11U14 has a JTAG? I thought it was a SWD only chip? I can be wrong since i am not familiar with that particular MCU.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Mon Nov 12 14:50:30 MST 2012
Hi,
As Zero pointed out your part ID is not right. Can you please give us the complete markings on the Chip?

Also, The following steps are to be followed in order to force the chip into ISP mode.

1. Ground P0_3.
2. Assert the Reset and ISP pins.
3. De-assert the Reset pin.
4. De-assert the ISP pin.

Here is the procedure to read the part-ID of the chip using the FlashMagic tool.
1. Connect the USB to serial cable with the Serial port connected to the board with the LPC11U14 and the USB port connected to the PC.
2. Force the LPC11U14 into ISP mode.
3. Run the Flashmagic tool with the settings shown in the Flasjmagic.jpg ([ATTACH]884[/ATTACH]) snapshot.
4. Select ISP->Read Device Signature (something like Device Signature.jpg ([ATTACH]883[/ATTACH]) will be shown to you).

Please provide a snapshot of the Device signature window that is shown to you. This will help us in resolving the issue.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Mon Nov 12 06:07:57 MST 2012
So my JTAG connected to microprocessor is not enough for this?

I´m also wondering how this is going to solve my original problem. If it shows the same ID as the LPCXpresso, then what? And if it does provide the correct ID, and updating LPCXpresso doesn´t help, then what?
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Nov 12 05:44:18 MST 2012

Quote: Frankb
...I dont know what interface I should choose and what oscillator the LPC11U14 uses.



Would suggest to use UART to USB converter and use setup like described here:

http://www.microbuilder.eu/projects/LPC1114ReferenceDesign/FlashMagic.aspx
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Mon Nov 12 05:38:03 MST 2012
I have no idea what you mean. I have downloaded flash magic from http://www.flashmagictool.com/ and tried to read the device signature via ISP>>Read device signature. This failed because it failed to autobaud. I tried to solve this by setting the properties in step 1, but I dont know everything I need to fill in. I dont know what interface I should choose and what oscillator the LPC11U14 uses.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Nov 12 05:24:34 MST 2012

Quote: Frankb
Actually I have problems reading it with Flash-Magic. Something with a "failed to autobaud" error. I´m using the red probe+ debugger, but I have no idea what the interface type and oscillator freq settings should be.



:confused:

Are we talking about FlashMagic = ISP via UART?
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Mon Nov 12 03:55:27 MST 2012
Actually I have problems reading it with Flash-Magic. Something with a "failed to autobaud" error. I´m using the red probe+ debugger, but I have no idea what the interface type and oscillator freq settings should be.
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Nov 12 03:51:51 MST 2012

Quote: Zero
...read Part ID with FlashMagic to confirm a correct ID reading...



So your wrong Part ID is confirmed by FlashMagic :confused:
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Mon Nov 12 03:38:30 MST 2012
I installed version 5 of LPCXpresso, but still it still gives the same error... Any more ideas?
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Nov 09 11:54:54 MST 2012

Quote:

Isn't that how evolution works? One chip suddenly changing in a different one?

Yes, and tomorrow your mutated ARMinator is trying to rule the world :)

Quote:

What should I do if the ID reading is indeed wrong?

Blame the toolchain and update to V5 :confused:
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Frankb on Fri Nov 09 11:38:59 MST 2012

Quote: Zero
Either your ID reading is wrong or you have discovered a new unknown chip :p



Isn't that how evolution works? One chip suddenly changing in a different one? :)
What should I do if the ID reading is indeed wrong?
0 Kudos
Reply

8,484 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Nov 09 09:22:33 MST 2012
That's no valid Part ID :eek:

Therefore LPCXpresso is nagging :)

Try to reset everything and read Part ID with FlashMagic to confirm a correct ID reading ;)

Either your ID reading is wrong or you have discovered a new unknown chip :p
0 Kudos
Reply