SWD without target board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SWD without target board

1,045件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zsander on Tue Jun 07 08:01:44 MST 2011
I'm using a LPC11C24.  I have a project that compiled and ran fine on the development board and I am now trying to move it to a seperate board.  I split the development board in two and connected the SWDIO, SWCLK, Reset, and ground pins of the debugger portion to the corresponding pins on the micro.

When I try to debug the project, I get an error that says "Error launching Debut/blinky.axf     03: Failed on chip setup: Ec(01). Invalid, mismatched, or unknown part:"

Is there something else I have to do with the LPC-Link before I can connect it to a chip that is not on a target board?

I'm not sure what I am doing wrong.  The origional settings of the micro have not been changed from the packaging.
0 件の賞賛
返信
6 返答(返信)

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zsander on Tue Jun 07 12:11:15 MST 2011
Sighhhh, I found the problem.  I had not set up the new board myself, and I wasn't told that they changed the 11C24 out for a 11C22.  Sure enough, that fixed it right away.  Thanks for the help, even with the dumb mistake.  Thanks Zero for the insight on SWD.
0 件の賞賛
返信

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zsander on Tue Jun 07 12:00:38 MST 2011
The same exact setup worked when I attached the LPC-Link back to the target board with the same project.  I see information on the SDW lines that looks alright.  The reset line never goes low though when I try to enter debut mode.

In the board that I am using, PIO0_1 is tied high and PIO0_3 is tied low.  I don't think this should matter as PIO0_1 is high.  I changed these pins to just open like it is on the target board, and I get the same results.
0 件の賞賛
返信

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Skashkash on Tue Jun 07 09:22:19 MST 2011

Quote: zsander
The project should be set to the 11C24.  I had a 11C24 target board and it was able to compile/debug on that board.

All I did was power up the chip, connect the 4 wires and try to debug, but I am still getting that error.




How are clock and power on the target?

I'm just about to start laying out an 11c24 pcb, so curious if there are any gotchas (but I doubt it).
0 件の賞賛
返信

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 07 08:58:29 MST 2011
Did you scope VDD, SWCLK, SWDIO and Reset ?
0 件の賞賛
返信

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zsander on Tue Jun 07 08:48:32 MST 2011
The project should be set to the 11C24.  I had a 11C24 target board and it was able to compile/debug on that board.

All I did was power up the chip, connect the 4 wires and try to debug, but I am still getting that error.

I'm going to hook up the LPC-Link back up to the target board and and see if that still works.
0 件の賞賛
返信

1,032件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 07 08:27:37 MST 2011

Quote:

Invalid, mismatched, or unknown part:

Did you change your MCU setting to 11C24?

http://support.code-red-tech.com/CodeRedWiki/ChangingProjectTarget

Your target board is nothing special for LPC-Link.
You just have to add a power supply and connect 4 wires for SWD, Reset and GND.

That's all :)
0 件の賞賛
返信