Hi,
I'm implementing DFU OTA (over wifi) for a MCU (STM32F0). My target MCU is connected to ESP8266 over UART interface. The firmware for my target MCU is kept on a remote server which I can access over HTTP. So, the idea is to let ESP8266 download the firmware image and transfer it to STM32F0. The bootloader on STM32F40 takes care of erasing and programming the main flash memory of STM32F0. However, since I cannot have a very large buffer (Firmware binary file could be much larger than the maximum stack size of STM32F0) for storing the data received over UART, i would like to download the entire f/w image in multiple of smaller chunks. How should I go about doing this. For example, when I send AT+CIPSEND in following manner, I see the entire binary file on the wire
AT+CIPSEND=<len>
> GET /pub/data/testurl/stm32f0.bin HTTP/1.1
Host:abc.xyz.com
This does not help, as I cannot create a large receive buffer. Ideally, I would like to instruct somehow, the offset and length of the HTTP data, but I haven't found a way to achieve this.
Note that, this is not an arduino board. It's a resource constrained ARM Cortex M0 based SOC, http://www2.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-discovery-kits/stm32f0discovery.html connected with ESP8266 over UART interface.
How to download a large file
Re: How to download a large file
Postby ESP_Faye » Fri May 13, 2016 4:48 pm
Hi,
It needs your upgrade server to support this function.
And it is suggested that erasing the flash first, then download a small chunk of FW and write it into flash, and then download a small chunk of FW and write it into flash and so on.
i would like to download the entire f/w image in multiple of smaller chunks.
It needs your upgrade server to support this function.
And it is suggested that erasing the flash first, then download a small chunk of FW and write it into flash, and then download a small chunk of FW and write it into flash and so on.
Who is online
Users browsing this forum: No registered users and 2 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.