cancel
Showing results for 
Search instead for 
Did you mean: 

Setting DAC1 ch1 DAC2 ch1 on STM32F303k8

BBuch
Associate

ST community,

The issue I’m having is getting DAC2 to work, DAC1 works great. I’m using TrueStudio no HAL, everything setup manually. I’m receiving data from PC to mic USART then adjusting Vout on DAC1 and hopefully DAC2. The main question is I can’t see DAC2 register, only DAC1, the device driver for STM32F303k8 defines both DAC1 and DAC2 address but only DAC1 is visible (DAC are the same), why isn’t DAC2 populating. Also bit 26 RCC DAC2 enable peripheral is unavailable.

thanks

1 REPLY 1
AvaTar
Lead

Maybe the problem is in your code, and you haven't enabled the clock to DAC2 ?

Or missed something with the GPIO configuration ?

> The main question is I can’t see DAC2 register, only DAC1, the device driver for STM32F303k8 defines both DAC1 and DAC2 address but only DAC1 is visible (DAC are the same), why isn’t DAC2 populating. Also bit 26 RCC DAC2 enable peripheral is unavailable.

Some (Eclipse) toolchains have debugger configuration problems, or not up to date.

You can get the register addresses from the RefManual, and usually dee them in a Memory View of the debugger.