-
Hi, so I'm trying to make a arduino variant for this MCU, it seems that was working until I tried the DAC, the board freezes when I use the DAC, while on STM32Cube IDE works properly, so don't know if there's a bug on this whole line (I tried the build-in RBT variant without success either) or an specific error on my variant. I'm using ST core 2.7.1 Schematic: https://github.com/r-pv/STM32H503CBT6/blob/main/STM32H503CBT6/STM32H503CBT6.pdf So I can't see any error on my variant, can you spot any error?. On arduino I'm just using a very simple sketch:
The Led just to see if the board is OK or froze, and the led is ON constantly, so freezes when the analogwrite is called. The compiler didn't gave any error or warnings, On the variant the DAC is enabled by default but also used the hal_conf_extra.h and build_opt files just to be sure without differences. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @r-pv |
Beta Was this translation helpful? Give feedback.
Thanks, I think this line was released on September, so it's pretty new.
I think the problem is related to the ADC/DAC clock settings, first time I tried on CubeIDE also got it froze due to ADC/DAC clock settings. After set this right the cube IDE generates the SystemClock_Config and PeriphCommonClock_Config functions, I saw on a build-in variant that this can be combined on just the SystemClock_Config function on the generic_clock.c file, but don't know if its the right way to do it or if the ADC/DAC clock settings are being ignored/rewritten by the core.
This is my clock config on the variant: