Skip to content

Conversation

@svelmurugan92
Copy link
Member

@svelmurugan92 svelmurugan92 commented Jun 21, 2018

Added DFU programming support in the BSP
DFU programming steps:

  • Select DFU in the programming method
  • Short BOOT0 and VDD+ with a jumper wire and press reset.
  • Now board enter into DFU Bootloader mode
  • At first time, It ask for driver. (Download Zadig)
  • Start Zadig
  • Select Options -> List All Devices
  • Select STM32 BOOTLOADER from the device dropdown
  • Select WinUSB (v6.1.7600.16385) as new driver
  • Click Replace Driver
  • Now setup is ready. You can compile and upload your code using DFU.
@terrillmoore
Copy link
Member

terrillmoore commented Jun 21, 2018 via email

Copy link
Member

@terrillmoore terrillmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The permissions for the added tools were not set correctly. Must always check this for linux and macosx. I will fix and push a change to branch.

platform.txt Outdated
tools.stm32l0_dfu.erase.params.quiet=
tools.stm32l0_dfu.erase.pattern=

# OpenOCD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the openocd stuff is not used. Better not add it if not used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I now see the backlink from programmers to this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I still don't understand. STLINK worked before, why are we changing it?

Copy link
Member

@terrillmoore terrillmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update your sandbox and test with my modifications. We will not add openocd in this release so if I broke anything, please figure out how to make it work with stlink w/o openocd, as it did previously.

platform.txt Outdated
tools.stm32l0_openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{runtime.platform.path}/tools/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{{build.path}/{build.project_name}.elf}} verify reset; shutdown"
tools.stm32l0_openocd.program.params.verbose=-d2
tools.stm32l0_openocd.program.params.quiet=-d0
tools.stm32l0_openocd.program.pattern="{path}/{cmd}" {program.verbose} -s "{runtime.platform.path}/tools/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{{build.path}/{build.project_name}.elf}} verify reset; shutdown"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the variable build.openocdscript is not defined anywhere in *.txt This means that the stm32l0_openocd stuff is not used at all, and so none of the openocdscripts need to be supplied, I think.

@terrillmoore terrillmoore merged commit 26ffa5e into master Aug 2, 2018
@terrillmoore terrillmoore deleted the DFU-support branch August 2, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants