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 BluePill doen't blink anymore... (Read 1230 times)
yet-another-average-joe
Junior Member
**
Offline


Posts: 27
Joined: Jul 27th, 2019
BluePill doen't blink anymore...
Feb 8th, 2022 at 3:20pm
Print Post  
Hi,
I encounter a weird problem.
Until then, I had no problem compiling and flashing bluepills. Last time I did it was August of 2021 (according to backup files timestamps).
I came back to the STM32 projects after I've been working on a RasPi project from VS without any issue ; the BluePill projects don't run anymore !

Went back to the basics : Blink.
Flashed the Roger's Core (Mapple) using my ST-Link clone, compiled and flashed with Arduino IDE (1.8.15) : success.
Compiled and flashed from Visual Studio + Visual Micro : fail ! The program compiles, links, and uploads OK, but no blink ! No error message.

Settings are the same in the two IDEs :
Arduino 1.6/1.8
Generic STM32F103C6/fake STM32F103C6
upload method : STM32duino bootloader
same COM port (Mapple Mini)

Flashing using the SWD port (ST-Link), the problem remains the same. Th BluePill blinks with Arduino IDE, not with VisualMicro.

Nothing special in the logs (verbose mode).

I have about 20 *Pills, tested with half a dozen, same problem.

Visual Studio 2019 + Win10. Visual Micro is up to date, and the license is valid.
I'm used to VS : been using it since it was Visual C++ 1.0 beta/WinNT 3.1 beta march 1992 (was a MSDN subscriber at this time).

I'm really stuck !

It's probably something obvious, but I spent 8 hours on the problem, with no success...

Some thoughts ?
« Last Edit: Feb 8th, 2022 at 3:21pm by yet-another-average-joe »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: BluePill doen't blink anymore...
Reply #1 - Feb 8th, 2022 at 3:27pm
Print Post  
Thanks for the report.

Can you attach the full build output of your project, after enabling the below settings:
vMicro > Compiler > Verbose
vMicro > Compiler > Show Build Properties

If you can also attach the output from the Arduino IDE with the File > Preferences > Show Verbose Output During Compilation enabled, just so we can compare these too.

And just finally to check both sketches are using the same pin to blink the LED on?
  
Back to top
IP Logged
 
yet-another-average-joe
Junior Member
**
Offline


Posts: 27
Joined: Jul 27th, 2019
Re: BluePill doen't blink anymore...
Reply #2 - Feb 8th, 2022 at 3:59pm
Print Post  
Stupid me !!!

The STM32 sketch in VS is written with "13" pin instead of PC13 or LED_BUILTIN !!!!!

(facepalm smiley)

And the reason why at first I couldn't get the old project to work was because of a crappy breadboard with bad contacts after 6 months.

Thanks for your quick answer and solution !!!

Problem solved. I knew it was stupid and obvious.


  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: BluePill doen't blink anymore...
Reply #3 - Feb 8th, 2022 at 6:02pm
Print Post  
No problem, and glad we could help identify the issue.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint