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) EEPROM ESP32 (Read 2466 times)
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
EEPROM ESP32
Nov 19th, 2023 at 9:05pm
Print Post  
Hi,

    I try to include via visual micro->Add Library->eeprom and it's not work no include is done in my project and all call to eeprom function doesn't work.

any idee?
Thanks for your time
Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #1 - Nov 20th, 2023 at 11:03am
Print Post  
Thanks for the report.

Can you attach the build output from your project (even if it fails) with the settings enabled as shown at the top of the page, so we can see your full environment?
  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #2 - Nov 20th, 2023 at 11:10pm
Print Post  
where I click to attach a file?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #3 - Nov 21st, 2023 at 10:04am
Print Post  
You should see the Attachments section beneath the message box where you reply.

This wasn't enabled on this board for some reason, but this has been rectified now so it should show for you.
  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #4 - Nov 21st, 2023 at 3:27pm
Print Post  
Here it is
  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #5 - Nov 21st, 2023 at 3:34pm
Print Post  
Thanks for the log.

Can you update to the latest version of Visual Micro from our downloads page:
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

Then once installed, please ensure the vMicro > Compiler > Show Build Properties is also enabled along with vMicro > Compiler > Verbose, and re send the log file?
  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #6 - Nov 21st, 2023 at 9:54pm
Print Post  
Here it is, almost the same thing,  I I include manually the .c .h file in the project and make the appropriate include it is working

Thanks
Sylvain Bissonnette
  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #7 - Nov 22nd, 2023 at 12:58pm
Print Post  
Thanks for the log, it still doesn't have the vMicro > Compiler > Show Build Properties enabled.

When you say you include the .c .h file and make the appropriate include, can you give a code example?

When you used the Add Library > Current Platform > and selected EEPROM, were you editing the INO File in your project?
  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #8 - Nov 22nd, 2023 at 11:02pm
Print Post  
Here is the ouput

    To make it work I go in the solution explorer, Add->Existing Item and select
raries\EEPROM\src\eeprom.cpp and the .h file
and I had in my code
#include braries\EEPROM\src\EEPROM.h>

« Last Edit: Nov 22nd, 2023 at 11:02pm by Sylvain »  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #9 - Nov 23rd, 2023 at 9:52am
Print Post  
Thanks for the detail and the logs.

All that should be required is to add the #include <EEPROM.h> to the top of the sketch (without the fully qualified path).  You definitely should not need to add the CPP/H files to the project yourself.

If you remove the files from the project, and amend the #include to the above, does this then find the EEPROM library?

  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #10 - Nov 23rd, 2023 at 3:15pm
Print Post  
No the simple #include <eeprom.h> didn't work
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #11 - Nov 23rd, 2023 at 3:41pm
Print Post  
Can you attach a log where the #include <EEPROM.h> is used, and also run Build > Clean Solution before building?

Do you have the same issue when using a simple sketch and just including the eeprom.h?
  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #12 - Nov 23rd, 2023 at 3:45pm
Print Post  
Here it is
  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: EEPROM ESP32
Reply #13 - Nov 23rd, 2023 at 4:04pm
Print Post  
You have misspelled the header in the latest log, it has two EE's in it i.e. #include <EEPROM.h> 

If this also fails can you also attach the fresh log, and the local board.txt file?
« Last Edit: Nov 23rd, 2023 at 4:06pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 68
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: EEPROM ESP32
Reply #14 - Nov 23rd, 2023 at 4:23pm
Print Post  
Oups,  I had a mistake in the last compile, but for the other is was Ok,  My problem I think I didn't make a full rebuild after adding the EEPROM library.

Excuse me for all this disturbing for a mistake on my side,.....

Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint