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 extremly slow build (Read 964 times)
SaturdayScience
Newbies
*
Offline


Posts: 6
Joined: May 2nd, 2020
STM32 extremly slow build
Sep 4th, 2020 at 5:26am
Print Post  
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++)
Select All
/*
 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:
	Serial.begin(500000);
	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.write(thisByte);

	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:
	Serial.print(thisByte);
	// 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) {
			continue;
		}
	}
	// go on to the next character
	thisByte++;
}

 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: STM32 extremly slow build
Reply #1 - Sep 4th, 2020 at 9:14am
Print Post  
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 (20.07.08.13) as there have been changes to how paths are treated which could have affected this too.
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

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
 
SaturdayScience
Newbies
*
Offline


Posts: 6
Joined: May 2nd, 2020
Re: STM32 extremly slow build
Reply #2 - Sep 4th, 2020 at 11:00am
Print Post  
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 TopicPrint