plerup / espsoftwareserial

Implementation of the Arduino software serial for ESP8266
GNU Lesser General Public License v2.1
717 stars 270 forks source link

Fatal error: atomic: No such file or directory #323

Open AlbertHoevenaars opened 6 days ago

AlbertHoevenaars commented 6 days ago

Installed the latest ESPSoftware Serial library in the Arduino IDE Version: 2.3.3. I am using a ESP8266 processor. I have removed the standard SoftwareSerial library from the files under the ESP8266 files to prevent having twice the same library.

When I compile my software I got an error on the line "#include " atomic error

Is there a solution for the problem?

Thanks in advance

mjsneijders commented 5 days ago

while trying to read in to this library i notice your isse, and it seems to me, that you have your libraries mixed up.... the error you get comes from a header file in a folder circular_queue, and the library in this github does not have such a subfolder/header file... you might want to look into that.

looks like the circular queue library was moved out of the source tree with version 8.2 of the library, but it is uncertain where it went to...

AlbertHoevenaars commented 4 days ago

mjsneijders, thanks for the repley. I removed in the Arduino IDE the ESPSoftwareSerial libraries. Checked with the Windows explorer that the directory is gone. Then I installed the library ESPSoftwareSerial from Dirk Kaar. In the attached picture you can see in the installed library there is a directory called "circular_queue". When I look in the Github repostory at "https://github.com/plerup/espsoftwareserial/tree/main/src" then I don't see a circulair_queue directory. In the Softwareserial.h file there is still the line "#include " and that *.h file is not found. Don't understand what is going wrong. Screenshot 2024-10-01 131151

AlbertHoevenaars commented 4 days ago

When I run one of the example *.ino files I get the same error. "circular_queue.h No such file or directory"

Seems that I made a small step. Now I get an error message on the line "#include " -> No such file or directory. This is line 28 in the circular_queue.h file. I am now using version 8.0.3 from the EspSoftwreSerial

mjsneijders commented 4 days ago

must be some incompatibility somewhere.. it compiles for me, what i did: i installed latest arduino environment from the website... 2.3.3 i added the Esp32 boards from espressif. ( by adding https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to the additional board managers url in the arduino preferences, and then adding espressif esp32 boards in the board manager. i added esp32SoftwareSerial v 8.10 using the arduino library manager.
opened an example (onewiretest) from the EspSoftwareSerial examples and clicked "Verify"

this resulted in no errors.

mjsneijders commented 4 days ago

no errors

AlbertHoevenaars commented 3 days ago

After uninstalling and reinstalling the Arduino IDE I added the board manager URLs in the Preferences. Added the library ESPSoftwareSerial version 8.1.0. Opened the onewiretest.ino and compiling was successful. Don't know what was wrong, but its working now. mjsneijders thanks for the help!