Skip to content

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, it looks like there is a working procedure, using DFU and STM32CubeProgrammer.

Command line option

  1. Use STM32CubeProgrammer software

  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 the driver from C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\Drivers\DFU_Driver

  4. In cmd.exe, from the C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin folder, execute:

STM32_Programmer_CLI.exe -c port=usb1 -ob nDBANK=0
  1. From the same command line prompt, execute:
STM32_Programmer_CLI.exe -c port=usb1 -e all
  1. Download the Proteus F7 Firmware bundle 2021.10.08, extract and copy rusefi.hex to the C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin folder

  2. From the same command line prompt, execute:

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

Done!

GUI Option

  1. Use STM32CubeProgrammer software

  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 the 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 the USB cable, re-insert the USB cable, and open STM32CubeProgrammer. STM32CubeProgrammer is finicky; you really have to restart it between steps.

  6. Erase using "Full Chip Erase"

x

  1. Close STM32CubeProgrammer, unplug the USB cable, re-insert the USB cable, and open STM32CubeProgrammer.

  2. Program as shown in this picture:

x