NuttX on a BluePill

Anything not related to STM32
User avatar
RogerClark
Posts: 6911
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

NuttX on a BluePill

Post by RogerClark » Thu Sep 07, 2017 1:19 am


User avatar
Squonk42
Posts: 92
Joined: Thu Dec 29, 2016 9:25 am
Location: Bordeaux, France

Re: NuttX on a BluePill

Post by Squonk42 » Thu Sep 07, 2017 5:24 am

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?

User avatar
zoomx
Posts: 499
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: NuttX on a BluePill

Post by zoomx » Thu Sep 07, 2017 6:35 am

Interesting!

User avatar
RogerClark
Posts: 6911
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: NuttX on a BluePill

Post by RogerClark » Thu Sep 07, 2017 6:55 am

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

User avatar
zoomx
Posts: 499
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: NuttX on a BluePill

Post by zoomx » Thu Sep 07, 2017 1:25 pm


rreignier
Posts: 17
Joined: Tue Feb 16, 2016 8:52 pm
Location: Toulon, France

Re: NuttX on a BluePill

Post by rreignier » Tue Sep 12, 2017 9:51 pm

Some weeks ago, I have also came across those Youtube Videos: https://www.youtube.com/channel/UC0QciI ... luw/videos

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: NuttX on a BluePill

Post by Pito » Wed Sep 13, 2017 12:10 pm

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).
Pukao Hats Cleaning Services Ltd.

User avatar
RogerClark
Posts: 6911
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: NuttX on a BluePill

Post by RogerClark » Wed Sep 13, 2017 10:05 pm

41k is not too bad considering the size of the OS...

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: NuttX on a BluePill

Post by Pito » Thu Sep 14, 2017 4:47 pm

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 291 times
Pukao Hats Cleaning Services Ltd.

acassis
Posts: 22
Joined: Mon Sep 18, 2017 3:27 pm

Re: NuttX on a BluePill

Post by acassis » Mon Sep 18, 2017 3:39 pm

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.

Post Reply