adcStart breaks i2c on stm32l432 ?
Posted: Tue May 30, 2017 11:50 pm
I have an application on an stm32l432 which uses both i2c and adc. i2c works fine except if I execute
adcStart(&ADCD1, NULL)
the adc works fine once I start it, but if the adc is started, the i2c i2cMasterTransmitTimeout(..) command returns an error code -- even if the only adc command executed is the adcStart command. Something in the initialization code is stepping on the i2c, but I haven't got a clue where to look.
Kernel: 4.0.0
Compiler: GCC 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
Architecture: ARMv7E-M
Core Variant: Cortex-M4
Port Info: Advanced kernel mode
Platform: STM32L4xx Ultra Low Power
Board: STMicroelectronics STM32 Nucleo32-L432KC
Build time: May 30 2017 - 18:45:04
adcStart(&ADCD1, NULL)
the adc works fine once I start it, but if the adc is started, the i2c i2cMasterTransmitTimeout(..) command returns an error code -- even if the only adc command executed is the adcStart command. Something in the initialization code is stepping on the i2c, but I haven't got a clue where to look.
Kernel: 4.0.0
Compiler: GCC 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
Architecture: ARMv7E-M
Core Variant: Cortex-M4
Port Info: Advanced kernel mode
Platform: STM32L4xx Ultra Low Power
Board: STMicroelectronics STM32 Nucleo32-L432KC
Build time: May 30 2017 - 18:45:04