STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

What are you developing?
csnol
Posts: 31
Joined: Thu Aug 24, 2017 12:57 pm

STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by csnol » Wed Dec 20, 2017 7:42 am

Upload STM32 chip without any wires in Arduino IDE!

It needs a ESP8266 board. Source-Code and Usage at https://github.com/csnol/STM32-OTA

---------add on 22 DEC 2017-------------



----------------------------------------------

Because It's a Arduino sketch of ESP8266, So I don't know how to PR to STM32-Arduino and STM32GENERIC.

Tested on STM32F0, STM32F103C/R boards.

Image

-> For STM32-Arduino repo https://github.com/rogerclarkmelbourne/Arduino_STM32

Image

-> For STM32GENERIC repo https://github.com/danieleff/STM32GENERIC

Image

and It can be used for stm32duino https://github.com/stm32duino/Arduino_Core_STM32 but I've not the official boards to test.

One more thing, If you use it, you have to keep below webserver codes in your sketch for sharing.

Code: Select all

Version 1.0 by <a style=\"color:white\" href=\"https://github.com/csnol/STM32-OTA\">CSNOL
Last edited by csnol on Fri Dec 22, 2017 3:53 am, edited 2 times in total.

ChrisMicro
Posts: 318
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by ChrisMicro » Wed Dec 20, 2017 9:38 am

Very good.
The last few weeks I played with the NodeMCU and different programming languages like MikroPython.
It would be very good if the BluePill could be programmed with the NodeMCU and afterwards the NodeMcu could be used as interface controller to the web.

stevestrong
Posts: 2057
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by stevestrong » Wed Dec 20, 2017 10:20 am

Will this work under Windows?

csnol
Posts: 31
Joined: Thu Aug 24, 2017 12:57 pm

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by csnol » Wed Dec 20, 2017 10:34 am

stevestrong wrote:
Wed Dec 20, 2017 10:20 am
Will this work under Windows?
Not yet.
Up to now, only support Linux and MacOS.

User avatar
mrburnette
Posts: 2197
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by mrburnette » Wed Dec 20, 2017 1:26 pm

Why?

This use-case seems overly complex.
Why not just use an ESP32 board? More SRAM, more flash, faster clock, 2 cores... less power intensive overall and still programmable under the ArduinoIDE.
Andreas shows how to OTA the ESP32 here

I just picked one quickly ... you may find it less expensive with some time investment.
https://www.aliexpress.com/item/ESP-32S ... 38651.html

Adafruit carries a small collection, at a premium price: https://www.adafruit.com/?q=ESP32


Ray

csnol
Posts: 31
Joined: Thu Aug 24, 2017 12:57 pm

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by csnol » Wed Dec 20, 2017 1:57 pm

mrburnette wrote:
Wed Dec 20, 2017 1:26 pm
Why?

This use-case seems overly complex.
Why not just use an ESP32 board? More SRAM, more flash, faster clock, 2 cores... less power intensive overall and still programmable under the ArduinoIDE.
Andreas shows how to OTA the ESP32 here
...........
Yes , ESP32 is better than ESP8266/8285.
but this topic is not focus on ESP chips. I can't sure if you've got my topic.
I just wanna sharing a new way to flash STM32 chips without wires. (it is useful for the chip be sealed in a BOX or other place can't gotten)

Thanks anyway.
CS. Nol

User avatar
mrburnette
Posts: 2197
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by mrburnette » Wed Dec 20, 2017 2:20 pm

csnol wrote:
Wed Dec 20, 2017 1:57 pm
<...>
Yes , ESP32 is better than ESP8266/8285.
but this topic is not focus on ESP chips. I can't sure if you've got my topic.
I just wanna sharing a new way to flash STM32 chips without wires. (it is useful for the chip be sealed in a BOX or other place can't gotten)

Thanks anyway.
CS. Nol
Yes, I got the topic and understand the "new way" you suggested. Years ago, we had Bluetooth upload of Arduino AVR devices. It clever and with the right use-case may be worth the two uC requirement and additional power requirement.

But my "why" was more to the "scenario" where this would be used. Clearly, it is not well suited for a battery operated device since the ESP8266 is not known to be power friendly. Maybe a solar application where the solar cell and battery provide more power than the STM32duino needs. Maybe a permanent AC powered unit stuck in the attic or basement where access to upgrade the firmware is awkward.

My questioning is not about the technology implementation but more about is the implementation actually useful - and if so, what would those use cases be? My point on the ESP32 is that it is inexpensive enough and powerful enough to perform both roles, replacing the ESP8266 and the STM32Fxxx.

So, where would this dual uC contraption be utilized to make for a good engineering solution?

Ray

csnol
Posts: 31
Joined: Thu Aug 24, 2017 12:57 pm

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by csnol » Wed Dec 20, 2017 2:37 pm

mrburnette wrote:
Wed Dec 20, 2017 2:20 pm
ESP8266 is not known to be power friendly.
Totally agree with this. Thanks.

ag123
Posts: 854
Joined: Thu Jul 21, 2016 4:24 pm

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by ag123 » Wed Dec 20, 2017 3:46 pm

hopefully one day st would bother to have an soc with an integrated 2.4ghz radio with stm32, preferably s/w configurable to do BT LE or WIFI :lol:

User avatar
mrburnette
Posts: 2197
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: STM32 OTA on Arduino IDE for STM32-Arduino and STM32GENERIC repo

Post by mrburnette » Wed Dec 20, 2017 3:55 pm

ag123 wrote:
Wed Dec 20, 2017 3:46 pm
hopefully one day st would bother to have an soc with an integrated 2.4ghz radio with stm32, preferably s/w configurable to do BT LE or WIFI :lol:
Seems that their future focus do cover you wants but perhaps not in the manner you wish:
http://www.st.com/en/wireless-connectivity.html

and more specifically:
http://www.st.com/en/wireless-connectiv ... tId=SC1930

Ray

Post Reply