Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload. (Read 2790 times)
Erik Bongers
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2017
STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload.
Jul 24th, 2018 at 8:12pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: STM32 (blue pill) - board selection always jumps back to "Maple Mini" after upload.
Reply #1 - Jul 24th, 2018 at 8:16pm
Print Post  
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.
« Last Edit: Apr 14th, 2019 at 1:57pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint