You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 24, 2020. It is now read-only.
I've been testing the advanced ADC\DAC modes (beyond single conversion, polling) using the templates from STM32Cube_FW_F4_V1.15.0\Projects\STM324x9I_EVAL\Examples\ADC\ and \DAC\
When using these other analog routines, HAL_ADC_MspInit() etc need to be customised for each configuration.
Now I'm trying out the dual-interleaved mode, it has become clear that the code in analog.c is just an initial test.
As HAL_ADC_MspInit() needs to be customised for each configuration, I'm looking at hiding the MSP_Init functions in analog.c at the system level and moving the code up to a library. The Init functions can then be customised for each mode.
When I tried this, other functions break - like dac_stop() and pwm_stop(). I think I'll be able to leave them in analog.c
Give me a few days and I'll have something workable.
Single-Polling and Single-interrupt are working already, using pretty much standard code from the Cube libraries, next up is dual-interleaved
Activity
[-]Analog.c - g_current_pin only initialised by high level functions[/-][+]ADC Libraries[/+]palmerr23 commentedon May 6, 2017
Frederic,
I've tested a number of ADC modes - polling, interrupt, DMA.
Example files are in https://github.com/palmerr23/Black-F407VET6-cube/tree/master/examples
Currently debugging Dual Mode Interleaved (edit: now working).
fpistm commentedon May 24, 2017
Proposed to move on the new repo Arduino_Core_STM32 as this one is deprecated. (same code).
palmerr23 commentedon May 24, 2017
Frederic, Fine by me. I'm shifting across to the new core also.
fpistm commentedon Jun 2, 2017
This issue was moved to stm32duino/Arduino_Core_STM32#5