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
Hot Topic (More than 8 Replies) Arduino esp32 v2.0.10 and above versions (Read 1153 times)
Ozdem
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2023
Arduino esp32 v2.0.10 and above versions
Jun 27th, 2024 at 4:13pm
Print Post  
hello
I have an application that works with esp32. When I install the application with Arduino version 2.0.8, everything works smoothly, but when I upgrade to version 2.0.10, it gives the error I see in the screenshot below. I would be very happy if someone could help me.



[img][/img]

Here is the code where the error parts are changing

[code c++]#ifndef MTimeHPP
#define MTimeHPP

#include <TimeLib.h>
#include <DS1307RTC.h> ///!!! порядок подключения библиотек DS1307RTC.h Wire.h не менять иначе
#include <Wire.h> /// порт сыпет ошибками
#include "MFunction.h"
#include "MNTP.hpp"
#include "MJsonLoad.hpp"
#include "MJsonSave.hpp"

extern "C"
{
     #include <apps/sntp/sntp.h>

}

void sntp_init();

//---------------------------------------------------------------------------
class MTime
{
private:
     const int AddressPCF8563 =0x51;

     const int AddressDS1307 =0x68;



     byte isRTC;
     int HourLast;
public:      unsigned long MillisStart;
public: unsigned long MillisBeginDay;
private:
     unsigned long LastTimeNTP;
     int MillisResetCount = 0; /// for Uptime()
     int HLasSync=-100;  /// for EnabledAutoSyncGadget
     //---------------------------------------------------------------------------
     byte bcd2DEC(byte value)
     {
           return ((value / 16) * 10 + value % 16);
     }
     //---------------------------------------------------------------------------
     byte DEC2bcd(byte value)
     {
           return (value / 10 * 16 + value % 10);
     }
     //---------------------------------------------------------------------------
     void GetPCF8563(tmElements_t &tm) // this gets the time and date from the PCF8563
     {
           Wire.beginTransmission(AddressPCF8563);
           Wire.write(0x02);
           Wire.endTransmission();
           Wire.requestFrom(AddressPCF8563, 7);
           tm.Second = bcd2DEC(Wire.read() & B01111111); // remove VL error bit
           tm.Minute = bcd2DEC(Wire.read() & B01111111); // remove unwanted bits from MSB
           tm.Hour = bcd2DEC(Wire.read() & B00111111);
           tm.Day = bcd2DEC(Wire.read() & B00111111);
           tm.Wday = bcd2DEC(Wire.read() & B00000111);
           tm.Month = bcd2DEC(Wire.read() & B00011111);  // remove century bit, 1999 is over
           tm.Year = bcd2DEC(Wire.read() );
     }
     //---------------------------------------------------------------------------
     void SetPCF8563(tmElements_t &tm)  // this sets the time and date to the PCF8563
     {
           Wire.beginTransmission(AddressPCF8563);

           Wire.write(0x02);
           Wire.write(DEC2bcd(tm.Second));
           Wire.write(DEC2bcd(tm.Minute));
           Wire.write(DEC2bcd(tm.Hour));
           Wire.write(DEC2bcd(tm.Day));
           Wire.write(DEC2bcd(tm.Wday));
           Wire.write(DEC2bcd(tm.Month));
           Wire.write(DEC2bcd(tm.Year));
           Wire.endTransmission();
     }
     //---------------------------------------------------------------------------
     static void Sec2tm(unsigned long s, tmElements_t& tm)
     {
           tm.Hour = hour(s);
           tm.Minute = minute(s);
           tm.Second = second(s);
           tm.Day = day(s);
           tm.Month = month(s);
           tm.Year = CalendarYrToTm(year(s));
           tm.Wday = weekday(s);
     }
     //---------------------------------------------------------------------------
     static void AddDigits2String(int V, String &S, int length=2)
     {
           String S0 = String(V);
           while(S0.length()<length)
                 S0="0"+S0;
           S+=S0;
     }
     //---------------------------------------------------------------------------
     String tm2String(tmElements_t& tm, bool NeedAddWday=true)
     {
           String S = String(tm.Hour) + ":";
           AddDigits2String(tm.Minute, S);
           S+=":";
           AddDigits2String(tm.Second, S);
           S+=" ";
           S+= String(tmYearToCalendar(tm.Year)) + "." + String(tm.Month) + "." + String(tm.Day);
           if(NeedAddWday)
                 S+= " W" + String(tm.Wday-1);
           return S;
     }
     //---------------------------------------------------------------------------
     bool RTCCheck()
     {
_TL
     isRTC = 0;
           Wire.beginTransmission(AddressPCF8563);
           if (Wire.endTransmission() == 0)
           {
                 isRTC += 2;
                 Serial.println("PCF8563 found");
           }
           Wire.beginTransmission(AddressDS1307);
           if (Wire.endTransmission() == 0)
           {
                 Serial.println("DS1307 found");
                 isRTC += 1;
                 setSyncProvider(RTC.get);   
           }
           _TFl(isRTC)
           if (isRTC == 0)
                 Serial.println("RTC not found !!!");
     }
     //---------------------------------------------------------------------------
public:
     bool bTimeSet; /// time was set
     void(*MDelay)(unsigned int);
     bool EnabledAutoSyncNTP;
     bool EnabledAutoSyncGadget; /// sync only by udp, but not http. This because http responc not regular. 
                 /// But Lic test by time, from udp and from http.
     int TimeZone;
     short AMonthDay[12]={0,31,59,90,120,151,181,212,243,273,304,334};
     //---------------------------------------------------------------------------
     MTime() /// here call RTCCheck(), SetTime(), SyncNTP()
     {
           _TP_
           bTimeSet = false; /// after SetTimeZone(TimeZone);
           EnabledAutoSyncNTP = true;
           EnabledAutoSyncGadget = true;
           TimeZone=0;
           LastTimeNTP = 0;
           _TP_
           SetTimeZone(TimeZone);
           _TP_
           _TFl(bTimeSet);
     }
     //---------------------------------------------------------------------------
     static String Millis2TimeStr(unsigned long ms)
     {
           int H=ms/3600000;
           ms-=H*3600000;
           int M = ms / 60000;
           ms -= M * 60000;
           int Sec = ms / 1000;
           ms -= Sec * 1000;
           String S;
           AddDigits2String(H, S);
           S += ":";
           AddDigits2String(M, S);
           if(Sec>0 || ms>0)
           {
                 S += ":";
                 AddDigits2String(Sec, S);
                 if (ms>0)
                 {
                       S += ".";
                       AddDigits2String(ms, S, 3);
                 }
           }
           return S;
     }
     //---------------------------------------------------------------------------
     static unsigned long TimeStr2Millis(String STime)
     {
           int ms = 0;
           int p = 0;
           int iLast = 0;
           for (int i = 1; i <= STime.length(); i++)
           {
                 if (STime[i] == ':')
                 {
                       if (p == 0)
                             ms = STime.substring(iLast, i).toInt() * 3600000;
                       else if (p == 1)
                             ms += +STime.substring(iLast, i).toInt() * 60000;
                       iLast = i + 1;
                       p++;
                 }
                 else if (STime[i] == '.' && p == 2)
                 {
                       ms += STime.substring(iLast, i).toInt() * 1000;
                       iLast = i + 1;
                       p++;
                 }
           }
           if (p == 1)
                 ms += STime.substring(iLast, STime.length()).toInt() * 60000;
           else if (p == 2)
                 ms += STime.substring(iLast, STime.length()).toInt() * 1000;
           else if (p == 3)
                 ms += STime.substring(iLast, STime.length()).toInt();
           //_TFl(ms)
           return ms;
     }
     //---------------------------------------------------------------------------
     void SetTime(tmElements_t &tm)
     {
     if(tm.Hour<24 && tm.Minute<60 && tm.Second<60 && tm.Day!=0 && tm.Day<32 && tm.Month!=0 && tm.Month<13)
     {
           MDelay(0);
           if (isRTC == 1)
                 RTC.write(tm);
           else if (isRTC == 2)
                 SetPCF8563(tm);
           else if (isRTC == 3)
           {
                 SetPCF8563(tm);
                 RTC.write(tm);
           }
           //else
           {
                 _TFl(tm2String(tm))
                 setTime(tm.Hour, tm.Minute, tm.Second, tm.Day, tm.Month, tmYearToCalendar(tm.Year));
           }
           GetTime(tm); /// tm after test
           MillisStart=( (tm.Hour*60 + tm.Minute)*60 + tm.Second)*1000;//=millis();
           MillisBeginDay=millis();
           HourLast=-1;
           bTimeSet=true;
     }

     }
     //---------------------------------------------------------------------------
     void SetTimeZone(int TimeZone_)
     {
           tmElements_t tm;
           _TFl(LockTodo)
           GetTime(tm);
           configTime(TimeZone_ * 3600, 0, "pool.ntp.org", "time.nist.gov");
           tm.Hour= tm.Hour - TimeZone + TimeZone_;
           bool bTimeSet_= bTimeSet; /// else at start and load from file TimeZone will be set bTimeSet=true;
           SetTime(tm);
           bTimeSet= bTimeSet_;
           //tm.Hour += (-TimeZone + TimeZone_);
           TimeZone = TimeZone_;
           //SetTime(tm);
     }
     //---------------------------------------------------------------------------
     bool SyncNTP(bool bMust=false)
     {
           // todo: +++ here
           _TF_
           byte i = 0;
           if(bMust || GetTimeDo(100))
           {
                 Serial.print("SyncNTP.");
                 MNTP NTP(TimeZone);
                 NTP.SendNTP();
                 MDelay(1000);
                 unsigned long Sec = NTP.GetTimeSec();
                 for (byte i0=0; Sec == 0 && i0<5; i0++)
                       while (Sec == 0 && i<3)
                       {
                       MDelay(1000);
                       Serial.print(".");
                       i++;
                       Sec = NTP.GetTimeSec();
                       }
                 if (Sec!= 0)
                 {
                       tmElements_t tm;
                       Sec2tm(Sec, tm);
                       SetTime(tm);
                       _TFl(LockTodo)
                       _TC(GetTime()+" SNTP was sync ")
                 }
                 else
                       Serial.println("None");
                 LastTimeNTP = millis(); /// not set at only good sync, else at abset inet we will call SNTP sync very offen
                 return bTimeSet;
           }
           return false;
     }
     //---------------------------------------------------------------------------
     int GetWDay()
     {
           if (isRTC == 2)
           {
                 tmElements_t tm;
                 GetPCF8563(tm);
                 return tm.Wday-1;
           }
            /// DS1307 or not RTC
           return weekday()-1;//CalcWDay(tm.Day, tm.Month, CalendarYrToTm(tm.Year));
     }
     //---------------------------------------------------------------------------
     int GetHour()
           /// in 24 format
     {
           if (isRTC == 2)
           {
                 tmElements_t tm;
                 GetPCF8563(tm);
                 return tm.Hour;
           }
           /// DS1307 or not RTC
           return hour();//CalcWDay(tm.Day, tm.Month, CalendarYrToTm(tm.Year));
     }
     //---------------------------------------------------------------------------      
     void GetTime(tmElements_t& tm)
     {
                 static unsigned int _Tmsec;
           unsigned long ms = millis();

           if (isRTC ==2)
                 GetPCF8563(tm);
           else /// DS1307 or not RTC
           {
                 //_TP_
                 tm.Hour = hour();
                 tm.Minute = minute();
                 tm.Second=second();
                 tm.Day = day();
                 tm.Month = month();
                 tm.Year = CalendarYrToTm(year());
                 tm.Wday = weekday();//CalcWDay(tm.Day, tm.Month, CalendarYrToTm(tm.Year));
                 //_TP_
           }
           MDelay(0);
     }
     //---------------------------------------------------------------------------
     String GetTime()
     {
           tmElements_t tm;
           GetTime(tm);
           return tm2String(tm);
     }
     //---------------------------------------------------------------------------
     String GetUptime()
     {
           unsigned long ms = millis();
           tmElements_t tm;
           unsigned long sec=millis()/1000+ MillisResetCount*4294967;//.295;
           String S = "D"+String(sec / (3600 * 24)) + " ";
           AddDigits2String((sec % (3600 * 24))/3600, S); /// hour
           S+=":";
           AddDigits2String((sec % 3600)/60, S);  /// min
           S += ":";
           AddDigits2String(sec % 60, S); ///sec      
           S += "; sec=" + String(sec) + "; millis()=" + String(millis()) + "; Count=" + String(MillisResetCount);
           //      _TP_
           MDelay(0); 
           //_TP_
           return S;
     }
     //---------------------------------------------------------------------------
     void Setup()
     {
           //initialize_sntp();
           sntp_init();
           setSyncProvider(RTC.get);
           MillisStart = ((hour() * 60 + minute()) * 60 + second()) * 1000;//=millis();
           MillisBeginDay = millis();
           RTCCheck();
     }
     //---------------------------------------------------------------------------
     void LoopLowPriority()
     {
           if (EnabledAutoSyncNTP)
           {
                 unsigned long T = millis() - LastTimeNTP;
                 if (T>1000 * 3600 * 2 && T % 10000 == 0)  // todo: 1->24
     //      _TFl(T)
                 //if (T>10000)  // todo: 1->24 //----
                 {
                       _TP_
                       static int HLast = 0;
                       tmElements_t tm;
                       GetTime(tm);
                       int H = tm.Hour;
                       if(H != HLast)   
                             SyncNTP();
                       HLast=H;
                 }
           }
           else
                 LastTimeNTP = 0;


     }
     //---------------------------------------------------------------------------
     void LoopHighPriority()
     {
           static unsigned long MillisLast = 0;
           if (millis() < MillisLast)
                 MillisResetCount++;
           MillisLast = millis();
           int H = GetHour();
           if (H < HourLast) /// change day
           {
                 MillisStart = 0;
                 MillisBeginDay = MillisLast;
           }
           HourLast = H;
     }
     //---------------------------------------------------------------------------
     unsigned long MillisStartDay()
     {
                 return millis() - MillisBeginDay + MillisStart;
     }
     //---------------------------------------------------------------------------
     void SetTimeFromJson(String sK, tmElements_t tm, bool bTimeSyncGadget)
     {
           if (sK == "SetTime")
           {
                       SetTime(tm);
           }
           else if (bTimeSyncGadget)  /// here from udp (time sync only by udp)
           {
                       tmElements_t tmg;
                 GetTime(tmg);
                 if (EnabledAutoSyncGadget && abs(tmg.Hour-HLasSync)>2) /// not often then one in 3 hour
                 {
                       //bNeedTestLic = false;
                       SetTime(tm);
                 }
           }
     }
     //---------------------------------------------------------------------------
     void SetTimeFromJsonGet(String sK_, JsonObject& JOP, bool bTimeSyncGadget)
     {
           //_TL;
           //_TP_
           if (JOP.size() < 1)
                       _TEr_FR();
           String sK;
           tmElements_t tm;
           for (JsonObject::iterator it = JOP.begin(); it != JOP.end(); ++it)
           {
                 sK = it->key;
                 if (sK == "Y")
                       tm.Year = CalendarYrToTm(int(it->value));
                 else if (sK == "Mn")
                       tm.Month = it->value;
                 else if (sK == "D")
                       tm.Day = it->value;
                 else if (sK == "WD")
                       tm.Wday = it->value;
                 else if (sK == "H")
                       tm.Hour = it->value;
                 else if (sK == "M")
                       tm.Minute = it->value;
                 else if (sK == "S")
                       tm.Second = it->value;
           }
     
           SetTimeFromJson(sK_, tm, bTimeSyncGadget);
           //_TP_
     }
     //---------------------------------------------------------------------------
     void SetTimeFromJson(String sK, MJsonLoad& JL, bool bTimeSyncGadget)
     {
           tmElements_t tm;
           while (JL.GetNext() && JL.Key != "}")
           {
                 if (JL.Value == "{")
                       continue;
                 String sK2(JL.Key);
                 int V = JL.Value.toInt(); //it2->value.as<int>();
                 if (sK2 == "Y")
                       tm.Year = CalendarYrToTm(V);
                 else if (sK2 == "Mn")
                       tm.Month = V;
                 else if (sK2 == "D")
                       tm.Day = V;
                 else if (sK2 == "WD")
                       tm.Wday = V;
                 else if (sK2 == "H")
                       tm.Hour = V;
                 else if (sK2 == "M")
                       tm.Minute = V;
                 else if (sK2 == "S")
                       tm.Second = V;
                 else
                 {
                       _TErFl(sK2);
                       _TErFl(JL.Value);
                 }
                 MDelay(0);
           }
//_TFl(tm.Year);
           SetTimeFromJson(sK, tm, bTimeSyncGadget);
     }
     //---------------------------------------------------------------------------
     void SetFromJSon(MJsonLoad& JL) /// set all params consisting in JO to this
                                                      /// return !err
     {
           bool bNeedSetTime = false;
           while (JL.GetNext() && JL.Key != "}")
           {
                 String sK(JL.Key);
                 if (sK == "EnabledAutoSyncNTP")
                       EnabledAutoSyncNTP = JL.ValueAsBool();// it->value.as<bool>();
                 else if (sK == "EnabledAutoSyncGadget")
                       EnabledAutoSyncGadget = JL.ValueAsBool();// it->value.as<bool>();
                 else if (sK == "TimeZone")
                       SetTimeZone(JL.Value.toInt());// it->value.as<int>());
                 else if (sK == "SyncNTP")
                 {
                       //_TP_
                       SyncNTP(true);
                 }
                 else if (sK == "SetTime")// || sK=="Time")
                 {
//_TP_
                       SetTimeFromJson(sK, JL, false);
                       _TC("SetTime")
                 }
                 else 
                 {
                       _TErFl(sK);
                       _TErFl(JL.Value);
                 }
                 MDelay(0);
           }            
     }
     //---------------------------------------------------------------------------
     void GetToJSon(JsonObject& JOP, MJsonSave& JS, bool bAll = false, int Regime = 0)
           /// Regime = 0 - for save to file, 1 - save for http
           /// return all params consisting in JOP to JO
           /// return !err
     {
           //_TP_
           if (!bAll && JOP.size() < 1)
                 _TEr_FR();
           String sK;
           int Size = 0;
           for (JsonObject::iterator it = JOP.begin(); bAll || it != JOP.end(); ++it)
           {
                 _TP_
                 Size++;
                 if (!bAll)
                       sK = it->key;
                 bAll = (bAll || sK == "All");
                 if (bAll || sK == "EnabledAutoSyncNTP")
                       JS.Add("EnabledAutoSyncNTP", EnabledAutoSyncNTP);
                 if (bAll || sK == "EnabledAutoSyncGadget")
                       JS.Add("EnabledAutoSyncGadget", EnabledAutoSyncGadget);
                 if (bAll || sK == "TimeZone")
                       JS.Add("TimeZone", TimeZone);
                 _TP_
                 if ((bAll && Regime == 1) || sK == "TimeCurrent")
                 {
                       JS.Add("TimeCurrent", GetTime());
                 }
                 _TP_
                 if ((bAll && Regime == 1) || sK == "Uptime")
                       JS.Add("Uptime", GetUptime());

                 if ((bAll && Regime == 1) || sK == "DS1307")
                 {
                       if (isRTC == 1 || isRTC == 3)
                             JS.Add("DS1307", "Found");
                       else
                             JS.Add("DS1307", "Not found");
                 }
                 if ((bAll && Regime == 1) || sK == "PCF8563")
                 {
                       _TC("+++++++++++++++++++++++++");
                             _TC("+++++++++++++++++++++++++");
                             _TC("+++++++++++++++++++++++++");
                             _TC("+++++++++++++++++++++++++");
_TFl(isRTC)
                       if (isRTC == 2 || isRTC == 3)
                             JS.Add("PCF8563", "Found");
                       else
                             JS.Add("PCF8563", "Not found");
                 }
                 _TP_
                 if (!bAll && JS.Size == Size)
                 {
                       String sJOP;
                       JOP.printTo(sJOP);
                       _TErFl(sJOP);
                 }
                 MDelay(0);
                 if (bAll)
                       break;
           }
           _TP_
     }
     //---------------------------------------------------------------------------
};
//MTime Time;
#endif
[/code]
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Ozdem
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2023
Re: Arduino esp32 v2.0.10 and above versions
Reply #1 - Jun 27th, 2024 at 4:14pm
Print Post  
I forgot to add the error screen
  

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


