cancel
Showing results for 
Search instead for 
Did you mean: 

integrate Qt with STM32CubeIDE to send data to DAC on clicking a button

flash123789
Associate

please help me on how to integrate Qt with STM32CubeIDE so that clicking a button in a Qt application sends data to the DAC on the STM32MP157D-DK1

4 REPLIES 4
TTQt
Associate

> DBELL.1 from ST mentioned that The STM32MP157D-DK1 doesn't support DAC i.e. the pins are not available.

An alternative would be an external serial DAC, controlled via the /sys/bus/i2c or /sys/bus/spi interface.
The Arduino connectors make both interfaces specifically available.

Sharan
Senior

can we use the onchip peripheral such as opamps in the board and get the signal via pins available on the board

I recommend to crosscheck the MCU datasheet (for the peripheral / GPIOpin assignment) and the schematics for the board in question.
In many cases, those pins are connected to external hardware like TFTs, ethernet, DRAM etc. and are initialized for this functionality. And due to fixed connections (PCB routing), these pins can't really be used for analog in/out purposes.