Page 1 of 6

NuttX on a BluePill

Posted: Thu Sep 07, 2017 1:19 am
by RogerClark

Re: NuttX on a BluePill

Posted: Thu Sep 07, 2017 5:24 am
by Squonk42
I wonder how usable is this port? I mean, what part of Nuttx is available (network, fs,threads...) and how much is left for applications?

Re: NuttX on a BluePill

Posted: Thu Sep 07, 2017 6:35 am
by zoomx
Interesting!

Re: NuttX on a BluePill

Posted: Thu Sep 07, 2017 6:55 am
by RogerClark
Yep.

Seems lot to squeeze into a Blue Pill, they also seem to support the F4

http://www.nuttx.org/doku.php?id=wiki:g ... overy_unix

Re: NuttX on a BluePill

Posted: Thu Sep 07, 2017 1:25 pm
by zoomx

Re: NuttX on a BluePill

Posted: Tue Sep 12, 2017 9:51 pm
by rreignier
Some weeks ago, I have also came across those Youtube Videos: https://www.youtube.com/channel/UC0QciI ... luw/videos

Re: NuttX on a BluePill

Posted: Wed Sep 13, 2017 12:10 pm
by Pito
Cool! The posix stuff reminds me on my retrobsd experiments..
Worth of trying on my Blue103ZE and Black407ZE with installed 512KB of ram :)
The 407 may support MPU.
Btw, the BP blinking led demo (from youtube) created binary of 41kB (incl shell).

Re: NuttX on a BluePill

Posted: Wed Sep 13, 2017 10:05 pm
by RogerClark
41k is not too bad considering the size of the OS...

Re: NuttX on a BluePill

Posted: Thu Sep 14, 2017 4:47 pm
by Pito
Ok, I could not resist - :)

Code: Select all

-rwxrwxr-x   1 pito pito  40948 Sep 14 18:46 nuttx.bin
Now I try to flash it into BPill..

I've flashed it with st-link under Win into a vanilla BPill:

Code: Select all

NuttShell (NSH)
nsh> help
help usage:  help [-v] [<cmd>]

  [           dd          free        mb          sh          usleep
  ?           echo        help        mh          sleep       xd
  cat         exec        hexdump     mw          test
  cd          exit        kill        pwd         true
  cp          false       ls          set         unset

Builtin Apps:
nsh>
nsh> ls
/:
 dev/
nsh>
PS: In order to compile the demo read carefully the above guide, and the comments there as well.. :)
The trick with making menuconfig:

Code: Select all

$ cd ../..
$ cd nuttx/tools
$ ./configure.sh stm32f103-minimum/nsh
$ cd ..
$ make menuconfig
You may configure ie. 4MB flash disk on SPI1 for the BPIll:
BPill Flash disk.JPG
BPill Flash disk.JPG (41.3 KiB) Viewed 164 times

Re: NuttX on a BluePill

Posted: Mon Sep 18, 2017 3:39 pm
by acassis
Hey guys,

I'm the author of the blog post and creator of the video tutorials.

Nice to know you are enjoying it!!!

In fact the BluePill board (called stm32f103-minimum on NuttX) is not the best board to test all NuttX features. It could be compared to Arduino Uno: a nice introducing board, but if you want to test more advanced features it is better to use Arduino Mega or other board.

But I decided to use this board because it is really inexpensive (less than US$ 2.00).

I will try to produce many video tutorials with this board as possible before moving to some more advance board: maybe STM32F4DISCOVERY or NUCLEO-L476RG board, I didn't decide yet.