Posts: 2499
Joined: Feb 13th, 2019
Re: Arduino esp32 v2.0.10 and above versions
Reply #2 - Jun 27th, 2024 at 4:29pm
Print Post  
Thanks for the report.

The log shows ESP32 v2.0.17 is installed, it could be there are additional board options since the initial version you may need to change for your specific setup.

If you click the [!] button at the bottom of the serial monitor, this should decode the stack trace in the serial window, which should give a clue as to where the issue lies hopefully.
  
Back to top
IP Logged
 
Ozdem
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2023
Re: Arduino esp32 v2.0.10 and above versions
Reply #3 - Jun 28th, 2024 at 7:02am
Print Post  
hello

Yes, the exception decoder gives me the attached error, but I cannot determine what the problem is, please excuse me as I am new to Arduino.


« Last Edit: Jun 28th, 2024 at 2:04pm by Simon@Visual Micro »  

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


Posts: 2499
Joined: Feb 13th, 2019
Re: Arduino esp32 v2.0.10 and above versions
Reply #4 - Jun 28th, 2024 at 2:12pm
Print Post  
Thanks for the update.

You should be able to click on the error messages to jump to the lines of code which are referenced.

It makes reference to two parts of your sketch in the error:
SCORD_Power.ino line 57
LoadSave.ino line 664

