Hello, Im not sure if this is the correct thread but has anyone experienced missing libraries related to the Uno R4 wifi?
I updated the Uno R4 wifi core from 1.0.2 to 1.0.4 and noticed that all of the R4 libraries had disappeared. I uninstalled and then reinstalled IDE 2.2.1 only to have the libraries appear and then disappear again.
I then uninstalled the R4 from the Boards manager and reinstalled but still no R4 related Libraries in the Arduino Libraries folder.
I downloaded the renesas files from GitHub and manually dragged the libraries into Arduino Libraries folder . The examples showed up and the R4 is recognized on port 8 but the scanNetwork example sketches wont compile.
I am using 2.2.1 IDE on Windows 10 Home. Any suggestions? Thanks!
When we install a library via the Arduino IDE Library Manager or Arduino IDE's "Add .ZIP Library..." feature, they are installed to the libraries subfolder of the sketchbook folder. But it is also possible for the developers of Arduino boards platforms such as the "Arduino UNO R4 Boards" platform of the UNO R4 WiFi to bundle libraries with the platform. These libraries are installed and updated along with the platform via the Arduino IDE Boards Manager instead of Library Manager. They are installed to a completely separate location so it is expected that you won't find them under the libraries subfolder of your sketchbook folder.
This is generally a bad idea. You should only do that if you understand the risks and have a very good technical reason for putting the library in that folder. If you don't understand it or don't have a good reason then I recommend you delete those libraries you installed.
These libraries are bundled with the platform rather than distributed via Library Manager because they are very specific to the architecture of the UNO R4 boards. The "platform bundled" libraries are generally not usable with boards of other platforms. When bundled with a platform, the libraries are only accessible when you have on of that platform's boards selected in the IDE. Conversely, the libraries installed under the libraries subfolder of the sketchbook folder are accessible no matter which board is selected in Arduino IDE. This means that when you install the libraries there, they might end up getting selected when compiling for incompatible boards, resulting in confusing errors.
If a given library is installed to the libraries subfolder of the sketchbook folder and also bundled with the platform, the one in the sketchbook folder will be chosen when compiling. Since the library in the sketchbook is not in Library Manager, you won't receive any updates for it, but the one bundled with the platform will be updated along with the platform by Boards Manager. This means you will end up using an outdated version of the library that might be missing important fixes or enhancements or even become incompatible with the newer versions of the platform.
It is generally best to create a dedicated topic when requesting assistance here on the forum. If you do decide it should be added to an existing topic instead, make sure it is perfectly on topic rather than only vaguely related to the subject matter.
This is good to know and would explain why the R4 libraries such as wiFis3 do not show up in the Arduino>Libraries folder. I have deleted the Arduino folder and IDE2.2.1 and reinstalled.
The reason I was trying to get the libraries into the Arduino folder was that after I updated the R4 core from 1.0.2 to 1.0.4, the examples that came with the R4 no longer show up in the File>Examples menu. The R4 board is selected and recognized on port 8. I assumed, incorrectly... that the missing examples were because I did not see the libraries in the Arduino folder.
Any thoughts on why the examples for the R4 do not populate? All of the built in examples show up as well as other third party libraries such as neopixel that I use for the MEGA but none of the examples that showed up when I first installed the R4 core 1.0.2.
Here's an odd wrinkle...Before I updated the R4 core, I had been working on a sketch that was based on the WiFiUdpSendReceiveString example that came with the R4 core1.0.2 install. It was working consistently receiving Udp from a wireless BrightSign over a network wifi router.
Once I updated the R4 core to 1.0.4 as prompted, the examples for the R4 disappeared.
This is the only project Ive been working on so when I launch Adruino IDE2.2.1, the sketch I have been working on is the one that pops up...and the examples for the R4 do not populate.
Here's the wrinkle... I just started a new blank sketch to try out some code and BAM! all the R4 examples populate. I opened the sketch I started before...no examples. Both sketches are open, The R4 is recognized and on selected port. When I click on the old sketch window, no examples...when I click on the new sketch window, there are the examples! weird,huh?
So I will just copy the UDPSendReceive sketch i created and paste in a new file. That seems to have resolved the issue. Thanks!