P4-Nano: controller port with the C6 as ESP-NOW radio, and the simulator
The controller now builds for the Waveshare ESP32-P4-Nano only (plus the linux sim and the desktop); the S3 stays for the USB/network bridge in bridge/. - radio-c6/: C6 firmware, esp-hosted plus ESP-NOW over peer data. The P4 loads it from the slave_fw partition when the C6 runs another version (c6_update.c) - bridge_hosted.c: the C6 as the always-on "c6" bridge, and the P4 as a network bridge on UDP 8766 for the desktop - Ethernet on the P4's EMAC, ES8311 mic; default address 192.168.50.20. The W5500, INMP441 and direct ESP-NOW code is gone - The simulated rig at /sim/ is built into the board image, with an always-on "browser" bridge. Its frames go through a queue so a slow page cannot hold up the radio, and frames for simulated bars are not sent over the C6. Receiver buffers are on the heap; a bar's flash file is only written when it changes - HTTP server: more handlers, sockets and stack for the rig - docs/P4_NANO.md, README and Makefile updated; graphify output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba8e160aee
commit
4ab0c7c6d7
101 files changed
+3284
-971
No files matched your search
+18
-11
@@ -1,27 +1,32 @@
|
||||
CONFIG_IDF_TARGET="esp32s3"
|
||||
# XIAO ESP32S3 USB-C is wired to the native USB Serial/JTAG
|
||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
||||
CONFIG_ETH_USE_SPI_ETHERNET=y
|
||||
CONFIG_ETH_SPI_ETHERNET_W5500=y
|
||||
# XIAO ESP32S3 Plus: 16 MB flash and 8 MB octal PSRAM (ESP32-S3R8)
|
||||
# Waveshare ESP32-P4-Nano (docs/P4_NANO.md)
|
||||
CONFIG_IDF_TARGET="esp32p4"
|
||||
# Console on UART0: the board's USB-C port is a CH343 USB-UART
|
||||
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
|
||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=n
|
||||
# Ethernet: the P4's own EMAC to the IP101 PHY over RMII
|
||||
CONFIG_ETH_USE_SPI_ETHERNET=n
|
||||
CONFIG_ETH_USE_ESP32_EMAC=y
|
||||
# 16 MB flash, 32 MB PSRAM
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
||||
CONFIG_SPIRAM=y
|
||||
CONFIG_SPIRAM_MODE_OCT=y
|
||||
CONFIG_SPIRAM_SPEED_80M=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
|
||||
# Wi-Fi on the ESP32-C6 over SDIO (esp-hosted 3.1, the C6 runs radio-c6/), with peer data for ESP-NOW
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32C6=y
|
||||
CONFIG_ESP_HOSTED_SDIO_HOST_INTERFACE=y
|
||||
CONFIG_ESP_HOSTED_HOST_FEAT_PEER_DATA=y
|
||||
CONFIG_ESP_HOSTED_HOST_FEAT_PEER_DATA_MAX_CUSTOM_MSG_HANDLERS=8
|
||||
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
||||
CONFIG_FREERTOS_HZ=1000
|
||||
CONFIG_ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM=7
|
||||
CONFIG_ESPNOW_CHANNEL=11
|
||||
CONFIG_BEAT_TEST_GPIO=44
|
||||
# A new OTA image must confirm itself (ota_confirm_later) or the bootloader goes back to the old one
|
||||
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|
||||
# /ws (browser websocket)
|
||||
CONFIG_HTTPD_WS_SUPPORT=y
|
||||
CONFIG_HTTPD_WS_POST_HANDSHAKE_CB_SUPPORT=y
|
||||
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=8192
|
||||
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=10240
|
||||
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=16384
|
||||
CONFIG_LWIP_TCP_WND_DEFAULT=16384
|
||||
CONFIG_LWIP_TCP_RECVMBOX_SIZE=12
|
||||
@@ -30,4 +35,6 @@ CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=64
|
||||
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=64
|
||||
CONFIG_ESP_WIFI_TX_BA_WIN=16
|
||||
CONFIG_ESP_WIFI_RX_BA_WIN=16
|
||||
CONFIG_LWIP_MAX_SOCKETS=16
|
||||
# The rig page at /sim/ loads its drivers over several connections, beside the UI's own (main.c max_open_sockets)
|
||||
CONFIG_LWIP_MAX_SOCKETS=40
|
||||
CONFIG_LWIP_MAX_ACTIVE_TCP=32
|
||||
Reference in new issue
Block a user