It may be any underlying functions you are calling have changed between the ESP32 versions, or sometimes it can be as simple as not enough power to the board (depending on amount of WiFi/BLE etc operations).

It may be best posted on the ESP32 Arduino Package page, as they have a much deeper understanding of the errors and their meanings.
  
Back to top
IP Logged
 
Bill A.
Newbies
*
Offline


Posts: 3
Joined: Oct 3rd, 2020
Re: Arduino esp32 v2.0.10 and above versions
Reply #5 - Jul 27th, 2024 at 9:42pm
Print Post  
I'm having similar issues. 
One thing I just realized going between Arduino IDE and VisualMicro is that Micro Explorer is confused on what library versions are actually installed. Note that two libraries below were installed after the compile issue started. 

The two libraries that I found this are Arduinojson and lv_examples. 
For the Arduinojson, I have v.7.1.0 installed, ME thinks that 6.11.0 is installed and is recommending 6.25.21 as the most recent. In the Library Manager, 6.11.0 (grayed out) precedes 7.1.0. 6.21.5 is the last item in the list and what ME thinks is current (7.1.0 is in the middle).
For lv_examples, the latest version is 8.1.0 which I have installed and is the last library in the list. Like above, it thinks the one above is what is installed (7.11.0) and basically installs the correct (8.1.0) but then thinks it's the 7.11.0.

