rusefi_documentation/Proteus-F767-programming-in...

2.2 KiB

Proteus F767 Programming Instructions

Too many of Proteus 0.6 with F767 are behaving strangely in terms of SWD programming. Maybe we have a hardware design issue? Maybe we are missing something?

Anyway looks like there is a working procedure, using DFU and STM32CubeProgrammer

Command line option

  1. use STM32CubeProgrammer software STM32CubeProgrammer

  2. connect via USB while holding PROG button

  3. make sure you have "STM32 BOOTLOADER" driver not "STM Device in DFU Mode". If necessary update/install driver from C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\Drivers\DFU_Driver

  4. Enter cmd.exe, enter C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin folder

    STM32_Programmer_CLI.exe -c port=usb1 -ob nDBANK=0
    
  5. from same command line prompt

    STM32_Programmer_CLI.exe -c port=usb1 -e all
    
  6. download Proteus F7 Firmware bundle 2021.10.08 and un-compress and copy rusefi.hex to C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin folder

  7. from same command line prompt

    STM32_Programmer_CLI.exe -c port=usb1 -w rusefi.hex -v -s
    

Done!

GUI option

  1. use STM32CubeProgrammer software STM32CubeProgrammer

  2. connect via USB while holding PROG button

  3. make sure you have "STM32 BOOTLOADER" driver not "STM Device in DFU Mode". If necessary update/install driver from C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\Drivers\DFU_Driver

  4. connect STM32CubeProgrammer via USB, follow this guide to reset nDBANK flag

  5. close STM32CubeProgrammer, unplug USB cable, plug USB cable, open STM32CubeProgrammer. STM32CubeProgrammer is finicky you really have to restart it between steps

  6. erase using "Full Chip Erase"

    x

  7. close STM32CubeProgrammer, unplug USB cable, plug USB cable, open STM32CubeProgrammer.

  8. program like on the picture

    x