DFU ubuntu 17.04

All distros
rsc
Posts: 17
Joined: Thu Oct 06, 2016 12:03 pm
Location: Argentina

Re: DFU ubuntu 17.04

Post by rsc » Mon Oct 16, 2017 1:39 am

I don't know why but now upload fine, but can't upload if is plased in my board, bootloader use a pin? (Using serial can upload directly)
Image

User avatar
RogerClark
Posts: 7171
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: DFU ubuntu 17.04

Post by RogerClark » Mon Oct 16, 2017 4:15 am

Bootloader uses a pin as button to force it to lock in bootloader mode.

I forget which pin it is on each bootloader version

Check in config.h

rsc
Posts: 17
Joined: Thu Oct 06, 2016 12:03 pm
Location: Argentina

Re: DFU ubuntu 17.04

Post by rsc » Mon Oct 16, 2017 6:28 pm

Code: Select all

#elif defined TARGET_GENERIC_F103_PC13

    #define LED_BANK            GPIOC
    #define LED_PIN             13
    #define LED_ON_STATE        0

    // Button (if you have one)

    #define BUTTON_BANK GPIOC
    #define BUTTON_PIN 14
    #define BUTTON_PRESSED_STATE 1
can I comment defines?
I suppose I can compile it with System workbench for stm23 (SW4STM32)

ag123
Posts: 770
Joined: Thu Jul 21, 2016 4:24 pm

Re: DFU ubuntu 17.04

Post by ag123 » Sun Oct 29, 2017 11:21 am

for the blue pill u'd need to do a stunt
- have the command line ready e.g. dfu-util -a 2 -D sketch.bin, just short of hitting enter
- press reset (on blue pill - not your pc)
- hit enter (you have 6 fast blinks of time to do that, miss that repeat all over)

Post Reply