forked from test34/can_wizard
c1c1e16448
size and perfomance optimizations, twai in isr, littlefs tweaking, less bootloader logs, app now fits on 1 MB flash chips
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Part table + fs + flash
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_1MB=y
|
|
CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y
|
|
|
|
|
|
# UART
|
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
|
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
|
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED=y
|
|
CONFIG_UART_ISR_IN_IRAM=y
|
|
|
|
# FreeRTOS
|
|
CONFIG_FREERTOS_HZ=1000
|
|
CONFIG_ESP_SYSTEM_EVENT_QUEUE_SIZE=32
|
|
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=2304
|
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=7168
|
|
CONFIG_ESP_MINIMAL_SHARED_STACK_SIZE=2048
|
|
|
|
# Enable FreeRTOS stats formatting functions, needed for 'tasks' command
|
|
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
|
|
CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y
|
|
|
|
# WDT
|
|
CONFIG_ESP_INT_WDT=y
|
|
CONFIG_ESP_INT_WDT_TIMEOUT_MS=2000
|
|
CONFIG_ESP_TASK_WDT_EN=y
|
|
CONFIG_ESP_TASK_WDT_INIT=y
|
|
CONFIG_ESP_TASK_WDT_TIMEOUT_S=15
|
|
|
|
# LittleFS
|
|
CONFIG_LITTLEFS_FLUSH_FILE_EVERY_WRITE=y
|
|
CONFIG_LITTLEFS_USE_MTIME=n
|
|
|
|
# Compiling and logs
|
|
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
|
|
CONFIG_BOOTLOADER_LOG_LEVEL_ERROR=y
|
|
CONFIG_BOOTLOADER_LOG_LEVEL=1
|
|
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
|
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
|
|
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
|
|
|
|
# TWAI
|
|
CONFIG_TWAI_ISR_IN_IRAM=y
|
|
|