Skip to content

Commit

Permalink
ESP32: Fix building with pw_rpc config for m5 stack (#34007)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
shubhamdp authored and pull[bot] committed Jul 29, 2024
1 parent 9720d4f commit 4c93713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/common/m5stack-tft/repo
4 changes: 4 additions & 0 deletions examples/lighting-app/esp32/sdkconfig_rpc.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ CONFIG_ENABLE_PW_RPC=y
CONFIG_MBEDTLS_HKDF_C=y

CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y

CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH=y
2 changes: 1 addition & 1 deletion examples/platform/esp32/pw_sys_io/sys_io_esp32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define ECHO_TEST_RTS (UART_PIN_NO_CHANGE)
#define ECHO_TEST_CTS (UART_PIN_NO_CHANGE)

#define ECHO_UART_PORT_NUM (CONFIG_EXAMPLE_UART_PORT_NUM)
#define ECHO_UART_PORT_NUM (static_cast<uart_port_t>(CONFIG_EXAMPLE_UART_PORT_NUM))
#define ECHO_UART_BAUD_RATE (CONFIG_EXAMPLE_UART_BAUD_RATE)

int console_getchar(uint8_t * chr)
Expand Down

0 comments on commit 4c93713

Please sign in to comment.