2017-09-29 03:53 AM
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-linux2017-10-08 10:41 AM
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
2017-10-09 12:30 PM
Sam,
Thanks a lot . That worked exactly as needed.
Regards,
Madhu.R