rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.52k stars 1.26k forks source link

micadc example: no matching function for call to 'STM32ADC::setDMA(uint16_t [2], int, int, NULL)' #801

Closed jreyesr closed 4 years ago

jreyesr commented 4 years ago

There is a compilation error in the micadc example for the USBComposite library. It fails with an error no matching function for call to 'STM32ADC::setDMA(uint16_t [2], int, int, NULL)'. AFAIK, it's the line https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/9b81135699acc7356721957d7013fde052a0b55f/STM32F1/libraries/USBComposite/examples/micadc/micadc.ino#L29 The parameters for setDMA have changed and that invocation is no longer valid. I'm preparing a pull request that (should) solve it.

jreyesr commented 4 years ago

Update: Two of the STM32ADC examples (MultiChannelContinuousConversion.ino and SingleChannelAtSampleRateCircularBuffer.ino) are also broken. I think https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/769#issuecomment-642701526 refers (at least in part) to this bug, since the attached MultiChannelSingleConversion.ino.txt file implements the same fix.

stevstrong commented 4 years ago

I think 5236648 fixes the issue without changing all those examples.