-
Notifications
You must be signed in to change notification settings - Fork 4
Cannot build with PlatformIO #1
Comments
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 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
pio lib install
.cp .pio/libdeps/nanorp2040connect/RP2040_RTC/examples/Time/RP2040_RTC_Time_WiFiNINA/RP2040_RTC_Time_WiFiNINA.ino src/main.cpp
cp .pio/libdeps/nanorp2040connect/RP2040_RTC/examples/Time/RP2040_RTC_Time_WiFiNINA/defines.h include/
define.h
pio run --target upload
--> build will failExpected behavior
Build to succeed and see logs in Serial output.
Actual behavior
See below.
Information
RP2040
Core Version: Arduino-mbed 2.4.1RP2040
Board type NANO_RP2040_CONNECTDarwin Viktors-MBP.localdomain 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
Additional context
Log output
The text was updated successfully, but these errors were encountered: