- This topic has 0 replies, 1 voice, and was last updated 7 years, 9 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › CubeMX, Eclipse and STM32 F072
Tagged: STM32 F072
I prepared project for STM32 Discovery F072.
The main goal is generate sine wave with audio frequences using DDS algorythm.
Here is my repo.
https://github.com/djkormo/STM32CubeF0FMPatch/blob/master/src/main.c
I cannot get audio signal on my PA4 or Pa5 PIN.
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
….
HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1, DAC_ALIGN_12B_R, value_dac); // nothing happends
HAL_DAC_SetValue(&hdac, DAC_CHANNEL_2, DAC_ALIGN_12B_R, value_dac);// nothing happends
}
On Discovery F058 similar code was working.
I don’t know what to do next to overcome the problem.