Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4940

How to use execute linux commands using QProcess

$
0
0
Hey. I am trying to execute linux commands using QProcess. I am trying to flash and read back data from STM32 micro using raspberry pi using the stm32flash utility as such : http://manpages.ubuntu.com/manpages/bionic/man1/stm32flash.1.html I am able to flash the STM32 chip using this command on the linux terminal:
stm32flash -w datafile.hex /dev/ttyUSB0

and then read the data using

stm32flash -r home/pi/Desktop/readback.hex /dev/ttyUSB0

All I am trying to do is call one or...

How to use execute linux commands using QProcess

Viewing all articles
Browse latest Browse all 4940

Latest Images

Trending Articles



Latest Images