I read a lot about it for other STM32 MCUs but can't find any confirmation that it’s not possible to use PA4 and PA5 as GPIO output and DAC1 channel 1 and channel 2 internally for STM32F303CBT6. There's a hint in the errata of another STM32F303* using PA5 (ES0246 Rev 8, 2.3.1 on page 11/21) but for STM32F303CBT6 there is no limitation, yet.
We have to use both DAC1 channels and have to use GPIO PA4 as a digital output as well. Today it looks like after enabling the DAC channels, the GPIOs are automatically configured as analog output and it's not possible to switch them anymore.
The datasheet specified that it should be possible to use GPIO PA4 and PA5 in parallel to the DAC channels but at least for me it doesn't work today.
Does somebody make the same experience? Is there any idea or workaround? I really need both DAC channels as comparator input but need PA4 as well.
Thanks for any support or at least a confirmation that it doesn’t work as expected.
Thanks for your response. To make sure what I like to do. I use the DACs only as internal comparator input so not necessary to map to a pin.
The GPIO PA4 is necessary to switch external hardware.
The (very poorly worded) errata applies to your chip, but it suggests only PA5 is affected.
"STM32F303xx silicon limitations" certainly applies to the STM32F303CBT6.
It's confusing, because the name of the errata describes that it's for STM32F303x6/x8 only.
There is another one for STM32F303xB/C named ES0204 Rev 11 and there is no information that PA4 and PA5 are not working as specified. But I'm afraid that I can confirm that they are not working.
Does anybody know a workaround. I only need VCC at PA4 and don't like to cut the route and solder a wire for this revision of the PCBs.