LPC1102 Debug Problems

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

LPC1102 Debug Problems

1,308件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by epalmer22 on Tue Nov 29 14:07:14 MST 2011
When I start the debugger, I am not able to load the code into my LPC1102, and get the error "Failed to connect: EM(02).MEM-AP is not selected". After reading posts on this, I uninstalled my Xpresso SW and installed the latest version and still get the same error. I have replaced my hardware several times, and still get the error.

I did try loading code in the LPC1114 demo board and that loads OK.

Any suggestions?
0 件の賞賛
返信
6 返答(返信)

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mscand on Tue Feb 21 22:53:11 MST 2012
Hi epalmer22,

You say you have a LPC1102 board that you designed.

Can you please share with us where you had it assembled, the cost per board  and possibly the design files that you used?

Or perhaps you have any spare boards to sell?

Thanks
0 件の賞賛
返信

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Dec 01 05:48:40 MST 2011
Be aware that there is an issue with the ReinvokeISP() documented in this application note (which will also get generated by the LPCXpresso project wizard). When compiled for Release (ie with optimisation turned on), you may find that the ISP functionality will not work.

You can fix this by changing the declaration of the local variables within this function to be static's - thus...

   [COLOR=Red] static[/COLOR] IAP iap_entry = (IAP)0x1fff1ff1;
   [COLOR=Red] static[/COLOR] uint32_t command[5], result[4];
This change has been made in the code generated by the project wizard for the next release of LPCXpresso IDE after v4.1.0. I believe that a new version of NXP's application note will be made available in due course with this fix in it too.

Regards,
CodeRedSupport
0 件の賞賛
返信

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Thu Dec 01 02:26:06 MST 2011
You may find this app note helpful:

[B][SIZE=4]Adding ISP to LPC1102 systems
[/B][/SIZE]http://www.nxp.com/documents/application_note/AN11015.pdf

There are some unique constraints to the very pin-limited LPC1102 compared to the larger LPC1114, etc.  Getting ISP working once the chip is programmed requires some workarounds.
0 件の賞賛
返信

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Nov 29 16:42:33 MST 2011

Quote:

...has code programmed into it that uses a dedicated input pin to initiate ISP...

And do you think that's working :rolleyes:

If not,  erase it, since a blank chip is starting in ISP mode :)

And that's your last hope: Flash Magic http://www.flashmagictool.com/
0 件の賞賛
返信

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by epalmer22 on Tue Nov 29 16:31:45 MST 2011
"My LPC1102" refers to a board I designed which has an LPC1102 assembled on to it.

I did try ISP and Vector catch and neither worked. The controller currently has code programmed into it that uses a dedicated input pin to initiate ISP, since there is not a dedicated pin for ISP on the LPC1102. I had success programming it in the past, but have run into this problem.

Thanks.
0 件の賞賛
返信

1,291件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Nov 29 14:14:36 MST 2011
#1 What is 'my LPC1102'?

#2 Did you try ISP and Vector catch already?
 
http://support.code-red-tech.com/Cod...ebugAccessChip
0 件の賞賛
返信