cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.51k stars 431 forks source link

Outdated documentation when flashing with esptool #389

Open stgoddv opened 6 years ago

stgoddv commented 6 years ago

Hi!

I need to build the Mongoose-Os firmware to upload it using esptool. That is documented in the following link: https://github.com/cesanta/mongoose-os/tree/master/fw/platforms/esp8266

The problem is that it says: "(...) Build the Firmware (...) This will produce three binary images under the firmware/ subdirectory."

Then, below it says that the command to use for the esptool is: "esptool --baud 115200 --port /dev/YOUR_ESP_SERIAL_DEVICE write_flash 0x00000 firmware/0x00000.bin 0x20000 firmware/0x20000.bin 0x30000 firmware/0x30000.bin"

So i assume that the built filenames should be: 0x00000.bin, 0x20000.bin and 0x30000.bin.

The issue here is that if you do the build step correctly, it would appear 4 files instead of 3, and with another names: fs.bin, init_data_default_v08.bin, mongoose-os.bin and rboot.bin. Also, there will be another file named manifiest.json

So my questions are: 1) Is the documentation outdated or am i doing something wrong? Why it says that there should be 3 binaries, but there appears to be 4?

2) How can i flash the mongoose-os in my esp8266 with esptool? In what memory locations i have to put each of those 4 files? In what order? For example: 0xdirection fs.bin -> What should "direction" be?

3) Can someone list the correct and updated steps to make and upload the mongoose-os on the esp8266 vía Esptool?

Thank you very much in advance, I'll wait for your answers! Regards, Santiago

Ar00001 commented 6 years ago

Did You solve your questions?