ArduinoOTA library. Help wanted for stm32duino (F1xx and F4xx done)

Working libraries, libraries being ported and related hardware
Post Reply
User avatar
Juraj
Posts: 47
Joined: Fri Jan 03, 2020 7:47 pm
Answers: 1
Location: Slovakia
Contact:

ArduinoOTA library. Help wanted for stm32duino (F1xx and F4xx done)

Post by Juraj »

on the old version of stm32duino forum there was a discussion about remote upload of sketch from IDE over network. I could not replay then because I was not a member and the forum was not accepting new users.

I enhanced the Arduino WiFi101OTA library to support almost all Arduino networking libraries (and I wrote a new one too).
The original Arduino library was only for SAMD. I enhanced it for nRF51 and for ATmega MCUs with more then 64kB flash. It supports the ESP MCUs too (because the esp8266 boards package ArduinoOTA library works over native WiFi, but not over Ethernet or UIPEthernet library).
I planed to support stm32duino too, but I have too many Arduino plans. Right now I try to make ArduinoOTA work for Arduino Nano 33 BLE (nRF52).

The server part of the library handles receiving of the binary uploaded from IDE and the announcement of the 'network port' over MDNS. To apply the uploaded binary, the principle is that the InternalStorage class stores the uploaded binary into upper half of the flash and then on ARM architectures a function running in RAM copies the binary to standard location in flash and resets the MCU. All know-how about the flash writing and reading is in the stm32duino EEPROM emulation library.
If someone here is familiar with the STM32 flash writing and size evaluation operations it should be not so hard to implement.

The GitHub repo of the ArduinoOTA library https://github.com/jandrassy/ArduinoOTA

ArduinoOTA.png
ArduinoOTA.png (16.82 KiB) Viewed 10290 times
Last edited by Juraj on Sun Jun 19, 2022 5:10 am, edited 2 times in total.
User avatar
Juraj
Posts: 47
Joined: Fri Jan 03, 2020 7:47 pm
Answers: 1
Location: Slovakia
Contact:

Re: ArduinoOTA library. Help wanted for stm32duino

Post by Juraj »

my ArduinoOTA library now supports STM32F1.
20211228_120237.jpg
20211228_120237.jpg (95.26 KiB) Viewed 5626 times
User avatar
Juraj
Posts: 47
Joined: Fri Jan 03, 2020 7:47 pm
Answers: 1
Location: Slovakia
Contact:

Re: ArduinoOTA library. Help wanted for stm32duino (F1xx and F4xx done)

Post by Juraj »

now all 'F' models are supported, but I tested only F103 BluePill and F411 BlackPill.
F103 has flash pages and F411 has flash sectors
Post Reply

Return to “Libraries & Hardware”