From 725089a6b75f8256b5984526d5351d6cf1155331 Mon Sep 17 00:00:00 2001 From: pszsh Date: Mon, 9 Mar 2026 00:03:10 -0700 Subject: [PATCH] 1: clean up diagnostic code, 16MHz SPI verified working --- main/eis4.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/eis4.c b/main/eis4.c index 937c5b5..03c08df 100644 --- a/main/eis4.c +++ b/main/eis4.c @@ -11,7 +11,11 @@ void app_main(void) printf("EIS4: AD5941 bring-up\n"); AD5940_MCUResourceInit(NULL); + vTaskDelay(pdMS_TO_TICKS(50)); + AD5940_HWReset(); + vTaskDelay(pdMS_TO_TICKS(200)); + AD5940_Initialize(); uint32_t adiid = AD5940_ReadReg(REG_AFECON_ADIID); @@ -22,7 +26,7 @@ void app_main(void) printf("CHIPID: 0x%04lX\n", chipid); if (adiid != AD5941_EXPECTED_ADIID) - printf("FAIL: cannot communicate with AD5941 — check SPI wiring\n"); + printf("FAIL: cannot communicate with AD5941\n"); else printf("AD5941 alive and responding\n"); }