LPCXpresso 5.2.2 undefined reference to _data.

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

LPCXpresso 5.2.2 undefined reference to _data.

1,183 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Fri Apr 19 05:07:26 MST 2013
Hi
I am just trying out version 5.2.2 (LPC1768). After importing an existing FreeRTOS project I get the above error on linking cr_startup_lpc17.c.
Even just creating a new 'FreeRTOS' project for LPC1768 then building gives the same error. Creating a non-FreeRTOS project pulls in a different version of cr_startup_lpc17.c which links fine.
The existing project (and creating a new project from wizard) work fine on 5.1.2.
It seems that the .ld file doesn't create '_data' just 'data' sections.
Any ideas so I can use the new version ?
Thanks.
0 Kudos
Reply
5 Replies

1,159 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sat Apr 05 09:30:09 MST 2014

Quote: sweetalk
I'm having the same problem with LPCXpresso 5.2.4 and a propietary library. Resolves the include fine, but when compiling I get error in every function from that library.



I suggest that you create a new thread and post some actual details of your problem. Make sure you include your build log.

http://www.lpcware.com/content/faq/lpcxpresso/build-console

Regards,
LPCXpresso Support
0 Kudos
Reply

1,159 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sweetalk on Sat Apr 05 07:31:57 MST 2014
I'm having the same problem with LPCXpresso 5.2.4 and a propietary library. Resolves the include fine, but when compiling I get error in every function from that library.
0 Kudos
Reply

1,159 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 01 02:12:14 MST 2013
This issue has been resolved in LPCXpresso 5.2.4. For more details see:

http://knowledgebase.nxp.com/showthread.php?t=4474

Regards,
CodeRedSupport
0 Kudos
Reply

1,159 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Fri Apr 19 07:53:35 MST 2013
The workaround works perfectly, and has taught me something new !
Thanks for the excellent support.
0 Kudos
Reply

1,159 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Apr 19 07:20:35 MST 2013
Hi,

You have found a bug in the 5.2.2 release. The problem is a typing error in the managed linker script mechanism. We will fix this asap, but in the meantime we have a workaround.

1. Please read this FAQ on using linker script templates:
http://support.code-red-tech.com/CodeRedWiki/EnhancedManagedLinkScripts#template
and follow the instructions for using a template
2. Instead of using the link_template.ld mentioned in the FAQ, please use the version attached to this post.

Apologies for the inconvenience; we will release a fixed version soon.
0 Kudos
Reply