esp32[s2|s3]: Add nxdiag without esptool wrapper

This commit is contained in:
Eren Terzioglu
2024-11-25 17:35:38 +01:00
committed by Xiang Xiao
parent bbb9ce114f
commit 001a663b74
7 changed files with 451 additions and 0 deletions
@@ -180,6 +180,10 @@
# include "esp32_board_mcpwm.h"
#endif
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
# include "espressif/esp_nxdiag.h"
#endif
#include "esp32-devkitc.h"
/****************************************************************************
@@ -758,6 +762,14 @@ int esp32_bringup(void)
}
#endif
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
ret = esp_nxdiag_initialize();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: esp_nxdiag_initialize failed: %d\n", ret);
}
#endif
/* If we got here then perhaps not all initialization was successful, but
* at least enough succeeded to bring-up NSH with perhaps reduced
* capabilities.