Skip to main content
IDavo.1
Associate II
July 24, 2020
Solved

Blue pill does not have DAC in Cube

  • July 24, 2020
  • 4 replies
  • 2657 views

Hi All

Today I wanted to start working with Bluepill DAC that turn out in STM32CubeIDE there is no DAC peripheral and I was shocked. Does anyone know what the h... is that issue? and how to solve it? I don't like to configure it by myself.

This topic has been closed for replies.
Best answer by S.Ma

use a pwm with external RC filter as woraround... and change its duty cycle.. a timer will do the job.

4 replies

berendi
Principal
July 24, 2020

That is because it does not have a DAC. Who told you that it has one? Check the MCU datasheet.

IDavo.1
IDavo.1Author
Associate II
July 24, 2020

Yes apparently it does not have an DAC which is really bad. In reference manual there is chapter about DAC so I thought it might have. Thanks for the answer

S.Ma
S.MaBest answer
Principal
July 24, 2020

use a pwm with external RC filter as woraround... and change its duty cycle.. a timer will do the job.

IDavo.1
IDavo.1Author
Associate II
July 25, 2020

Yeah great smart Idea.

Peter BENSCH
Technical Moderator
April 25, 2025

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter