Add UART OTA upload with A/B partition support.
Firmware buffers 200-byte chunks into 4 KiB blocks for esp_ota_write; goTool uploads with per-block ACK flow control and larger UART buffers to avoid stalls. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -12,10 +12,10 @@
|
||||
#define UART_TXD_PIN 3
|
||||
#define UART_RXD_PIN 2
|
||||
|
||||
#define UART_BUF_SIZE 256
|
||||
#define UART_BUF_SIZE 2048
|
||||
#define START_MARKER 0xAA
|
||||
#define STOP_MARKER 0xCC
|
||||
#define MAX_BUF_SIZE 256
|
||||
#define MAX_BUF_SIZE 252
|
||||
#define MAX_PAYLOAD_SIZE \
|
||||
MAX_BUF_SIZE - 4 // Buffer overhead, Start, Len, CRC, End
|
||||
|
||||
|
||||
Reference in New Issue
Block a user