Can't make CodeSourcery G++ for ARM m4 work on Eclipse [message #853257] |
Sun, 22 April 2012 22:04 |
Danny M Messages: 5 Registered: April 2012 |
Junior Member |
|
|
Not sure if it's an Eclipse issue, either way, I could really really use some help.
I have plenty of experience with microcontrollers, C, and the PIC MPLAB IDE. I now have the STM32F4 Discovery kit with the ARM Cortex m4 on it. So, time to learn a new thing, but the toolchain for the m4 seems to be less than "well-established".
I tried to follow the procedure at http: //shareee.netne.net/wordpress/?p=5 to use CodeSourcery G++ Lite for Cortex m4 with the demo LED_Blink project, designed for the STM32F4 board, with the Eclipse Indigo IDE.
I had trouble with the long list shown there in "Paths and Symbols", no such list was showing up by default and the install path names for my EABI package was somewhat different. I skipped that step, tried to compile, of course it bombed because it couldn't find certain files, I looked for where those files were and added them under "Paths and Symbols".
Now I get a situation where there are no FILES which can't be found, so that's good, but an issue of unresolved symbols shows up from core_cm4.h:
make: *** [Template.elf] Error 1
Symbol '__NVIC_PRIO_BITS' could not be resolved (this repeats a bunch of times on the error list)
undefined reference to '_init'
I don't understand what would cause these errors, the LED_Blink project should be complete and very simple. Any help?
I do have a warning about a duplicate path entry, but I don't think it's related to this.
[Updated on: Mon, 23 April 2012 01:31] Report message to a moderator
|
|
|
Re: Can't make CodeSourcery G++ for ARM m4 work on Eclipse [message #853531 is a reply to message #853257] |
Mon, 23 April 2012 05:17 |
Danny M Messages: 5 Registered: April 2012 |
Junior Member |
|
|
Hmm, I found where __NVIC_PRIO_BITS is an optional define, and for some odd reason that specific error just "went away". I didn't change anything.
So I still have:
Description Resource Path Location Type
make: *** [Template.elf] Error 1 Template C/C++ Problem
Description Resource Path Location Type
undefined reference to `_init' Template line 0 C/C++ Problem
What is "Error 1"?
I tried searching the files for "_init". I found plenty of references for things with "_init" in the task/define label, but no "_init" itself. And why does it say only that its location is "line 0"? How is it I can't find a reference to it, and it doesn't cite a location for this reference, yet it's still a reference?
[Updated on: Mon, 23 April 2012 06:46] Report message to a moderator
|
|
|
|
|
Re: Can't make CodeSourcery G++ for ARM m4 work on Eclipse [message #855760 is a reply to message #855543] |
Wed, 25 April 2012 04:35 |
Danny M Messages: 5 Registered: April 2012 |
Junior Member |
|
|
GOT IT!!
Properties->C/C++ Build/ARM Sourcery Windows GCC C Linker->General:
"Do not use standard start files" was checked and shouldn't have been
"Remove unused sections" wasn't checked and should have been
Well, at least that's what I had set that wasn't consistent with the step-by-step instructions in the aforementioned URL. With those boxes changed, I now have a build!
[Updated on: Wed, 25 April 2012 04:49] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04313 seconds