cancel
Showing results for 
Search instead for 
Did you mean: 

DfuseDemo on Ubuntu using Wine

Madhu R
Associate II
Posted on September 29, 2017 at 12:53

Hi ,

       I am using DfuseDemo for flashing .dfu on to my stm32l476 based board. This is working fine in the windows 7 environment. But , now to build my code i switched linux ubuntu, so i tried installing the Dfuse demo on ubuntu through wine. The installation is correct, but when i connect my board to PC, DfuseDemo is not able to detect my device.

Even , It is detected by the ubuntu as /dev/ttyUSB0, also i can see using 'lsusb' command as 'STMicroelectronics STM Device in DFU Mode' .

But  dfuseDemo, running on the wine not able to detect the device.

Please help me to resolve the issue.

Thanks and regards,

R Madhu.

#dfuse-linux
2 REPLIES 2
Sam Ellicott
Associate II
Posted on October 08, 2017 at 19:41

Hi,

If you are running ubuntu you should use the dfu-util package instead of the dFuseDemo program. You can install it with

sudo apt-get install libusb-1.0-0-dev dfu-util

dfu-util is a command line utility for writing the program to the microcontroller. Here is an example usage.

sudo dfu-util -a 0 -s 0x08000000 -D binaryFile.bin

The -s option sets when where to start writing to the flash (0x8000000 is the start of boot flash space). The -D flag tells the utility what file to flash (a .bin file). The -a flag tells dfu-util to write to flash memory and not the option bytes.

Hope this helps.

Soli Deo Gloria

-Sam Ellicott

Posted on October 09, 2017 at 19:30

Sam,

Thanks a lot . That worked exactly as needed.

Regards,

Madhu.R