How can I upload the code and debug using LPC-Xpresso and ULINK-ME

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

How can I upload the code and debug using LPC-Xpresso and ULINK-ME

1,857 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Fri Nov 29 02:46:38 MST 2013
Hi,

I just received the LPC4330-Xpresso board, I tested with Keil IDE and it is working fine, but I prefer to use LPC-Xpresso IDE, I am already familiar with Eclipse and it is one of m favorite environment, but I got some problem to get it work, I can upload the code but when I am trying to debug it I am receiving the following error :
No source available for "0x1a007500" 


Is this a setting problem? How can I fix this?
Labels (1)
0 Kudos
20 Replies

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Sun Mar 20 03:46:10 MST 2016
Buy an LPC-Link2 or ULInk-ME (or any other CMSIS-DAP -based) debug probe. They cost about $10 and can be bought from lots of places.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ragavendran on Sat Mar 19 03:36:24 MST 2016
Hi.,
Hello we are doing our final project we are facing a problem and kindly help me out with the solution asap.
How to upload a program to arm cortex m3(lpc 1313) from lpc xpresso ide v8.0.0.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Wed Dec 11 11:04:25 MST 2013
Thank you very much for your support, it seems I ordered lpc4330 and received lpc4337 board.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Dec 11 06:03:00 MST 2013
Based on the reference that you see to the address 0x1Axxxxxx, please check the actual chip that is fitted to your NGX board. I suspect that you actually have an LPC4337 rather than an LPC4330. The LPC4337 has internal flash in the previously mentioned address range.

If this is the case, as a simple test of downloading, import the examples in

C:\nxp\LPCXpresso_6.1.2_177\lpcxpresso\Examples\NXP\LPC4000\LPC43xx\NGX_LPC4337-Xplorer.zip

and build, then debug the LPC4337-Xplorer_LedToggle project. Does this work?

And for your future reference, you may find this FAQ (and the additional FAQs that it links to) useful:

http://www.lpcware.com/content/faq/lpcxpresso/lpc18-lpc43-support

Regards,
LPCXpresso Support
0 Kudos

1,697 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Wed Dec 11 04:43:16 MST 2013
Hi,

I created a video to show what am I doing, but unfortunately the system doesn't allow me to upload.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Dec 10 13:27:21 MST 2013
Daft questions...

1. Are you debugging the Debug or Release build?
2. Does the program run? Just run it after you get the message.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Tue Dec 10 12:50:31 MST 2013
Hi,

No this gives me the same error. I will try with an other PC. I assumed that there is no problem with the board and debugger because it is working with Keil.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Tue Dec 10 11:00:11 MST 2013
Why do you think that the OS has something to do with this error?
Your LPCXpresso works fine on both systems, you get on both systems the same error --> the error must be somewhere else !!

Anyway, my OS is Windows 7  64-bit.

Did you do it the same way I did?
-  downloaded LPCOpen v2.02
-  imported the whole example folder
-  etc.

I attached the folder exactly the way I used it for a succesful compilation and debug run.

Regards,
NXP Support Team
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Tue Dec 10 04:52:14 MST 2013
Hi,

Thank you for your reply, I tested under Ubuntu and Windows 7 64Bit. I am getting the same error in both operating system. Are you using 60Bit OS or 32Bit.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Tue Dec 10 04:40:27 MST 2013
Here are my test results. I took the following components:

-  LPCXpresso 6.1.0
-  ULINK ME Vers. 5
-  LPC4330  Xplorer board
-  Blinky example from LPCOpen v2.02

+  I imported the whole folder "lpcopen_v2_02_lpcxpresso_ngx_xplorer_4330_0" into the workspace
+  I compiled it, got the error message that JTAG is not supported, switched in the Debug configuration to SWD communication and then it worked fine.
+  I could provoke the error message <No source available for "0x10400042"> by using an LPC1830 Xplorer board instead of using a LPC4330.

So from my point of view I don't see a problem or a bug. For sure it does not depend on Windows or Linux versions of the tool.

Regards,
NXP Support Team


