Question regarding READ_FLASH

mbins
Posts: 1
Joined: Thu Jan 07, 2021 1:42 pm

Question regarding READ_FLASH

Postby mbins » Thu Jan 07, 2021 1:56 pm

Hello, I'm trying to implement my own esptool-like program in Go as a way of learning more about ESP8266. I have managed to implement simpler commands like READ_REG however I'm having a hard time with READ_FLASH (0xD2).

The first point is that the serial protocol specification mentions four 32 bit words but lists five input parameters: https://github.com/espressif/esptool/wi ... 266--esp32

My second doubt is that I don't quite get what these parameters should look like, there's a bare description of the parameter names in this other section: https://github.com/espressif/esptool/wi ... ding-flash

If I understand correctly there's no other command required to start receiving the flash data payload, I'm also assuming that an initial sync is required (SYNC). This is something I'm already doing for READ_REG.

I would appreciate if anyone could help me understand the READ_FLASH parameters as well as provide some sample input.

Best regards.

Who is online

Users browsing this forum: No registered users and 5 guests