I was able to compile a very simple file that had none of the recent libraries installed about the same time as the two above.
The Arduino IDE 2.0 compiles.
I updated VisualMicro to the most recent release.

Hopefully this helps somewhat as I updated visual micro today and the problem persist.


« Last Edit: Jul 27th, 2024 at 9:45pm by Bill A. »  

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


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino esp32 v2.0.10 and above versions
Reply #6 - Jul 27th, 2024 at 11:48pm
Print Post  
It's possible you are using a different sketchbook/libraries location in visual micro to the arduino ide.

The arduino library system is not very sophisticated. When installing a library they are unzipped to sketchbook/libraries/[libName]. The version is read from the library.properties text file that is extracted from the zip with the library sources.

Please follow the guide in yellow near the top of the page so that we can see your config.

tip: the library manager does allow you to click a specific library version to install. however the resulting "version" will be as stated above. It's possible for a library author to forget to change the library.properties when creating the library.zip.
  
Back to top
IP Logged
 
Bill A.
Newbies
*
Offline


Posts: 3
Joined: Oct 3rd, 2020
Re: Arduino esp32 v2.0.10 and above versions
Reply #7 - Jul 28th, 2024 at 6:10pm
Print Post  
Hi Tim,
I've attached the most recent output.

To be clear on the libraries, I have selected the latest libraries to install, but vmicro still identifies the version incorrectly. The library manager appears to be incorrectly identifying the version above the actual installed version, as the one that is installed. 

