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] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) SDK function not found (Read 1596 times)
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
SDK function not found
Dec 7th, 2022 at 11:39am
Print Post  
I just mad a huge program and I have a few errors...

Audio.cpp: 2655:72: error: no matching function for call to 'min(uint32_t&, long long unsigned int)
   availableBytes = min(availableBytes, audiofile.size() - byteCounter)
 
algorithm:62: In file included from
Arduino.h:162: from
Audio.h:15: from
Audio.cpp:11: from
stl_algo.h:3456: note  candidate  template<class _Tp, class _Compare> _Tp std  min(std  initializer_list<_Tp>, _Compare)
   min(initializer_list<_Tp> __l, _Compare __comp)
   ^~~
stl_algo.h:3456: note    template argument deduction\substitution failed
Audio.cpp:2655: note    mismatched types std  initializer_list<_Tp> and unsigned int
   availableBytes = min(availableBytes, audiofile.size() - byteCounter)
 
algorithm:62: In file included from
Arduino.h:162: from
Audio.h:15: from
Audio.cpp:11: from
stl_algo.h:3450: note  candidate  template<class _Tp> _Tp std  min(std  initializer_list<_Tp>)
   min(initializer_list<_Tp> __l)
   ^~~
stl_algo.h:3450: note    template argument deduction\substitution failed
Audio.cpp:2655: note    mismatched types std  initializer_list<_Tp> and unsigned int
   availableBytes = min(availableBytes, audiofile.size() - byteCounter)
 
vector:60: In file included from
Audio.h:14: from
Audio.cpp:11: from
stl_algobase.h:243: note  candidate  template<class _Tp, class _Compare> const _Tp& std  min(const _Tp&, const _Tp&, _Compare)
   min(const _Tp& __a, const _Tp& __b, _Compare __comp)
   ^~~
stl_algobase.h:243: note    template argument deduction\substitution failed
Audio.cpp:2655: note    deduced conflicting types for parameter const _Tp (unsigned int and long long unsigned int)
   availableBytes = min(availableBytes, audiofile.size() - byteCounter)
 
vector:60: In file included from
Audio.h:14: from
Audio.cpp:11: from
stl_algobase.h:195: note  candidate  template<class _Tp> const _Tp& std  min(const _Tp&, const _Tp&)
   min(const _Tp& __a, const _Tp& __b)
   ^~~
stl_algobase.h:195: note    template argument deduction\substitution failed
Audio.cpp:2655: note    deduced conflicting types for parameter const _Tp (unsigned int and long long unsigned int)
   availableBytes = min(availableBytes, audiofile.size() - byteCounter)
« Last Edit: Dec 8th, 2022 at 8:44pm by The_Specialist »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro 2.0 for Vs2022
Reply #1 - Dec 7th, 2022 at 1:22pm
Print Post  
For build problems please always provide the information in the yellow box near the top of the page.

A forum thread for each error is also best.

Thanks
  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: Visual Micro 2.0 for Vs2022
Reply #2 - Dec 8th, 2022 at 1:36am
Print Post  
Not sure it is build problem. I don't have the templates anymore and before the deinstallation went wrong...

"Some modifications could not be applied successfully."

I added the log
« Last Edit: Dec 8th, 2022 at 1:37am by The_Specialist »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: Visual Micro 2.0 for Vs2022
Reply #3 - Dec 8th, 2022 at 2:06am
Print Post  
I deinstall it and download the extension with the microsoft edge browser and now I have the templates again. But the errors remain.
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Hall_Alarm_Music_V5 audio library buid error
Reply #4 - Dec 8th, 2022 at 10:54am
Print Post  
Thanks for the log, can you confirm which version of the ESP32 Board Package you are using? (it looks to be the development branch installed into Sketchbook\hardware from the log)

Can you also confirm/supply:
1) The full build output from this build in its entirety
2) Does this work in the Arduino IDE using the same sketchbook folder and custom board packager (g:\Documents\Visual Studio 2022\Arduino)?
« Last Edit: Dec 8th, 2022 at 2:53pm by Simon@Visual Micro »  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #5 - Dec 8th, 2022 at 8:52pm
Print Post  
The project is in the right place, the board that I selected is "ESP32 dev module".

The sdk is G:\Documents\Visual Studio 2022\Arduino\hardware\espressif\esp32

the lib is in G:\Documents\Visual Studio 2022\Arduino\libraries

2/ it worked before in vs2019
  

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: SDK function not found
Reply #6 - Dec 9th, 2022 at 12:37am
Print Post  
Does it build in the arduino ide? If so please post the verbose output from the ide (file>preferences).
« Last Edit: Dec 9th, 2022 at 12:38am by Tim@Visual Micro »  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #7 - Dec 9th, 2022 at 6:22pm
Print Post  
No it doesn't build. I m sorry.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SDK function not found
Reply #8 - Dec 9th, 2022 at 9:08pm
Print Post  
Okay, we can't support code issues especially when using custom cores. 

I suggest removing sketchbook/hardware and installing esp32 via board manager. That way you will always know which version you are using and also know that you are using the version that has been tested with the libraries that the architecture supports.

You would also then have a combination that you can report issues about to either the library authors github page or the esp32 dev team.
  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #9 - Dec 10th, 2022 at 11:57pm
Print Post  
It's not a coding problem. Having the same issue as I sad in the link below. So the issue is not solved after updating from 2019 to 2022 linux.

https://www.visualmicro.com/forums/YaBB.pl?num=1665691658

Edited:
still having that error strlen in the size of an array and using definitions like this

PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_CLK_OUT1);


Maybe it is because of the very poor C version.
« Last Edit: Dec 11th, 2022 at 12:01am by The_Specialist »  

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: SDK function not found
Reply #10 - Dec 11th, 2022 at 12:28am
Print Post  
That's useful to see thanks. What you are looking at is what Visual Micro has been able to deduce for intellisense purposes. The actual language used during compilation is set by your toolchain, not by Visual Micro.

For intelllisense, Visual Micro attempts to look at the build pattern and and available defines that are specified in the core/toolchain.

+ The intellisense solution is not 100% perfect and might be misleading for C files.

You have a build error therefore you can only look at the information shown in the verbose output you attached previously. The verbose output shows the exact command used for C and CPP files. They are different but again, they are not specified by Visual Micro.

Is you dev copy of the toolchain up to date?
« Last Edit: Dec 11th, 2022 at 12:29am by Tim@Visual Micro »  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #11 - Dec 11th, 2022 at 8:54am
Print Post  
It's the almost the latest. I see they did make u pull on the py. Will it be refreshed automaticly after updating and reopen the project? 

It seems also that intellisens in the biginning of the header file doesn't find functions in the cpp file.
« Last Edit: Dec 11th, 2022 at 8:58am by The_Specialist »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SDK function not found
Reply #12 - Dec 11th, 2022 at 5:33pm
Print Post  
We will do some testing with custom board defs. Have you tried using the release version of the esp32 via board manager without your custom sketchbook/hardware.

You should see the core rebuild after you make changes to it and the next time you build in visual micro. If you don't see that you can always click "Build>Clean Solution" which will then cause a rebuild on next build.

You have a build error so I suggest that is resolved before reviewing intellisense although we will test with a custom core.
« Last Edit: Dec 11th, 2022 at 5:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #13 - Dec 14th, 2022 at 6:04am
Print Post  
I just desinstalled vm. I seems that 

Visual Studio 2022\Common7\IDE\devenv.exe

can't be removed... I looked in to my taskmanager and I can't find it.

Now I see, I getting my updates back of vm in the visual studio software. There has been an update on the visual studio. I will try that first.
« Last Edit: Dec 14th, 2022 at 6:09am by The_Specialist »  
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #14 - Dec 14th, 2022 at 6:35am
Print Post  
I have updated, but it didn't work out. the c++ is still 11. But I have a long list that has been found. I am wondering why it didn't slelected one higher...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #15 - Dec 14th, 2022 at 6:37am
Print Post  
As I tolled before, the highest selectable could be 17 by my toolchain. Here is maybe the info where you are be looking for. 

https://github.com/espressif/esp-idf/commit/0a1e83c599d8d83807393f5bb6e22ee9e6b8...

But it's idf and idf has been used as an arduino component. Here is the latest version of idf been used by arduino. 

https://github.com/espressif/arduino-esp32/releases/tag/2.0.5
« Last Edit: Dec 14th, 2022 at 6:43am by The_Specialist »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SDK function not found
Reply #16 - Dec 15th, 2022 at 12:01am
Print Post  
The version is built into the arduino_esp32 core and toolchain? You could make a request on their github page?

Are there any compiler switches that you see in the output that you think can change?
  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #17 - Dec 15th, 2022 at 1:43pm
Print Post  
I asked the question first if the information is available in the Arduino environment.
  
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: SDK function not found
Reply #18 - Dec 15th, 2022 at 2:05pm
Print Post  
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: SDK function not found
Reply #19 - Dec 15th, 2022 at 4:35pm
Print Post  
Thanks for the updates.

Intellisense Standards
The ESP32-Arduino Repo still shows gnu++11 (compiler.cpp.flags.esp32) and gnu99 (compiler.c.flags.esp32) for its compiler patterns, which is what vMicro will use to base its intellisense values on.
Code
Select All
https://github.com/espressif/arduino-esp32/blob/master/platform.txt 



From your log the Arduino Board Package has IDF version 4.4.2 integrated, but the change to the C/C++ Standards linked in the IDF Repo are for the v5.1-dev branch. The 4.4 version of IDF integrated uses the same gnu standards in its' build.cmake file as the Arduino Board Package so this all lines up as expected.

Build Errors
Can you confirm the ESP32-audioI2S library is the latest release 2.0.6 (or repo download) from this GitHub Repo
(Its confusing as the developer is not updating the library.properties in line with the releases, i.e. the 2.0.6 release has 2.0.0 in the library.properties)

If you can point us to one of the examples which fails from the library we will be able to look more easily. I have had issues using the ESP32-A2DP library on the newer ESP32 cores (>2.0.0) in the past due to changes implemented in the Arduino ESP32 core code, and such issues are best reported to the library developer once they are understood to be version incompatibilities.

It is best to stick to the released versions of the Board Packages and Libraries wherever possible, as the unreleased versions are volatile and can often result in errors which are fixed by the time it is frozen in a full release.
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint