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

What are you developing?
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 4:06 pm

thanks and oh ok here come's stm's own nrf51822 competitor - BlueNRG2
http://www.st.com/content/st_com/en/pro ... nrg-2.html
the wireless competition is certainly heating up

unfortunately that evaluation board is tad bulky (compared to maple mini / blue pills) & cost a whopping 70 bucks
http://www.st.com/content/st_com/en/pro ... 008v1.html
:lol:

User avatar
mrburnette
Posts: 2230
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 4:18 pm

ag123 wrote:
Wed Dec 20, 2017 4:06 pm
<...>
unfortunately that evaluation board is tad bulky (compared to maple mini / blue pills) & cost a whopping 70 bucks
<...>
Domestic beer = $2.50

$70 / $2.50 = 28 beers

So, is jumping on the next wave of evolving technology worth the price of 28 beers? Everything in the world comes down to fundamental decision making :lol:

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 » Thu Dec 21, 2017 9:07 am

by mrburnette »
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
There could be a use case: The Bluepill has more Pins than an ESP32. There are a lot off drivers for the BluePill, I think more than for the ESP32.
There might be a scenario where you only power up the ESP8266 for programming and later on power only the BluePill to save power.
The next thing: You can have a really independent real time system with the STM and a web server with the PluePill.
The next question: how well does the ESP32 ADC compare to the BluePill ADC ?

To save cost it could be useful to use a 6 pin ESP8266 instead of more expensive NodeMcu.

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 » Thu Dec 21, 2017 9:48 am

Think Difference, get difference.
The difference is in the mind. Not in a chip.
I haven't found this function in internet, so share it. don't care if useful or useless.

In fact, My plan is for a simple Open-source Iot project use a less 32pin STM32 chip and a ESP8285 on 15mm * 40mm board.

BR.
CS . Nol

stevestrong
Posts: 2070
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 » Thu Dec 21, 2017 10:20 am

I moved the topic to "Projects", I personally find it useful, so thanks, @csnol.

moc
Posts: 6
Joined: Tue Dec 29, 2015 6:25 pm

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

Post by moc » Thu Dec 21, 2017 10:34 am

This is a great function mate!
I'm curious about the ESP+STM32 board, post some pics if you don't mind.

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 » Thu Dec 21, 2017 10:38 am

stevestrong wrote:
Thu Dec 21, 2017 10:20 am
I moved the topic to "Projects", I personally find it useful, so thanks, @csnol.
Thank you. I defined it is a tools. :)

BTW, If you wanna use it in Windows. you can upload the bin file to flash STM32 chip at http://192.168.x.66 on web-browse. or write a bat file.
I almost never use Win10.

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 » Thu Dec 21, 2017 10:50 am

moc wrote:
Thu Dec 21, 2017 10:34 am
This is a great function mate!
I'm curious about the ESP+STM32 board, post some pics if you don't mind.
It is only in my mind now. I just finished 1st step.
ESP8285: https://github.com/csnol/STM32-OTA/blob ... sp8285.jpg

User avatar
mrburnette
Posts: 2230
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 » Thu Dec 21, 2017 2:08 pm

ChrisMicro, thanks for the use case.

I am not opposed to the implementation, per se, but as an engineer I find that putting a context around such an implementation helpful.

A battery powered implementation where the STM32 turns on/off the ESP8266 periodically for firmware updating is interesting, but either of Espressif's offerings can turn on/off the RF section and may be satisfactory in a solo arrangement. More on the timing of the on/off toward the end.

ADC? The ESP devices are 1.0 Volt AD referenced. That could impact some flexibility.
The ADC driver API currently only supports ADC1 (9 channels, attached to GPIOs 32-39).

The combined current of the ESP8266 + STM32F1xx exceeds that of the ESP32 and exceeds that of a rPi_Zero_W (configured headless.)

It seems I annoyed a few forum members ... I'm pretty good at doing that - no offense was meant, just seeking answers to questions that popped into my head. Part of any good initial design is to take a need, implement a prototype, and then evolve that prototype. In my mind, a bit more evolving needs to be completed, but the presented project is a good prototype.

Just thinking: Turning the ESP8266 on/off to conserve battery power will take a bit of designing since RTC drift could impact the update schedule unless the on-time was rather long which impacts the battery performance. Once the update server was identified, the RTC could be synced. However, the addition of a precision RTC is likely the better option.

I will be interesting to see how (if) this evolves over time and also interested to learn of specific use cases where the tandem uC solution cannot be bettered by another less complex approach.

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 » Fri Dec 22, 2017 3:56 am

Youtube video weblink added in the topic.

Post Reply