LPCXpresso RedlinkMulti Driver v6.0 (Sep 17 2013 18:02:04 - crt_emu_cm_redlink build 244)
Found chip XML file in C:/Users/dep00717/Documents/LPCXpresso_6.1.0_164/workspace-2/ngx_xplorer_4330_periph_blinky/Debug/LPC4330.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC18_43_SPIFI_16MB_64KB.cfx: LPC18/43 16MB(64KB) SPIFI @0x14000000 (Oct 10 2013 14:07:22)  External Flash Device on SPI
Connected: was_reset=true. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 7640 bytes to 14000000 in Flash (assumed clock: unknown)
Erased/Wrote page  0-0 with 7640 bytes in 1964msec
Flash write Done
================== SCRIPT OUT ==================
Boot from FLASH image pc/sp reset script
PC = 0x1400044D
SP = 0x10020000
XPSR = 0x01000000
VTOR = 0x14000000
================== END SCRIPT ==================

Stopped: Breakpoint #1  <-- stopped in main() 
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Mon Dec 09 11:37:33 MST 2013
Does anybody know what is the problem? PC dependent, or Debugger dependent, or this is a new bug?
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Sat Nov 30 16:22:26 MST 2013
Hi,

I am using SW from the beginning, here is the log
LPCXpresso RedlinkMulti Driver v6.0 (Sep 17 2013 18:02:04 - crt_emu_cm_redlink build 244)
Found chip XML file in C:/Users/run/workspacelpc/ngx_xplorer_4330_periph_blinky/Debug/LPC4330.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC18_43_SPIFI_16MB_64KB.cfx: LPC18/43 16MB(64KB) SPIFI @0x14000000 (Oct 10 2013 14:07:22)  External Flash Device on SPI
Connected: was_reset=true. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 7640 bytes to 14000000 in Flash (assumed clock: unknown)
Erased/Wrote page  0-0 with 7640 bytes in 2072msec
Flash write Done
================== SCRIPT OUT ==================
Boot from FLASH image pc/sp reset script
PC = 0x1400044D
SP = 0x10020000
XPSR = 0x81000000
VTOR = 0x1A000000
================== END SCRIPT ==================
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sat Nov 30 10:13:27 MST 2013
If you are using a uLink-ME, then you will be connecting via CMSIS-DAP. CMSIS-DAP  support in LPCXpresso does not currently support connections via JTAG (which are the default with LPC43 parts).

Please can you switch the launch configuration to use SWD instead of JTAG - and see if you can then connect?

http://www.lpcware.com/content/faq/lpcxpresso/launch-configuration-menu

Note that I would have expected you to see the error documented in the following FAQ when using JTAG…

http://www.lpcware.com/content/faq/lpcxpresso/cmsis-dap-redlinkapi-unsupported-settings

If you are still encountering problems, please post your debug log…

http://www.lpcware.com/content/faq/lpcxpresso/debug-log

Regards,
LPCXpresso Support
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Sat Nov 30 03:20:06 MST 2013
Yes it is Xplorer. I imported from zip file but I am getting the same error. I tested under Ubuntu as well, where I got the same error.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Nov 29 14:29:45 MST 2013
Try one of the example supplied in the lpcxpresso Examples directory. Use the import project button in the QuickStart view.

As far as I know, there is no LPCXpresso 4330 board. Do you mean the Xplorer board, or something else?
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Fri Nov 29 13:27:32 MST 2013
Hi,

I have an LPC4330-Xpresso board.

I tested the blinking example, I tried in Keil and it is working, I tried the same in LPC-Xpresso and I am getting the error above.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Nov 29 13:12:32 MST 2013
Exactly which board are you using? I guess it it the NGX Xplorer 4330 board. If so, try one of the examples for this board.

Also make sure you read this FAQ
http://www.lpcware.com/content/faq/lpcxpresso/lpc18-lpc43-support
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Fri Nov 29 12:26:36 MST 2013
I started a project from scratch,  but I am receiving the same error.
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by run on Fri Nov 29 06:00:02 MST 2013
Hi,

I used the blinking example from the LPCopen website. I tested only on Windows 7. Does LPC-Xplorer support Ubuntu 64bit or 32bit?

Regards,
Robert
0 Kudos

1,698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Nov 29 05:56:20 MST 2013
This means that the debugger cannot find any source that was compiled and linked to that address. This could be for several reasons:
- you have no debug information in your executable
- you have linked with a library that does not have matching source
- the program has crashed by jumping to a location where there really is no code (i.e. perhaps you have accidentally overflowed the stack and corrupted a return address
- you are missing the LPCXpresso startup code that correctly sets up the processor. Startup code is Tools (Keil, LPCXpresso, etc )and linker script dependent
- etc.

I suggest you use a Wizard to create a basic example and make sure that works, and then compare it with your non-working example to see what is different
0 Kudos