STM32F4Discovery, NuttX, ARM-Cortex development on GNU/Linux....

1,434 views
Skip to first unread message

Gert van den Berg

unread,
Sep 23, 2013, 4:26:52 PM9/23/13
to house...@googlegroups.com
Found some time to play with my STM32F4Discovery...

Getting it to work on Arch was interesting...

Eventually settled on these packages for compiler, STLink, Debugger:
Other useful things: 
For flashing via on-chip bootloader: https://aur.archlinux.org/packages/stm32blctl-git/ (No success yet...)
Alternative STLink interface: https://aur.archlinux.org/packages/stlink-git/ (Seem to also work with GDB...)

I mainly used this tutorial to get it running in Eclipse:

Needed to modify the GDB scripts not to enable flash protection after flashing... (I had to boot into Windows and use the ST-Link tool to disable it...) (Haven't tried stlink-git from above yet...)

The NuttX was simpler to configure (at least for a basic compile) than I expected... Mainly followed this:
http://nuttx.org/doku.php?id=wiki:howtos:build-and-install-nuttx-for-the-lm3s6965-ek-in-linux (Use a STM32F4 example, usbnsh allows you to actually see if it works...) Also, do not bother with buildroot, the GCC for above works...


Next steps: 
  1. Get an actual useful NuttX application running... http://www.zilogic.com/blog/tutorial-nuttx-hello.html seem to be useful...
  2. Figure out the make / flash process for embedded systems (WHY is GDB involved in flashing?! What is this bin file? IT seem to be ELF, probably using normal loading instructions as flashing instructions.... How does it get linked? What goes into the linking...)
  3. Figure out how to properly configure NuttX
  4. Try to get NuttX to build from Eclipse
  5. Get NuttX running on some other hardware (Arduino Mega maybe)
  6. See if same NuttX applicaiton runs on both
  7. Figure out NuttX HAL (for simple peripherals first...)
  8. Possibly get some more of the STM32* discovery boards running (I also have F3, F0, VL...)
  9. Do something useful with it...
  10. Figure out another RTOS (FreeRTOS / scmRTOS / Chibios / eCos all seem interesting...)

Things that I struggled with more than I should:
Compiling a toolchain with crosstool-ng, when the AUR package seems to work fine...

Gert

Schalk Heunis

unread,
Sep 25, 2013, 11:51:20 AM9/25/13
to house...@googlegroups.com
Thanks, I was really impressed with the demo you showed last night.

Could also be interesting to see it running on the Arduino DUE (I have one, and to date have only blinked one of its LED's)

S



--
--
You received this message because you are subscribed to the Google
Groups "house4hack" group.
To post to this group, send email to house...@googlegroups.com
To unsubscribe from this group, send email to
house4hack+...@googlegroups.com
---------------------------------------------------------------------------------------------
www.house4hack.co.za | Centurion Tue 18-21 & Sat 9-14 | Randburg Wed 18-21
---------------------------------------------------------------------------------------------
---
You received this message because you are subscribed to the Google Groups "house4hack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to house4hack+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Gert van den Berg

unread,
Sep 25, 2013, 12:41:21 PM9/25/13
to house...@googlegroups.com

On Wednesday, September 25, 2013 5:51:20 PM UTC+2, Skullkey wrote:
Thanks, I was really impressed with the demo you showed last night.

Could also be interesting to see it running on the Arduino DUE (I have one, and to date have only blinked one of its LED's)

Gert van den Berg

unread,
Sep 25, 2013, 12:57:28 PM9/25/13
to house...@googlegroups.com
KiCAD schematic of headers, with indication of which on-board features also use that pin... (pins to avoid when You want that on-board feature...)

Might need libraries from here in ../libkicad: http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm

Gert
STMf4Discovery_headers.zip

Andre Maree

unread,
May 24, 2014, 6:34:05 PM5/24/14
to house...@googlegroups.com
Hi Gert,

New to Nuttx, Eclipse and the STM32 platform. Needs a bit of help getting Nuttx to build under Eclipse.

Any chance you can advise?

Andre

Gert van den Berg

unread,
May 25, 2014, 5:57:13 AM5/25/14
to house...@googlegroups.com

Normal make seems to be the way to go with nuttx... It has a Linux kernel like build system...

The biggest challenge seem to be to get A working arm tool chain...

--
--
You received this message because you are subscribed to the Google
Groups "house4hack" group.
To post to this group, send email to house...@googlegroups.com
To unsubscribe from this group, send email to
house4hack+...@googlegroups.com
---------------------------------------------------------------------------------------------
www.house4hack.co.za     |    Centurion Tue 18-21 & Sat 9-14    |    Randburg Wed 18-21
---------------------------------------------------------------------------------------------
---
You received this message because you are subscribed to a topic in the Google Groups "house4hack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/house4hack/RCiXisHD5Iw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to house4hack+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages