View previous topic :: View next topic |
Author |
Message |
paulj Guru
Joined: 30 Sep 2004 Posts: 513 Location: Wales, UK
|
Posted: Mon Sep 02, 2013 9:27 pm Post subject: Discovery STM32F4 board [Solved] |
|
|
Evening all - I am trying to get started with the ST32F4 Discovery board. I have set up a cross compiler - arm-none-eabi-*, which has pulled in newlib. I have a simple test program which I am trying to compile, but I am failing with an error "undefined reference to __end__". Is this a function of using newlib? Should I rebuild the toolchain with a different library, or do I need to define __end__?
Last edited by paulj on Tue Sep 03, 2013 8:58 pm; edited 1 time in total |
|
Back to top |
|
|
theotherjoe Guru
Joined: 22 Nov 2003 Posts: 393
|
Posted: Tue Sep 03, 2013 3:18 am Post subject: |
|
|
I started playing with a different STM32 Discovery board some time ago.
To get started I used the Atollic TrueSTUDIO IDE which basically is a souped up
version of Eclipse, but obviously running on winxp or so.
Looked into the possibility to use Linux as a development platform but the
effort to find the proper tools and test them out was to large for the tiny
project I was working on. Havent looked again since |
|
Back to top |
|
|
paulj Guru
Joined: 30 Sep 2004 Posts: 513 Location: Wales, UK
|
Posted: Tue Sep 03, 2013 8:58 pm Post subject: |
|
|
Ok, I have an operational setup in Gentoo, albeit with example code I haven't written. At least I can confirm the tool chain is working. In case anyone else comes across this problem, here is an outline of what I did:
Code: | crossdev -t arm-none-eabi |
I followed through the information at http://quelab.net/wordpress/1598/getting-started-with-the-stm32f4discovery/ Although targeted at Windows, I was able to follow the steps there to get some code to compile (effectively to download chibiOS, a real time OS, and to navigate to the demo directory). The Makefile worked out of the box.
To upload to the board, I fetched stlink from https://github.com/texane/stlink. I ran the configure as a user with a --prefix=/home/paul to avoid polluting the system. I will at some point write an ebuild for this and install it through portage.
I was able to upload the demo code without any problems. I can now get down to learn about the board in more detail, and to write my own loader! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|