jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Remote FW update for STM32F4 over internet (ESP8266 + Wifi) #429

Open e-music opened 5 years ago

e-music commented 5 years ago

Hello everyone!

After a lot of search, disappointment, and irrelevant answers on certain forums, I believe I have finally come to the right place.

Simply put, I want to update the firmware of my STM32F4-based project over the internet. The uC provides a mechanism for "Secure Firmware Boot/Update" where an encrypted FW image is transferred over a link between a web server/page and the device using serial communication and Ymodem protocol. Usually, the device/update has to be managed from smartphone using a custom app. I have a smart switch that can be controlled/updated when connected to the same Wifi network, but instead of relying on a third-party cloud service, I want to host the update page/service on my own web host.

I'm already done on the core functionality of the project, and all I need now is to add the IOT. Also, I would like to know what pins are needed to interface with the ESP8266 module so I can start designing the custom board while learning how to implement the features needed in firmware.

I will be using a module like this one: http://www.tinyosshop.com/image/cache/data/wireless/wifi/ESP8266MOD%20-1-800x800.jpg

Aside from TX, RX, RST, EN, and IO pins, do I need any additional pins for future implementation? What the SPI pins are used for in this module?

I have already designed the power supply needed for this module, and I have no problem communicating with it or downloading a firmware using serial communication.

Any input/feedback is highly appreciated.

Thank you in advance!