JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries
GNU Lesser General Public License v2.1
435 stars 89 forks source link

Upload returns OK but the sketch is not replaced STM32 Nucleo #203

Closed Yaroki2 closed 1 year ago

Yaroki2 commented 1 year ago

Hello! I do OTA use NUCLEO-F303RE and get image Then MCU don't resets and stuck forever i tried closing the Serial Monitor in the IDE but it doesn't work. Can you help me, please?

JAndrassy commented 1 year ago

sorry, I don't have an STM32 F3 so it was never tested. The F3 has the same flash operations as F1 and I tested F1 so there was a chance it could work.

Yaroki2 commented 1 year ago

Thanks you for the reply! I realize I need to press the manual reset button to get it to work, do you have any ideas?

JAndrassy commented 1 year ago

is the sketch updated?

Yaroki2 commented 1 year ago

Yes, Sketch updated but doesn't reset automatically

JAndrassy commented 1 year ago

InternalStorage.apply() calls at the end NVIC_SystemReset(); which is a reset command for all ARM MCU and works on STM32 too. you could test it in a simple sketch.

Yaroki2 commented 1 year ago

I tested NVIC_SystemReset(); with simple sketch and it works fine. I think NVIC_SystemReset(); is the reason, when i change other way to reset in library it works successfully.