Open JoeEarlam opened 1 year ago
Hello, I tried to reproduce the issue, I installed the 2.6.2 package with RP2040 boards:
I opened the basic_usage.ino example and selected Adafruit RP2040:
I tried to compile it and it finished successfully (I tried both: with and without CSV_PARSER_DONT_IMPORT_SD definition). My Arduino version is 1.8.19 (not sure if it makes much difference).
Are you using the same RP2040 boards package as I tried? Which board are you using?
Hi, I'm using the same board package with a standard Pi Pico. I am however using IDE 2.0.0.
On Thu, 27 Oct 2022, 16:51 Michal Borowski, @.***> wrote:
Hello, I tried to reproduce the issue, I installed the 2.6.2 package with RP2040 boards:
[image: image] https://user-images.githubusercontent.com/16074078/198336500-da6923e9-1c38-4543-88ed-e8bd1f4d83f0.png
I opened the basic_usage.ino example and selected Adafruit RP2040:
[image: image] https://user-images.githubusercontent.com/16074078/198337241-a4552606-de94-41b6-9618-c530fab4ca0e.png
I tried to compile it and it finished successfully (I tried both: with and without CSV_PARSER_DONT_IMPORT_SD definition). My Arduino version is 1.8.19 (not sure if it makes much difference).
Are you using the same RP2040 boards package as I tried? Which board are you using?
— Reply to this email directly, view it on GitHub https://github.com/michalmonday/CSV-Parser-for-Arduino/issues/16#issuecomment-1293738585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFI72UNSZ2BFAGB5OAKKQLWFKQJDANCNFSM6AAAAAARQDG754 . You are receiving this because you authored the thread.Message ID: @.***>
I just tried Arduino 2.0.1, using Pi Pico and it still compiled well, it shows some warnings too but completes in the end.
Could you check the version of CSV parser you have? (I have 1.0.0)
Btw I think this part of output may be indicating the issue here:
Multiple libraries were found for "SdFat.h" Used: /home/jearlam/Arduino/libraries/SdFat Not used: /home/jearlam/.arduino15/packages/rp2040/hardware/rp2040/2.6.2/libraries/ESP8266SdFat Multiple libraries were found for "SD.h" Used: /home/jearlam/.arduino15/packages/rp2040/hardware/rp2040/2.6.2/libraries/SD Not used: /home/jearlam/.arduino15/libraries/SD Not used: /home/jearlam/Arduino/libraries/SD
These are SD libraries displayed in my library manager after searching "sd" and selecting "data storage" topic:
I don't know how to fix this problem to be honest...
I deleted the SDfat library and it now compiles correctly. Also, if I add #define CSV_PARSER_DONT_IMPORT_SD to the library's .cpp file it compiles correctly, even with the SDfat library installed. Doing some reading it turns out that Arduino IDE doesn't support this behaviour of passing defines to libraries on compilation.
Maybe the best thing to do here is to split the SD functionality into a separate header file, which can be included if required?
Hi there! Using the basic_usage example, compilation fails with an RP2040 chip as the target (even with CSV_PARSER_DONT_IMPORT_SD defined).
Is this an issue with the library, or an incomplete/incompatible implementation of SD on the RP2040?
Thanks!