Author Topic: Flashing bootloader on F405  (Read 5763 times)

marcospm

  • Team member
  • *
  • Posts: 2
    • View Profile
Flashing bootloader on F405
« on: October 18, 2017, 09:59:05 AM »
Hello

Built a Preen FM2 tonight including the F405. Beaut¡uful design!
Before flashing the bootlader (OSX) I type dfu-uyil -l and get this, so I guess there is connection with the STM

dfu-util -l
dfu-util 0.9

Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:821a] ver=0042, devnum=7, cfg=1, intf=3, path="250-3", alt=0, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-2", alt=3, name="@Device Feature/0xFFFF0000/01*004 e", serial="356E356D3436"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-2", alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e", serial="356E356D3436"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-2", alt=1, name="@Option Bytes  /0x1FFFC000/01*016 e", serial="356E356D3436"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-2", alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="356E356D3436"


Now, when I try to flash bootloader 1.11

[~] marcos% dfu-util -a0 -d 0×0483:0xdf11 -D p2_boot_1.11.bin -R -s 0×8000000

I get:

dfu-util 0.9

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
dfu-util: Invalid dfuse address: 0×8000000


Any idea of what the problem is?
Thanks a lot


Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: Flashing bootloader on F405
« Reply #1 on: October 18, 2017, 03:24:26 PM »
Hi,

I copy and past your command and see that the "x" character you use in the adress is wrong.
It should be the regular lower case x letter.
In the USB id too !

dfu-util -a0 -d 0x0483:0xdf11 -D p2_boot_1.11.bin -R -s 0x8000000





marcospm

  • Team member
  • *
  • Posts: 2
    • View Profile
Re: Flashing bootloader on F405
« Reply #2 on: October 18, 2017, 04:03:59 PM »

Merci Xavier

I copy-pasted the code from the instructions, but it seems that the "exes" in my default font interfere with dfu-util. Now bootloader (and then firmware) are loaded

Best

Marcos