NXP Semiconductors logo
LPCXpresso Logo

Reply
 
Thread Tools
  #21  
Old 05-09-2012, 02:13 PM
gogamoga gogamoga is offline
Member
 
Join Date: Apr 2012
Location: Israel
Posts: 42
gogamoga is on a distinguished road
Default

Quote:
Originally Posted by blasiis View Post
...The error messagge "Ed:02: Failed on connect: Ep(01). Target marked as not debuggable" is misleading
The errors reported by IDE are totally useless. And, targets are marked non-debugable returned by crt_emu_cm3_nxp all the time (at least on my lpc11u14)

check this out:
Code:
./crt_emu_cm3_nxp -info-target -wire=winusb
All the error codes come from there
__________________
I hate Eclipse!
Reply With Quote
  #22  
Old 05-09-2012, 02:52 PM
blasiis blasiis is offline
Senior Member
 
Join Date: Mar 2010
Location: Italy
Posts: 135
blasiis is on a distinguished road
Default

check this out:
Code:
./crt_emu_cm3_nxp -info-target -wire=winusb
All the error codes come from there [/QUOTE]
This command reply same:
Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Connected. Was: None. DpID: EDB6. Info: T1S6RGRIA

Anyway now I have understood the problem and is OK !
----------------------------------------------------------------------------------------
Let me give you another little question: In my production, can I use the executable crt_emu_cm3_nxp without installing lpcxpresso ?
Reply With Quote
  #23  
Old 05-09-2012, 02:58 PM
gogamoga gogamoga is offline
Member
 
Join Date: Apr 2012
Location: Israel
Posts: 42
gogamoga is on a distinguished road
Default @blasiis

You can as long as you include dependencies such as libLPC_Link.so and LPCXpressoWIN.enc and probably the dfu-util and the old libusb-0.1
(not sure about the license of nxp and CodeRed software)

Generally, the required dependencies are just 2 thing: the libLPC_Link.so and LPCXpressoWIN.enc, you can get along with dfu-util that is already present on the system (I have one on FreeBSD and i am using it actually)

And... take a look at my thread

I have made open version of libLPC_Link (as a part of my effort porting this shit to FreeBSD)

You might find something usefull in the source code.
crt emu communicates with the devboard via this solib.

Lol, just remembered some extras. there are xme and xml files that are also required dependencies.
the ones you need depend on your board. Just make a copy of crt_emu_cm3_nxp somewhre outside the lpcxpresso/bin, copy the libLPC_Link.so into it and try running the crt_emu_cm3_nxp and see what it complains about.

PS.
Eventually i am planning to make opensource out of all the lpcxpresso toolset, but it will take quite a while (too much reversing to be done)
__________________
I hate Eclipse!

Last edited by gogamoga; 05-09-2012 at 03:09 PM. Reason: Forgot some extra things.
Reply With Quote
  #24  
Old 07-04-2012, 09:39 AM
ju2low ju2low is offline
Junior Member
 
Join Date: Jul 2012
Location: France
Posts: 11
ju2low is on a distinguished road
Default Target marked as not debuggable.... again and again

Hello everyone,

I recently received my new LPCLINK and its Cortex M3 1769, and unfortunately I have this recurrent message.

I'm rookie with all this NXP & XPRESSO stuff so I'm looking for your help !!!

My situation:
Plugged on front USB port on my computer with LPCLINK

I have tried to erase memory but I received this
---------------------------------------------------------------------------------------------------------
PROGRAM FLASH
crt_emu_cm3_nxp -g -2 -vendor=NXP -pLPC1751 -s250 -flash-mass -wire=hid

Pc: ( 0) Reading remote configuration
Ni: LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:41)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/LPC1751.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/crt_directory.xml

Pc: ( 5) Remote configuration complete
Xe:
Pc: ( 15) nSRST assert (if available)
Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Connected. Was: None. DpID: EDB6. Info: T1S6RGRIA
Error 0: (null)
Last sticky: 0. AIndex: 0
---------------------------------------------------------------------------------------------------

I have FLASHMAGIC but also with this program, I can't establish communication for read ISP security... something about autobaud with ALL Baudrate...

Sorry for the long post...

Keep looking for solutions....

Last edited by ju2low; 07-04-2012 at 09:56 AM. Reason: Mistake
Reply With Quote
  #25  
Old 07-04-2012, 10:12 AM
TheFallGuy TheFallGuy is offline
Senior Member
 
Join Date: Dec 2009
Posts: 448
TheFallGuy is on a distinguished road
Default

"Target marked as not debuggable" normally means that you have set CRP in your target. That will have disabled debug and so LPC-Link (or any other debugger) cannot connect. Depending on which CRP you have set, you may be able to erase the flash by using FlashMagic through a serial port and recover your chip.
Reply With Quote
  #26  
Old 07-05-2012, 08:31 AM
ju2low ju2low is offline
Junior Member
 
Join Date: Jul 2012
Location: France
Posts: 11
ju2low is on a distinguished road
Default

Quote:
Originally Posted by TheFallGuy View Post
"Target marked as not debuggable" normally means that you have set CRP in your target. That will have disabled debug and so LPC-Link (or any other debugger) cannot connect. Depending on which CRP you have set, you may be able to erase the flash by using FlashMagic through a serial port and recover your chip.
If I have used CP3, is it possible to reset LPC1769 ? How ?
Reply With Quote
  #27  
Old 07-05-2012, 08:39 AM
Zero Zero is offline
Senior Member
 
Join Date: Dec 2009
Location: far away
Posts: 2,625
Zero is on a distinguished road
Default

Quote:
CRP3 0x43218765 This is similar to CRP2, but ISP entry by pulling P2.10 LOW is disabled if a valid user code is present in flash sector 0.
This mode effectively disables ISP override using the P2.10 pin. It is up to the user’s application to provide for flash updates by using IAP
calls or by invoking ISP with UART0. Caution: If CRP3 is selected, no future factory testing can be performed on the device
If you haven't provided IAP / or ISP functions in your code, your LPC is now locked successfully and just pulling low P2.10 isn't working
Reply With Quote
  #28  
Old 07-05-2012, 08:50 AM
ju2low ju2low is offline
Junior Member
 
Join Date: Jul 2012
Location: France
Posts: 11
ju2low is on a distinguished road
Unhappy

Quote:
Originally Posted by Zero View Post
If you haven't provided IAP / or ISP functions in your code, your LPC is now locked successfully and just pulling low P2.10 isn't working
So, Did I break my LPC Board?
Reply With Quote
  #29  
Old 07-06-2012, 10:26 AM
Serge Serge is offline
Senior Member
 
Join Date: Apr 2011
Location: Belgium
Posts: 165
Serge is on a distinguished road
Default

Yes, if you have set CRP3 and did not provide the IAP calls in your program then you succesfully brought your LPC1769 to his end.

Was indeed a 1769. My mistake Zero. I own you a case of beer. Would a nice Belgium Kriek beer be ok?

Last edited by Serge; 07-06-2012 at 10:35 AM. Reason: Zero's sharp mind
Reply With Quote
  #30  
Old 07-06-2012, 10:32 AM
Zero Zero is offline
Senior Member
 
Join Date: Dec 2009
Location: far away
Posts: 2,625
Zero is on a distinguished road
Default

Quote:
Originally Posted by Serge View Post
...your LPC1343...
LPC1343
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:49 PM.