SPI settings - "Serial flasher config" (and the big picture)
Posted: Wed Nov 22, 2023 3:22 pm
Hello
Can someone explain a few things to me about the SPI settings? I'm trying to understand how the "Serial flasher config" settings relate to idf.py, the *-flash_args files generated during a build and the SPI peripheral settings ultimately used in the chip.
So, for starters, do the "Serial flasher config" settings actually end up in a binary? I guess yes, but how? Do those settings somehow get written into the bootloader?
If those settings get placed in the bootloader, why do they also get written to the *-flash_args files? What does idf.py do with those settings when writing a binary to the chip via serial?
Espressif also does offer a serial-flasher C library. If those *-flash_args settings are somehow relevant when writing binary data to the chip, why does the library not offer any SPI settings functions?
In my current project for an ESP32S3 I've enabled octal flash and set the SPI mode to OPI. Yet all the *-flash_args file generated by ESP-IDF contain. Is this a bug?
I'm sorry if some of those questions are somewhat stupid...
Can someone explain a few things to me about the SPI settings? I'm trying to understand how the "Serial flasher config" settings relate to idf.py, the *-flash_args files generated during a build and the SPI peripheral settings ultimately used in the chip.
So, for starters, do the "Serial flasher config" settings actually end up in a binary? I guess yes, but how? Do those settings somehow get written into the bootloader?
If those settings get placed in the bootloader, why do they also get written to the *-flash_args files? What does idf.py do with those settings when writing a binary to the chip via serial?
Espressif also does offer a serial-flasher C library. If those *-flash_args settings are somehow relevant when writing binary data to the chip, why does the library not offer any SPI settings functions?
In my current project for an ESP32S3 I've enabled octal flash and set the SPI mode to OPI. Yet all the *-flash_args file generated by ESP-IDF contain
Code: Select all
--flash_mode dout
I'm sorry if some of those questions are somewhat stupid...