Files
ESP32_COMM/main/Kconfig.projbuild
T

35 lines
1.2 KiB
Plaintext
Raw Normal View History

menu "DCU OTA Configuration"
config DCU_SPI_CLOCK_HZ
int "SPI clock frequency for GD32 (Hz)"
default 4000000
range 1000000 20000000
help
SPI clock speed between ESP32-C3 and GD32E50x.
Higher value speeds up GD32 OTA relay, but must be
validated against actual wiring length/quality and GD32
SPI slave timing.
config DCU_OTA_POLL_BACKOFF_MS
int "Polling backoff when GD32 is not ready (ms)"
default 2
range 0 50
help
Delay between SPI response polls when GD32 returns WAIT
or does not drive MISO yet. Packet pacing uses SPI Link v2
CREDIT backpressure in SpiMaster (remoteCredit==0 → wait/
refuse TX), not a fixed inter-packet delay. Lower value
reduces poll idle time; increase if GD32 needs more time
between polls.
config DCU_OTA_FINISH_TIMEOUT_MS
int "Timeout for FINISH_OTA command (ms)"
default 10000
range 3000 60000
help
How long ESP32 waits for GD32 to respond to the FINISH_OTA
command. GD32 may need extra time to drain flash buffers,
verify firmware, or prepare the APP jump.
endmenu