mbed-os/libraries
ohagendorf f96f9c2e2e [STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks
When two or more analogue inputs are initialized on more than one ADC HW block the initialisation fails with:
Cannot initialize ADC

The reason is the reusage of just one ADC_HandleTypeDef for all initializations (in mbed\targets\hal\TARGET_STM\TARGET_STM32F3\analogin_api.c). After the first (successful) ADC initialisation AdcHandle.State is set to HAL_ADC_STATE_READY).
But for another ADC block initialisation the AdcHandle.State has to be reset so that the HAL initialize it (in mbed\targets\cmsis\TARGET_STM\TARGET_STM32F3\stm32f3xx_hal_adc_ex.c line 424). When this state is not reset the HAL returns with an initialization error. And this error induces the above mbed error message.

The error message can be reproduced just with AnalogIn in1(xx); AnalogIn in2(yy); where xx and yy belongs to two different ADC blocks.
2016-02-29 23:50:07 +01:00
..
USBDevice Support of export function to the IAR. 2016-02-15 14:49:31 +09:00
USBHost Support of export function to the IAR. 2016-02-15 14:49:31 +09:00
doc Initial commit of the mbed libraries and tools 2013-02-18 15:32:11 +00:00
dsp [dsp lib] update CMSIS dsp 4.5 2015-11-18 23:26:25 +01:00
fs [FATFileSystem] Fixed API integer widths 2015-11-26 09:59:52 -07:00
mbed [STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks 2016-02-29 23:50:07 +01:00
net Modify the format of code 2015-11-02 17:50:04 +09:00
rpc Add RZ_A1H in RPC. 2015-08-07 16:20:22 +09:00
rtos [NUCLEO_F746ZG] support rtos for this new target 2016-02-26 11:36:35 +00:00
tests Merge pull request #1520 from adustm/b_b96b_can 2016-02-26 17:07:15 +00:00