LPCXpresso new project debug problems

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

LPCXpresso new project debug problems

1,078 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by db_weldon on Wed Nov 19 13:22:28 MST 2014
I'm using an LPC Link 2 (all jumpers open) connected to an LPC433x-Xplorer (with a 4330). Both are powered by individual USB cables.
As a new user, the issue I'm having is that the sample project (periph_blinky) runs on the board using this set up, but opening a new project (using the following steps) and loading it always ends in errors. Interestingly when I copy the new projects C file over to the sample project, it will still work without error. I have screenshotted the errors I get. I get them using the same set up (subsequent debugs produce different errors).

File -> New Project
->LPCXpresso C Project
->LPC43xx (Cortex-M4 basic) -> LPCOpen - C project
->name -> LPC4330
LPCOpen Chip Library Project = lpc_chip_43xx
LPCOpen Board Library Project = lpc_board_ngx_xplorer_4330
->CMSIS DSP = none
->Floating point unit = Enabled_SoftABI
->Enable linker support for CRP (checked)
->External memory configuration file: none
->Redlib printf variants
Use non-floating point version of printf (checked)
->Finish

->Build project
->Debug as NXP

JTAG Configuration
Device: 0 coresight DP Cortex-M4 (checked)

Can anyone see where I'm going wrong?
0 Kudos
Reply
6 Replies

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Dec 10 01:06:40 MST 2014
I'm glad to see that you are now up and running.

As I previously mentioned, the the mechanism for adding SPIFI flash to a project has been overhauled in LPCXpresso 7.5.0. In particular, we now supply some SPIFI config files that can be 'Merged' into the project using the Memory Configuration Editor - doing this  will add the memory definition of the required SPIFI device to your project, plus the appropriate flash driver.

And you can do this either as you run through the project wizard or for an existing project.

For more details, please read the chapter on the 'Memory Configuration Editor' in the LPCXpresso 7.50 User Manual. If you don't have this version installed yet, you can download the current user manual from:

http://www.lpcware.com/content/nxpfile/lpcxpresso-ide-v7-user-guide

Regards,
LPCXpresso Support
0 Kudos
Reply

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by db_weldon on Tue Dec 09 20:38:51 MST 2014
To make it easier for the next person, for anyone else that finds this thread and is using external SPIFI, this is what had to be done when creating new projects on the Xplorer board:

Go through the process until arriving at the memory configuration editor window.
- The flash driver ("browse") needed can be found on the LPCWARE site under Home > FAQ > Debugging > LPC18 / LPC43 External Flash Drivers. Once here check your LPCXpresso version and the driver name will be beside the SPIFI chip of your board. For our OM13027 (LPC4330-Xplorer Board) this was the Spansion S25FL032P (4MB with 64KB sectors) and thus required the "LPC18_43_S25FL032P.cfx "driver. The file can be found on your computer under LPCXpresso_*** > lpcxpresso > bin > Flash. The chip name was found looking at the schematic of our board (on the product webpage) or if you have good eyes you can read it off the board (zooming in on a photo of it works as well).
- There is a note at that link saying the memory address of SPIFI flash is located at 0x14000000. If there isn't a FLASH type memory at address 0x14000000 (I only saw a few rows of RAM) choose "Add Flash" and change its location to 0x14000000. Change the size to a value larger than your compiled program size to ensure it fits.

Including what we had done in our first post above, that's it!

Thanks again for everyone's help.
0 Kudos
Reply

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by db_weldon on Sun Nov 23 10:42:37 MST 2014
Thank you guys. I will give your suggestions a try and get back to you the next time I am in the lab. Thanks for the links as well.
0 Kudos
Reply

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 20 01:01:57 MST 2014
The issue here is that you are using a part with no internal flash, but have not associated an external flash device with your project. Normally you would do this at the memory configuration step in the project wizard. Please read the LPCXpresso User Guide for more details on memory configurations.

This topic has also come up a few times in previous forum threads, for example:

http://www.lpcware.com/content/forum/lpcxpresso-lpc43xx-new-project-wizard-creates-project-wont-debu...

I would also recommend that you read the various LPC43xx related FAQs, starting with:

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

Also note that modifying the memory configuration in the LPC43xx project wizards has been improved in LPCXpresso v7.50 - I suspect you are using an earlier version from what you say and I would advise you to upgrade.

Regards
LPCXpresso Support
0 Kudos
Reply

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Nov 19 14:36:00 MST 2014
How did you create your debug configuration? I suggest that you delete any existing configuration and then create a new one, by just pressing the Debug item in the QuickStart panel. This should create a working debug configuration for running your application from RAM in your lpc43.

I also suggest your look in the FAQ section on this website. There is a lot of information on the lpc43 family parts.

If you continue to have problem, please post THE TEXT from the debug log. Please don't post any more screenshots...
http://www.lpcware.com/content/faq/lpcxpresso/debug-log
0 Kudos
Reply

1,058 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LessThanZero on Wed Nov 19 14:19:47 MST 2014

Off hand, it looks like you didn't attach a reset script to your debug configuration. Use the LPC18LPC43ExternalFLASHBootResetscript.scp script.

LessThanZero
0 Kudos
Reply