dfu-util | dfu-util with statically linked libusb for mac | Networking library
kandi X-RAY | dfu-util Summary
kandi X-RAY | dfu-util Summary
This specically formulated version of dfu-utils designed with the intent of statically linking libusb to create standalone operation on mac computers. ******** Not Working ... yet *********. Dfu-util - Device Firmware Upgrade Utilities. Dfu-util is the host side implementation of the DFU 1.0 [1] and DFU 1.1 [2] specification of the USB forum. DFU is intended to download and upload firmware to devices connected over USB. It ranges from small devices like micro-controller boards up to mobile phones. With dfu-util you are able to download firmware to your device or upload firmware from it. dfu-util has been tested with Openmoko Neo1973 and Freerunner and many other devices. [1] DFU 1.0 spec: [2] DFU 1.1 spec:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dfu-util
dfu-util Key Features
dfu-util Examples and Code Snippets
Community Discussions
Trending Discussions on dfu-util
QUESTION
Edit : Problem circuvented by generating a Makefile project but I'd still like to know what is going on.
This question echoes my unresolved problem mentioned here (STM32 app not running sometimes, remains in DFU).
I have a custom board STM32L486 based and I am using the built-in DFU mode to upload new firmware over USB using dfu-util
on Linux.
Sometimes, for unknown reasons, the app won't start after leaving the DFU mode.
A slight change in code can make it work or break it. (see link above for details).
Examples of changes that can reverse the problem :
- Adding / removing a
HAL_Delay
or a LED Blink - +1 or -1 on an array size
- Adding / removing a
sprintf
format
What seems to work is building the binary with Og
optimisation (or using the STLink tool and debug mode).
I have tried to increase the heap and stack (up to 20x the default), it doesn't change anything. Checking the prepare dead code/data removal options in Atollic seem make build fail more than other times.
What could be causing the issue of the app not starting, not even the init steps ?
How can I track down the culprit flags that may cause this ?
Can this be linked to a memory alignment problem ?
Any ideas / insights / comments on how to check is welcome.
I have been able to reproduce the same issues (from here and my other link) on a Nucleo board.
I tried to generate a Makefile project from CubeMX and the problem does not happen. I guess this is a bug in either the binary generated by Atollic or the compiler/linker settings that the IDE.
Note that my Makefile uses the exact same toolchain as Atollic so this cannot be a toolchain issue.
This issue is hereby circumvented by this, but I'd still like to understand what may happen.
ANSWER
Answered 2019-Apr-23 at 06:54As far as I've tried, this DFU issue and app not rebooting is caused when building from Atollic (TrueStudio).
Generating a Makefile project from CubeMX solved this issue though I still cannot explain why.
QUESTION
I want to upload the device firmware to a file using dfu-util. How can I determine the correct size of flash memory?
After booting the device into DFU it can be found using:
...ANSWER
Answered 2019-Feb-01 at 13:04Please see UM0290 in which we find:
Each Alternate setting string descriptor must follow this memory mapping else the PC Host Software would be able to decode the right mapping for the selected device:
@
: To detect that this is a special mapping descriptor (to avoid decoding standard descriptor)/
: for separator between zones- Maximum 8 digits per address starting by “0x”
/
: for separator between zones- Maximum of 2 digits for the number of sectors
*
: For separator between number of sectors and sector size- Maximum 3 digits for sector size between 0 and 999
- 1 digit for the sector size multiplier. Valid entries are:
B
(byte),K
(Kilo),M
(Mega)- 1 digit for the sector type as follows:
a
(0x41): Readableb
(0x42): Erasablec
(0x43): Readable and Erasabled
(0x44): Writeablee
(0x45): Readable and Writeablef
(0x46): Erasable and Writeableg
(0x47): Readable, Erasable and Writeable
So your string really does mean that the internal flash is 64 sectors of 2 KB, and that they are "readable, erasable and writable" (i.e. flash). Are you sure about your expectations of the device's flash layout?
QUESTION
I have a Particle Photon which I'm trying to setup. I've tried flashing code both from the web IDE, and locally and it always times out. The device is connecting as it can be seen in these pictures:
The web IDE does not give me much information. It only says "Request Timed Out". This is what I get when I try to flash an .ino code
...ANSWER
Answered 2017-Jun-22 at 15:46You won't be able to flash a Core firmware to a Photon (they have different architecture and firmware layout). To compile the code for photon you can also use the CLI:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dfu-util
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page