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 AI speed on ESP32 changed between VS2019 and VS2022 (Read 1018 times)
Armin
Newbies
*
Offline


Posts: 2
Joined: Jan 28th, 2024
AI speed on ESP32 changed between VS2019 and VS2022
Jan 29th, 2024 at 9:04pm
Print Post  
Hello,

I created an application for ESP32 using VS2019 and Visualmicro.
Everthing worked fin. The application makes an AI read and somme calculations and DO outputs every 100µs.
I had checked that the main load in terms of time was the AI read.
I had checked with a separated simple test program time of AI read at 55µs aprox.

recently i changed my computer from W7 to W10, and from VS2019 to vs2022.
When I reloaded the program on the same ESP32 contrôler. The application has slowed down drastically, that means the full cycle changed from 70µS to 120µs.

So I checked again in a separated program only the time for a AI read, and now I find about 85µS instead of 55µs.

Any Idea why this important timing change happened ?

thanks for your help

best regards
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AI speed on ESP32 changed between VS2019 and VS2022
Reply #1 - Jan 29th, 2024 at 10:27pm
Print Post  
Assuming you are using the same board options from the vMicro menu, then it is possibly related to a different toolchain version in board manager.

Is the code exactly the same?
« Last Edit: Jan 29th, 2024 at 10:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Armin
Newbies
*
Offline


Posts: 2
Joined: Jan 28th, 2024
Re: AI speed on ESP32 changed between VS2019 and VS2022
Reply #2 - Feb 4th, 2024 at 7:35pm
Print Post  
Hello,

used same board, and tested on 5 other boards, always same result, change from 55 to  89 µs.

to do the benchmark I use extremely simple code, showing same problem than the real programm :

BeginInterupt = micros();
sensorValue = analogRead(sensorPin);
EndInterupt = micros();
TimeInterupt = EndInterupt - BeginInterupt ;
Serial.printlnTimeInterupt;

I am not an expert in deep software questions, this toolchain is what ?

thanks for your reply and your help

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


Posts: 2708
Joined: Feb 13th, 2019
Re: AI speed on ESP32 changed between VS2019 and VS2022
Reply #3 - Feb 6th, 2024 at 11:06am
Print Post  
The toolchain is the set of tools (compiler, uploader and debugger programs) which are installed as part of the Board Package.

If the Board Package has been updated on your machine this could be part of the change in performance.  Alternatively it could be that different board options are selected between VS2019 and VS2022.

1) Do you still have your VS2019 installation active on your machine to compare the board options between?
2) Do you recall upgrading the Board Package using Board Manager for ESP32?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint