Chapter 4. Software framework
4.9.6 Which part of ESP8266 partition-tables should be paid special attention to?
Compared to those of ESP32, partition-tables of ESP8266 have some special requirements on OTA
partitions due to cache characteristics of ESP8266. For details, please refer to Oset & Size of ESP8266
Partition Tables。
4.9.7 Is it possible to compile the binaries in application layer and bottom layer sepa-
rately?
No, they cannot be compiled separately.
4.9.8 How can I to reduce the IRAM occupied by the ESP32 system?
• Please disable
menuconfig
>
Component config
>
LWIP
>
Enable LWIP IRAM optimiza-
tion by typing N.
• Please change the congurations in menuconfig > Compiler option > Optimization Level >
Optimize for size (-Os).
• Please disable WiFi IRAM speed optimization (N) and WiFi RX IRAM speed optimiza-
tion (N) in menuconfig > Component config > wifi.
• For more details, please refer to Minimizing RAM Usage。
4.9.9 How can I optimize the size of binary les compiled by ESP32?
• Please optimize GCC compilation by idf.py menuconfig > Compiler options > Optimiza-
tion level (Optimize for size(-Os))。
• You can also optimize your code to improve the code reusability, and you can also adjust the log level to only
print necessary logs.
• For more details, please refer to Minimizing Binary Size。
4.9.10 How can I turn o log output in ESP32?
• You can turn o the bootloader log by setting menuconfig > bootloader config > bootloader
log verbosity to No output.
• You can turn o the program log by setting menuconfig > Component config > log output >
Default log verbosity to No output.
• For ESP-IDF release/v4.3 and earlier versions, you can turn o UART0 output log by menuconfig > Com-
ponent Config > Common ESP-related > Channel for console output > None.
• For ESP-IDF release/v4.4 and later versions, you can turn o UART0 output log by Component config
> ESP System Settings > Channel for console output > None.
4.9.11 How to modify the GPIO used for log output on ESP32?
• Go to menuconfig > Component Config > ESP System Settings > Channel for console
output > Custom UART and select the UART port.
• Go back to the previous level of menu, nd the options UART TX on GPIO# and UART RX on GPIO#, and use
them to modify the log output GPIO.
Espressif Systems 118
Submit Document Feedback
Release master