cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.48k stars 430 forks source link

STM32F1 support #574

Open Harvie opened 3 years ago

Harvie commented 3 years ago

Mongoose website states support for STM32 F4, L4, F7. Is there any chance of supporting popular STM32F1?

I've noticed that @cpq have done some reseach on this in 2018...

rojer commented 3 years ago

sorry, no chance of F1 support, it's too underpowered. F2 is ok.

Harvie commented 3 years ago

OK, thanks for info.

BTW what is lacking about F1? Mongoose seems to have very little overhead because it is based on FreeRTOS. Should run on random potato without major problems. Anyway i am in process of designing custom STM32 board. This is good, because i can easily swap F1 for F4 at this stage of development to get proper Mongoose support.

Also how do i specify whether mos flash should use serial bootloader or stlink SWD to upload firmware? I am not able to find any details on the mos tool flashing process for STM32. Therefore i am not sure which programming interfaces i should expose on my board. SWD seems more robust, allows debugging and does not need jumper to enable bootloader. But flashing using serial bootloader can be achieved without having stlink hardware. Is it possible to use both of these options with mos tool? Is this docummented somewhere?

I guess i can run stm32flash or st-flash manualy depending on chosen method. But it would be nice to have my board compatible with whatever mos tool can use natively.

cpq commented 3 years ago

@Harvie an alternative is to use something like https://vcon.io/docs/#vcon--stm32-bluepill