Build Error "undefined reference to '__data_end__' , start, etext, StackTop please help!

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

Build Error "undefined reference to '__data_end__' , start, etext, StackTop please help!

Jump to solution
1,277 Views
RKnappPMT
Contributor I

Friends,

My two main kinds of build errors are weird in MCUXpresso IDE v11.10.0 [Build 3148] [2024-07-03]:  

1) Several "multiple definition of clock" errors which I *think* arise from my attempt to get semi-hosting going with a Segger debugger.  

2) Several "undefined reference to '__data_end__' etc. which are very mysterious and scary.  

I've attached a picture of these errors and would really appreciate it if you have any clue as to what the heck is going on.  I'm REALLY confused.

Thanks, ~~ Robert

0 Kudos
Reply
1 Solution
1,157 Views
AdrianOltean
NXP Employee
NXP Employee

There's no need to import CMSIS-based components for board/device/core support. These are already brought by the IDE in NXP-based SDK examples. Once you select the project in Project Explorer, you'll notice the "Manage SDK Components" button active in the toolbar. Click it and you'll be able to see/remove/update SDK components. 

Regards,

Adrian

View solution in original post

0 Kudos
Reply
3 Replies
1,221 Views
RKnappPMT
Contributor I

Adrian,  I'm sure you're right.  I can't see how get rid of an incongruous aspect of the system, and actually wouldn't know what part to remove, so I'm going to start over and try to keep everything minimalist and from the SDK -- to keep the project telling me I lack something and have it offer to supply the needed thing.  My directive is to get to CMSIS drivers, but maybe I can get a working system and swap out one driver at a time, reverting if CMSIS substitution crashes my system.  Hopefully that will work? Wish me luck.  

THANK YOU for your response and have a nice day, ~~ Robert 

0 Kudos
Reply
1,158 Views
AdrianOltean
NXP Employee
NXP Employee

There's no need to import CMSIS-based components for board/device/core support. These are already brought by the IDE in NXP-based SDK examples. Once you select the project in Project Explorer, you'll notice the "Manage SDK Components" button active in the toolbar. Click it and you'll be able to see/remove/update SDK components. 

Regards,

Adrian

0 Kudos
Reply
1,231 Views
AdrianOltean
NXP Employee
NXP Employee

I suspect that you have multiple startup/system configuration files in your project. Given that you don't offer the steps used to create the project, my suspicion is that you mixed device-level support component from NXP SDK (installed through Installed SDKs view) with CMSIS-Packs component specific for the same device. Note that you have two different sources of components, thus you must make sure you don't end-up with duplicated components in a project.

Regards,

Adrian

0 Kudos
Reply