VS Arduino
Visual Micro >> Other Hardware >> STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload.
https://www.visualmicro.com/forums/YaBB.pl?num=1532463160

Message started by Erik Bongers on Jul 24th, 2018 at 8:12pm

Title: STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload.
Post by Erik Bongers on Jul 24th, 2018 at 8:12pm
Hi,

Hoping that someone has experience with using Visual Micro with STM32 boards. (in my case, the Blue Pill - STM32F103C). I flashed the stm32duino bootloader to the board, so I can upload sketches using just the mini-usb to PC connection.

However, after every upload, Visual Micro sets my board (in menu and toolbar) to "Maple Mini".

Initially I thought this would be no problem, as I can still upload sketches using that configuration, but after reset of the board, the bootloader is broken and the PC doesn't show a COM port for the board anymore.

So, every time I forget to manually set the board to STM32F103C again, I have to pull out my USB-serial adapter to flash the bootloader again.

I suspect Visual Micro changes the board because after every reset, a "Maple DFU" device appears on the PC. After a couple of seconds, this device is replaced with a COM port. I think maybe Visual Micro assumes too quickly that it's dealing with a Maple Mini board.

Anyone knows a way around this?
(...as I'm going to keep forgetting to set the board to STM32...)

Thanks in advance,

Erik.

Title: Re: STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload.
Post by Visual Micro on Jul 24th, 2018 at 8:16pm
Please make sure you have NOT checked the "auto select port when a device connects"

Some boards upload using a different port which means the port you start with disconnects then reconnects after upload. The device id of the board is not unique so the board can not be determined.

It would make sense for the board resolver to check the pid/vid of the currently selected board and use that in preferences to searching the master board list. I'll ad it to the todo list thanks but for now switch the menu item off.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.