Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
Page Index Toggle Pages: 1
Send Topic Print
STM32 extremly slow build (Read 159 times)

Posts: 6
STM32 extremly slow build
Sep 4th, 2020 at 6:26am
I'm beginning to explore STM32; I know the world has moved on...
I thought I would use the ASCII Table example code and the build time is 460seconds. Adding an extra character to a Serial.print and rebuild takes a similar time.
Am I doing something wrong or missing a trick?
Code (C++):
 Name:		ASCII_table.ino
 Created:	9/3/2020 6:40:02 PM
 Author:	mikeh

ASCII table

Prints out byte values in all possible formats :
-as raw binary values
- as ASCII - encoded decimal, hex, octal, and binary values

For more on ASCII, see http ://www.asciitable.com and http://en.wikipedia.org/wiki/ASCII

The circuit : No external hardware needed.

created 2006
by Nicholas Zambetti < http ://www.zambetti.com>
	modified 9 Apr 2012
	by Tom Igoe

	This example code is in the public domain.

	http ://www.arduino.cc/en/Tutorial/ASCIITable

	void setup() {
	//Initialize serial and wait for port to open:
	while (!Serial) {
		; // wait for serial port to connect. Needed for native USB port only

	// prints title with ending line break
	Serial.println("ASCII Table ~ Character Map");

// first visible ASCIIcharacter '!' is number 33:
int thisByte = 33;
// you can also write ASCII characters in single quotes.
// for example, '!' is the same as 33, so you could also use this:
// int thisByte = '!';

void loop() {
	// prints value unaltered, i.e. the raw binary version of the byte.
	// The Serial Monitor interprets all bytes as ASCII, so 33, the first number,
	// will show up as '!'

	Serial.print(", dec: ");
	// prints value as string as an ASCII-encoded decimal (base 10).
	// Decimal is the default format for Serial.print() and Serial.println(),
	// so no modifier is needed:
	// But you can declare the modifier for decimal if you want to.
	// this also works if you uncomment it:

	// Serial.print(thisByte, DEC);

	Serial.print(", hex: ");
	// prints value as string in hexadecimal (base 16):
	Serial.print(thisByte, HEX);

	Serial.print(", oct: ");
	// prints value as string in octal (base 8);
	Serial.print(thisByte, OCT);

	Serial.print(", bin: ");
	// prints value as string in binary (base 2) also prints ending line break:
	Serial.println(thisByte, BIN);

	// if printed last visible character '~' or 126, stop:
	if (thisByte == 126) {    // you could also use if (thisByte == '~') {
	  // This loop loops forever and does nothing
		while (true) {
	// go on to the next character


Back to top

Please Register or Login to the Forum to see File Attachments
IP Logged
Simon@Visual Micro

Posts: 700
Re: STM32 extremly slow build
Reply #1 - Sep 4th, 2020 at 10:14am
Thanks for the report and detailed information.

Are you running the second builds using Build > Rebuild?  (or just Build?)

It may be worth upgrading to the latest release available ( as there have been changes to how paths are treated which could have affected this too.

When just running Build for a second time, I can compile the sketch in around 13s even with the change to a Serial.print() as described, and in the output it should show "Using Previous Search Results: " for a large number of core files as they are cached.
Back to top
IP Logged

Posts: 6
Re: STM32 extremly slow build
Reply #2 - Sep 4th, 2020 at 12:00pm
I'll have to wait until this evening as currently I'm in work.
I was using build on both occasions; I was ignorant to the rebuild.
Back to top
IP Logged
Page Index Toggle Pages: 1
Send Topic Print