jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.46k stars 367 forks source link

EEPROM.h: No such file or directory #1023

Closed inesMatellano closed 4 months ago

inesMatellano commented 5 months ago

Good morning, I'm trying to use the library for my Arduino Nano RP2040 and RFM95, but when I try to run it, it says: fatal error: EEPROM.h: No such file or directory #include . In the documentation, it stated that the library was compatible with the system. My question is, do I need to make any modifications to the library or create an EEPROM.h emulator? PD: Sorry if this question has already been answered, I couldn't find it.

Sketch that is causing the module fail fatal error: EEPROM.h

Additional info (please complete):

jgromes commented 5 months ago

This was caused by EEPROM being required for LoRaWAN. That is no longer the case after recent changes (mainly #1017) that will be released in 6.5.0 update. In the meantime, you can use the current master.

However, there is also an alterantive RP2040 Arduino core that does include EEPROM library: https://github.com/earlephilhower/arduino-pico

inesMatellano commented 5 months ago

Thank you for the response! I have found that there is a definition called RADIOLIB_EEPROM_UNSUPPORTED. Can I use this definition to create a LoRaWAN OTAA?

jgromes commented 5 months ago

there is a definition called RADIOLIB_EEPROM_UNSUPPORTED

It was removed in the pull request I linked above. As I wrote, this will be released in the coming days as update 6.5.0. If you cannot wait, you can download the current master, with the caveat that it is still being tested and bugfixed prior to the release.

Can I use this definition to create a LoRaWAN OTAA?

I do not understand what you mean by that.

inesMatellano commented 5 months ago

Thanks! i will wait for the update

HeadBoffin commented 5 months ago

Note to @HeadBoffin, do persistence for RP2040

StevenCellist commented 4 months ago

Moved to https://github.com/radiolib-org/radiolib-persistence/issues/2