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 esp8266 stray '\' in code (Read 1884 times)
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
esp8266 stray '\' in code
Mar 14th, 2021 at 10:38pm
Print Post  
Using esp8266 Nodemcu.  using EEPROM library.
When I try to compile, I get the following:

DustCollectorTimerV2.ino: 78:1: error: stray '\' in program
   int eeprom_run_time = EEPROM.read(0)

Compiling the same code in the Arduino IDE does not get this error.

in eeprom.cpp the debug statements all have'\' in them like:
DEBUGV("EEPROMClass::read error, address %d > %d or %d < 0\n", address, _size, address);
« Last Edit: Mar 14th, 2021 at 10:47pm by Chris Molloy »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: esp8266 stray '\' in code
Reply #1 - Mar 15th, 2021 at 9:46am
Print Post  
Thanks for the report.

Can you please attach the build output with the Show Build Properties, and Verbose settings enabled (as shown at the top of this page).

If you can also email or attach the combined DustCollectorTimerV2.CPP file from the build directory so we can analyse this issue further?
  
Back to top
 
IP Logged
 
dominik
Newbies
*
Offline


Posts: 5
Joined: Dec 24th, 2012
Re: esp8266 stray '\' in code
Reply #2 - Aug 28th, 2021 at 7:24am
Print Post  
Hi !

Had the same issue ... My problem was a faulty file encoding. 
If you open the cpp file in Notepad++ look if the Encoding is UTF-8. 
In my case it was UTF-8-BOM which adds some special chars at the beginning of the file ... 

Maybe this is your problem, too ... 

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