2024-10-03 03:54 AM - edited 2024-10-03 03:59 AM
i am using stm32mp157d-dk1 and i am using virtual box and i want to make a gui using c++
which application should i use so that i can access the adc and dac in linux.
using arm cotrex a7 can i access/control the adc and dac.
for example when I click a button it has to generate sine waves and it has to be written to dac
2024-10-03 05:15 AM
Hello @Sharan ,
Since you seem to start your journey with this MPU serie, I invite you to view this workshop : https://www.youtube.com/watch?v=yD8M_UK4AgQ&list=PLnMKNibPkDnFeV4sBarnsAtFTg7h6V-9_
ST made a video for analog DAC on MP1 : https://www.youtube.com/watch?v=NnJ2cTR-eMM
Regards,
2024-10-03 05:42 AM
Hi @Sharan ,
please have a look to https://wiki.st.com/stm32mpu/wiki/How_to_use_the_IIO_user_space_interface#How_to_do_a_simple_ADC_conversion_using_the_sysfs_interface
ADC is enabled by default OpenSTLinux Device Tree of STM32MP157D-DK1 Starter Package, but not DAC (PA4 and PA5 pins are already used by ADC on the STM32MP157D-DK1).
If by ADC and DAC you mean audio codec (available on the board jack), then you should look to https://wiki.st.com/stm32mpu/wiki/ALSA_overview
Regards
2024-10-07 03:56 AM
hii am using stm32mp157d-dk1 and i have downloaded qt creator and i have created a simple hello world window now how to display it in the stm32mp157d-dk1? how to set up cross compilation in order to deploy Qt projects directly from a host Linux machine to the embedded target using qtcreator
2024-10-18 07:44 AM
Regarding distribution package
after following the bellow steps and in build-<distro>-<machine>/tmp-glibc/deploy/images/<machine> directory
i cant find the file system image(FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv) in this directory as i am using stm32mp157d-dk1 and it contains for (FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv).can i use FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv itself to flash my stm32mp157d-dk1.
please correct me if the bellow steps are wrong
1.cd <working directory path>/Distribution-Package
2.repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26
3.repo sync
4. DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.sh
5.bitbake st-image-weston
7. cd <Distribution Package installation directory>
8.git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt
9. git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5
10. source layers/meta-st/scripts/envsetup.sh
11.bitbake-layers add-layer ../layers/meta-qt5 ../layers/meta-st/meta-st-x-linux-qt
12.bitbake st-image-qt
13.bitbake st-image-qt -c populate_sdk
14.bitbake st-image-qt package-index
15.execute "xxx.sh" script available in: build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/sdk
2024-10-18 08:34 AM
Hello @Sharan ,
If I look at the different machine.conf available, it seems that the board "stm32mp157d-dk1" is only available in the "stm32mp1" machine:
meta-st/meta-st-stm32mp/conf/machine/stm32mp1.conf:56:STM32MP_DT_FILES_SDCARD += "stm32mp157a-dk1 stm32mp157d-dk1"
Which is not the case in the "stm32mp15-disco.conf".
So I would say that you have to build your distribution using the MACHINE=stm32mp1
DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
Best Regards,
Kevin
2024-10-30 02:21 AM
@Kevin HUBER @PatrickF @GaetanGodart how to integrate qt with stm32cubeide for stm32mp157d-dk1
(beause when a button is clicked in qt it has to write sine values to dac)