greiman / ChRt

ChibiOS/RT for Arduino AVR, SAMD, Due, Teensy 3.x, Teensy 4.0.
88 stars 26 forks source link

Support for STM32? #4

Open markusthegeek opened 6 years ago

markusthegeek commented 6 years ago

Hi, would it be possible to add support for STM32F1 devices like Maple Mini clones?

Thank you so much for adding that support for SdFat!

greiman commented 6 years ago

ChibiOS/RT has excellent support for STM32.

I use it with devices like Maple Mini.

markusthegeek commented 6 years ago

Thanks for the pointer! I guess I am coming to this backwards, I developed a program for Arduino nano first then migrated to the blue pill for more speed. Now I was wondering if I could potentially parallelize things. I saw there is also freertos 9 in the stm32 libs for Arduino...

Sent from Yahoo Mail on Android

On Sun, Dec 3, 2017 at 5:59, Bill Greimannotifications@github.com wrote:
ChibiOS/RT has excellent support for STM32.

I use it with devices like Maple Mini.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

greiman commented 6 years ago

Native ChibiOS/RT on STM32 is far better than a port of an RTOS to Arduino.

The HAL is truly multi-thread friendly. I/O for various devices overlap with threads sleeping when necessary, no delays wasting CPU. There are locks so threads optimally share devices.

I can run 10 threads on an 100 mbit Ethernet port and get 99% usage with fair sharing.

markusthegeek commented 6 years ago

Sounds great! Any chance I can use Visual Studio Code as the ide? I finally got hardware debugging working with it albeit using the Arduino plugin which would not be relevant in this case.

Sent from Yahoo Mail on Android

On Mon, Dec 4, 2017 at 5:56, Bill Greimannotifications@github.com wrote:
Native ChibiOS/RT on STM32 is far better than a port of an RTOS to Arduino.

The HAL is truly multi-thread friendly. I/O for various devices overlap with threads sleeping when necessary, no delays wasting CPU. There are locks so threads optimally share devices.

I can run 10 threads on an 100 mbit Ethernet port and get 99% usage with fair sharing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

greiman commented 6 years ago

The best development/debug environment is ChibiStudio.

ChibiStudio is a free ARM development environment based on Open Source tools and components. It has been created in order to support the development of ChibiOS itself and is now available as a free download.

Everything is required to start working with ChibiOS is encapsulated in a single download. It takes just two minutes to have your development board working with ChibiOS.

The workspace is preloaded with all demo applications, just compile, upload code and run.