In the smaller screen snip above, the ArduinoJson 6.11.0 is grayed out as if it was installed when in fact the 7.1.0 is the one that is installed. 

For the lv_examples library, the list is out of order and despite the most current version being installed, it is selecting the version at the bottom of the list.

I have some screen snipping's and attempts at explaining. 

Regards,
  

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


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino esp32 v2.0.10 and above versions
Reply #8 - Jul 28th, 2024 at 8:54pm
Print Post  
We have seen the incorrect library version showing in the library manager. The order of the releases in the Json library meta is wrong. We will change our internal sorting to compensate for that. 

fyi: You can see which library version is installed by viewing myDocuments/Aduino/Libraries.ArduinoJson/library.properties using a text editor.

The build error was a cache file being locked. We will look into it but we have posted a solution in  in 24.0722.3 to https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

The version will also be available from the gallery within a few days. If you require VS2019 /2017 or AS7 build before then please let us know.

Thanks
« Last Edit: Jul 29th, 2024 at 12:49am by Tim@Visual Micro »  
Back to top
IP Logged
 
Bill A.
Newbies
*
Offline


Posts: 3
Joined: Oct 3rd, 2020
Re: Arduino esp32 v2.0.10 and above versions
Reply #9 - Jul 30th, 2024 at 10:13am
Print Post  
Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint