Daniel Fekete
Daniel Fekete
This is because not every HAL is compiled in. The extra stuff is in `STM32/libraries/STM32_HAL/src/` If you copy `stm32XXxx_hal_adc_ex.c` to `STM32/cores/arduino/stm32_HAL/` it will work. (Or include `STM32_HAL.h`) The reason is...
I added stm32XXxx_hal_adc_ex.c to the core. Can you try again?
Actually I just put in all HAL source files. Compile time is slightly longer, but oh well.
Is there somewhere a more higher level API for arduino for ADC (other than the basic analogRead() of course)? (teensy?) The HAL examples are nice, and could be the basis...
If you look around, almost every Arduino library is based on c++ class, as in ADC.init() ADC.whatever()... As for the actual functions, names, functionality, I do not have experience with...
Yes, `#ifndef VECT_TAB_OFFSET` is fine. Originally the F1 did not have it either.
Can you put here a short test code for it?
Use STM32CubeMX to generate the code for the specific settings. Create a new project with STM32F407ZETx, set FSMC, chip select NE4, memory type LCD, etc..., clic project, generate code, Toolchain:...
Please use this guide to add your board: https://danieleff.github.io/STM32GENERIC/add_board/
On one hand, a simple "I want to run this code every x microseconds" timer would be good. [IntervalTimer ](https://www.pjrc.com/teensy/td_timing_IntervalTimer.html)API is very nice for that. Or even just `scheduleRepeated(microseconds, callback)`....