Hello E2E support team,
I have several ADC pins on my board and I need to read the measurements (temperature and voltage). I describe my ADC in the PinMUX, but when I generate am43xx_pinmux_data.c there is NO information about ADC at all. When I look at the provided examples for the IDK_AM437x board:
C:\ti\pdk_am437x_1_0_14\packages\ti\starterware\board\am43xx\am43xx_idkevm_pinmux_data.c
There I can see ADC pins in the provided C code!!!
Here is how I describe my ADC pins:
I tried both ONLINE and OFFLINE tools, but the result is the same - NO pins generated for ADC!
Here is the snippet of the generated code:
pinmuxBoardCfg_t gAm437xPinmuxData[] = { #if defined(BUILDCFG_MOD_UART) {CHIPDB_MOD_ID_UART, gUartPinCfg}, #endif /* if defined(BUILDCFG_MOD_UART) */ #if defined(BUILDCFG_MOD_PRU_ICSS) {CHIPDB_MOD_ID_PRU_ICSS, gPru_icssPinCfg}, #endif /* if defined(BUILDCFG_MOD_PRU_ICSS) */ #if defined(BUILDCFG_MOD_I2C) {CHIPDB_MOD_ID_I2C, gI2cPinCfg}, #endif /* if defined(BUILDCFG_MOD_I2C) */ #if defined(BUILDCFG_MOD_CPSW) {CHIPDB_MOD_ID_CPSW, gCpswPinCfg}, #endif /* if defined(BUILDCFG_MOD_CPSW) */ #if defined(BUILDCFG_MOD_MMCSD) {CHIPDB_MOD_ID_MMCSD, gMmcsdPinCfg}, #endif /* if defined(BUILDCFG_MOD_MMCSD) */ #if defined(BUILDCFG_MOD_QSPI) {CHIPDB_MOD_ID_QSPI, gQspiPinCfg}, #endif /* if defined(BUILDCFG_MOD_QSPI) */ #if defined(BUILDCFG_MOD_GPIO) {CHIPDB_MOD_ID_GPIO, gGpioPinCfg}, #endif /* if defined(BUILDCFG_MOD_GPIO) */ #if defined(BUILDCFG_MOD_RTC) {CHIPDB_MOD_ID_RTC, gRtcPinCfg}, #endif /* if defined(BUILDCFG_MOD_RTC) */ {CHIPDB_MOD_ID_INVALID} };
No ADC pins listed!
How can I read all my available ADC signals?
How many ADC chips on the board? If I have 7 pins with analog signals should I somehow multiplex these signal to the single ADC chip?
"starterware\examples\adc\volt_measure" doesn't really make it clear how to read many channels.
Thank you! Any help will be very appreciated!