Search found 6 matches

by Hypercube
Sun Apr 30, 2017 4:40 pm
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

There is a binary for bootloader with 12MHz Xtal - try it #elif defined TARGET_STBEE https://github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/STM32F1/binaries Hi Pito, that was very handy and it worked. After flashing bootloader I tried to program a sketch using upload method set to...
by Hypercube
Sun Apr 30, 2017 12:07 am
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

If you select STLink as upload method then the Serial device is the USART1, not the USB. Try loading the bootloader to the board, then upload using bootloader method, otherwise try SerialUSB.begin, SerialUSB.print etc. I think today STLink upload sets the serial device to USB by default and that bi...
by Hypercube
Sat Apr 29, 2017 11:04 am
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Where in the stm32duino environment did you a change to reflect the 12MHz Xtal? The file ~/Arduino/hardware/Arduino_STM32/STM32F1/variants/generic_stm32f103c/wirish/boards_setup.cpp is #ifndef BOARD_RCC_PLLMUL #if F_CPU==72000000 #define BOARD_RCC_PLLMUL RCC_PLLMUL_9 #elif F_CPU==48000000 #define B...
by Hypercube
Sat Apr 29, 2017 8:51 am
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Solved! Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

The bootloader will not enumerate as a serial port, only as a DFU device. When you load a sketch and the sketch starts, the sketch code will emulate a serial device. I am able to load projects through STLink interface, such as Arduino/hardware/Arduino_STM32/examples/Sensors/HardTimerAsEncoder/HardT...
by Hypercube
Sat Apr 29, 2017 8:16 am
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Pito wrote:Do you have got the d+ usb switch (via 1k5 to Vcc) on your board?
Yes the resistor is present and the USB is working with ST's free AC6 Linux Eclipse compiler built project with code written in C.
by Hypercube
Fri Apr 28, 2017 11:36 pm
Forum: USB bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 12
Views: 1087

Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Hi, I built my own STM32F103C8T6 board and used Linux tools under Ubuntu 14.04 to flash the board ~/Arduino/hardware/Arduino_STM32/tools/linux/stlink$ ./st-flash write generic_boot20_pc13.bin 0x08000000 Seems to flash OK, I tried a few more binaries from here: https://github.com/rogerclarkmelbourne/...