ADC Not Working STM32H7A3RI
Show older comments
Hello, I have a custom PCB with an STM32H7A3RITx with 5 ADCs, however I have been unable to get the Analog to Digital Converter block in Simulink to work properly. Setting the block to "read results only" results in the ADCs reading max value, however setting the block to "trigger and read" results in my code crashing. I've messed with the STM32CubeMX ADC settings to see if I can make things work, but I have been unable to do so.
Additionally, I've attempted to keep the Analog to Digital Converter block set to read only, with ADC Continuous Conversion Mode enabled, however that creates the following error when I build: Continuous conversion Mode is currently not supported. Open STM32cubemk project > Pin & Configuration > Analog > ADC1 > Parameter Settings > Configuration > ADES_Common Settings and Set the Continuous Conversion Mode as 'Disabled'
Matlab r2024b, STM32CubeMX 6.4.0
What am I missing to make this work? Thanks!




Answers (0)
Categories
Find more on Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!