Lines Matching refs:to
12 …The {IDF_TARGET_NAME} ROM loader serial protocol is similar to ESP8266, although {IDF_TARGET_NAME}…
14 …to the IRAM of the chip. The stub loader then replaces the ROM loader for all future interactions.…
18 …There are differences in the serial protocol between ESP chips! To switch to documentation for a d…
23 The host computer sends a SLIP encoded command request to the ESP chip. The ESP chip responds to th…
32 …laced with ``0xDB 0xDC`` and ``0xDB 0xDD``, respectively. The replacing is to be done **after** th…
61 Each received command will result in a response SLIP packet sent from the ESP chip to the host. Con…
128 | ``0x06`` | "Failed to act on received message" |
132 | ``0x08`` | "Flash write error" - after writing a block of data to flash, |
134 | | to the data read from flash. If they don't match, this error is returned. |
149 - Stub loader error codes are entirely different to the ROM loader codes. They all take the form `…
151 After sending a command, the host should continue to read response packets until one is received wh…
164 …n Flash Download <#writing-data>`__ | Four 32-bit words: size to erase, number of dat…
168 … | One 32-bit word: ``0`` to reboot, ``1`` to run user code. Not necessary to send this co…
188 …ownload <#writing-data>`__ | Four 32-bit words: size to erase, number of dat…
192 … | One 32-bit word: ``0`` to reboot, ``1`` to run user code. Not necessary to send this co…
208 …ero for normal SPI flash. A second 32-bit word (should be ``0``) is passed to ROM loader only. …
210 …ds: new baud rate, ``0`` if we are talking to the ROM loader or the current/old baud rate if we ar…
212 …der the uncompressed size is exact byte count to be written, whereas on ROM bootloader it is round…
216 … | One 32-bit word: ``0`` to reboot, ``1`` to run user code. Not necessary to send this co…
226 …to erase, number of data packets, data size in one packet, flash offset. A fifth 32-bit word passe…
230 … | One 32-bit word: ``0`` to reboot, ``1`` to run user code. Not necessary to send this co…
246 …ero for normal SPI flash. A second 32-bit word (should be ``0``) is passed to ROM loader only. …
248 …ds: new baud rate, ``0`` if we are talking to the ROM loader or the current/old baud rate if we ar…
250 …der the uncompressed size is exact byte count to be written, whereas on ROM bootloader it is round…
251 … | A fifth 32-bit word passed to ROM loader only: ``1`` to begin encrypted flash, …
255 … | One 32-bit word: ``0`` to reboot, ``1`` to run user code. Not necessary to send this co…
272 … | Erase flash region | Two 32-bit words: flash offset to erase, erase size in…
289 | 0-3 | "Data to write" length | Little endian 32-bit word. …
295 | 16- | "Data to write" | Length given at beginning of payload. …
298 The checksum is only applied to this final "data to write" section, not the first 16 bytes of data.
300 To calculate checksum, start with seed value 0xEF and XOR each individual byte in the "data to writ…
304 …Because this checksum is not adequate to ensure valid data, the SPI_FLASH_MD5 command was added to…
315 …This flow chart is used to illustrate the download procedure (writing to flash), other commands ha…
321 …hese commands have a large data payload which is also used by the ESP chip to detect the configure…
322 …hese commands have a large data payload which is also used by the ESP chip to detect the configure…
323 …* The host should wait until it sees a valid response to a SYNC command, indicating the ESP chip …
324 …ownload" sequence to upload :ref:`stub loader <stub>` code to IRAM of the chip. The MEM_END comman…
326 If the ``--no-stub`` argument is supplied to esptool, this entire step is skipped.
327 …* esptool then uses READ_REG commands to read various addresses on the chip, to identify chip sub…
328 …:not esp8266: * For commands which need to use the flash, the {IDF_TARGET_NAME} ROM an stub loade…
329 …to set the baud rate to an explicit value. Compared to auto-detecting during the SYNC pulse, this …
330 …to set the baud rate to an explicit value. Compared to auto-detecting during the SYNC pulse, this …
341 … is the same, only the data is compressed using the gzip Deflate algorithm to reduce serial overhe…
342 … is the same, only the data is compressed using the gzip Deflate algorithm to reduce serial overhe…
346 …ic parameters for the flash erase size, start address to write to, etc. The uploader also needs to…
347 …ASH_DATA, etc) is sent where the data payload contains the actual data to write to flash/RAM. In t…
348 The last data block should be padded to the block size with 0xFF bytes.
349 …to exit the bootloader and optionally reset the chip (or jump to an address in RAM, in the case of…
351 …essary to send flash erase commands before sending commands to write to flash, etc. The ROM loader…
352 …to maximise overall flashing performance (each block of data is read into RAM via serial while the…
354 The block size chosen should be small enough to fit into RAM of the device. Esptool uses 16KB which…
361 …m which works around this bug and provides the correct erase size parameter to send to the ESP8266.
370 …to ensure valid flash contents after upload. The uploader should send the SPI_FLASH_MD5 command (n…
374 … not sufficient to ensure valid flash contents after upload. The uploader should send the SPI_FLAS…
376 The SPI_FLASH_MD5 command passes the start address in flash and the size of data to calculate. The …
388 …akes a 32-bit data payload which is used to determine which SPI peripheral and pins should be used…
404 …ith SPI flash is optional. On {IDF_TARGET_NAME} ROM loader, it is required to send this command be…
424 …* It is not possible to represent pins 30 & 31 or pins higher than 33. This is the same 6-bit repr…
426 …s an additional 4 bytes in the data payload of this command. These bytes should all be set to zero.
437 …passed except total size are hardcoded, and most are not used when writing to flash. See `flash_se…
444 …to manipulate peripherals in arbitrary ways. For example, the esptool "flash id" functionality is …
449 The stub loader implements a READ_FLASH command. This command behaves differently to other commands…
455 * The stub loader may send up to a maximum number (specified by the host in the READ_FLASH command…
458 After the read flash process is complete, the stub loader goes back to normal command/response oper…
460 The ROM loader read flash command is more normal but also much slower to read data.
467 …fore the command). This will dump all traffic sent and received via the serial port to the console.
505 …If you don't plan to use the esptool stub loader, pass ``--no-stub --trace`` to see interactions w…
507 In addition to this trace feature, most operating systems have "system call trace" or "port trace" …