Skip to content

Commit d7b5527

Browse files
authored
ESP32: Fix building with pw_rpc config for m5 stack (#34007)
- Enable few config option optimizations for IRAM to fix the IRAM/DRAM overflow - Update m5stack-tft submomdule to d99f5ef8df180ab34b3d9fff6888d5bede7665c5 to fix the compilation warnings - Fix a casting for uart port number
1 parent 2d8923f commit d7b5527

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

examples/lighting-app/esp32/sdkconfig_rpc.defaults

+4
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ CONFIG_ENABLE_PW_RPC=y
5555
CONFIG_MBEDTLS_HKDF_C=y
5656

5757
CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y
58+
59+
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
60+
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
61+
CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH=y

examples/platform/esp32/pw_sys_io/sys_io_esp32.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define ECHO_TEST_RTS (UART_PIN_NO_CHANGE)
3737
#define ECHO_TEST_CTS (UART_PIN_NO_CHANGE)
3838

39-
#define ECHO_UART_PORT_NUM (CONFIG_EXAMPLE_UART_PORT_NUM)
39+
#define ECHO_UART_PORT_NUM (static_cast<uart_port_t>(CONFIG_EXAMPLE_UART_PORT_NUM))
4040
#define ECHO_UART_BAUD_RATE (CONFIG_EXAMPLE_UART_BAUD_RATE)
4141

4242
int console_getchar(uint8_t * chr)

0 commit comments

Comments
 (0)