Closed efpe closed 2 years ago
Hi @efpe
Thanks for your interest in the library and your best try so far.
I'm sorry but the library is designed mainly for Arduino IDE, where PIO requires much more knowledge and skills to understand and manually modify and change the settings and might not good for you yet. I don't have time to spend on your PIO issue and it's better that you ask for help in PIO forum.
Good Luck,
Hey @khoih-prog,
Thanks for getting back. I'll try my luck on the PIO forum and update this issue when I have something.
Also check if there is some bug in PIO, similar to Compile issue for RP2040 Connect #11.
Many users as well as I'd appreciate if you'd post the issue on PIO forum and update the solution here as well.
Hi @efpe
Please check
and update to the latest releases of libraries.
These libraries are updated recently to fix the crashing bug happening to a board with cleared flash
or discussed in your PIO forum RP2040 Connect + PlatformIO + RP2040_RTC build failure
All the fixes started thanks to your initial issue, so don't hesitate to report any issue next time.
Great :) Many thanks to everyone involved.
Describe the bug
First of all, I am pretty new to electronics and the whole world of microcontrollers, please let me know if I should open a topic / bug report with PlatformIO. It is probably my lack of knowledge :)
I am trying to run the WifiNINA example from Platform.IO IDE (vscode) and from the Arduino ide, the latter succeeds while the former fails. I looked at the verbose build output for more than an hour and could not figure out where things go south.
The error seems to be the lack of definition of the struct
datetime_t
(RP2040_RTC.h uses it). However, this is defined in the pico-sdk (please correct me if I'm wrong) along with other types (like uint, etc).If I try to create the struct by hand the compiler says there's a conflicting declaration of said struct.
I tried to build the same code with the Arduino IDE (1.8.15) using the same example and it works like a charm. The Arduino ide uses a newer version of the Arduino MBED core (2.5.2) but even after downgrading it to the same version what PlarformIO uses (2.4.1) everything works.
Please let me know if I forgot something out and many thanks for the help!
Steps to Reproduce
[env:nanorp2040connect] platform = raspberrypi board = nanorp2040connect framework = arduino upload_port = /dev/cu.usbmodem145201 ; change this to yours lib_ldf_mode = deep+ lib_compat_mode = off ; I had to turn this off to be able to install RP2040_RTC (see platforms in library.json) lib_deps = paulstoffregen/Time@^1.6.1 khoih-prog/WiFiNINA_Generic@^1.8.13 khoih-prog/RP2040_RTC@^1.0.5 khoih-prog/Timezone_Generic@^1.7.1
Additional context
Log output