lhm0
December 6, 2024, 11:48am
1
I would like to test Bill Geiman’s latest beta of SdFat on my Raspberry pi pico (GitHub - greiman/SdFat-beta: Beta SdFat for test of new features ).
How can I include this version instead of the released version of SdFat, which is part of the standard package? Just adding
lib_deps = https://github.com/greiman/SdFat-beta
to platform.ini does not seem to work.
What error message are you getting? Inclusion of the library works just fine for me, but it needs the Arduino-Pico core.
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico ; Earle Philhower Arduino-Pico core
framework = arduino
lib_deps = https://github.com/greiman/SdFat-beta
Note that you do need to follow the documentation if you’re using Windows.
Compiling the https://github.com/greiman/SdFat-beta/blob/master/examples/Rp2040SdioSetup/Rp2040SdioSetup.ino example:
Processing pico_regular (board: rpipico; platform: raspberrypi; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/raspberrypi/rpipico.html
PLATFORM: Raspberry Pi RP2040 (1.14.0+sha.07cea2c) > Pico
HARDWARE: RP2040 133MHz, 256KB RAM, 2MB Flash
DEBUG: Current (cmsis-dap) External (blackmagic, cmsis-dap, jlink, picoprobe, raspberrypi-swd)
PACKAGES:
- framework-arduinopico @ 1.40300.0+sha.e16c459
- tool-picotool-rp2040-earlephilhower @ 5.140200.240929 (14.2.0)
- toolchain-rp2040-earlephilhower @ 5.140200.240929 (14.2.0)
Flash size: 2.00MB
Sketch size: 2.00MB
Filesystem size: 0.00MB
PSRAM size: 0.00MB
Maximium Sketch size: 2093056 EEPROM start: 0x101ff000 Filesystem start: 0x101ff000 Filesystem end: 0x101ff000
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 68 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SdFat @ 2.3.0-beta.1+sha.a42f6a7
Building in release mode
Compiling .pio\build\pico_regular\FrameworkArduinoBootloader\boot2_w25q080_2_padded_checksum.S.o
Compiling .pio\build\pico_regular\src\main.cpp.o
Generating linkerscript C:\Users\Max\temp\rp2350_arduino\.pio\build\pico_regular/memmap_default.ld
Compiling .pio\build\pico_regular\lib6cd\SPI\SPI.cpp.o
Compiling .pio\build\pico_regular\libb69\SdFat\ExFatLib\ExFatDbg.cpp.o
..
Archiving .pio\build\pico_regular\libFrameworkArduino.a
Indexing .pio\build\pico_regular\libFrameworkArduino.a
Linking .pio\build\pico_regular\firmware.elf
Generating UF2 image
picotool uf2 convert -t elf ".pio\build\pico_regular\firmware.elf" ".pio\build\pico_regular\firmware.uf2"
Retrieving maximum program size .pio\build\pico_regular\firmware.elf
Flash size: 2.00MB
Sketch size: 2.00MB
Filesystem size: 0.00MB
PSRAM size: 0.00MB
Maximium Sketch size: 2093056 EEPROM start: 0x101ff000 Filesystem start: 0x101ff000 Filesystem end: 0x101ff000
Checking size .pio\build\pico_regular\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.8% (used 12652 bytes from 262144 bytes)
Flash: [ ] 4.1% (used 86272 bytes from 2093056 bytes)
Building .pio\build\pico_regular\firmware.bin
Building .pio\build\pico_regular\firmware.bin.signed
======================= [SUCCESS] Took 18.19 seconds =======================
lhm0
December 6, 2024, 12:05pm
3
Thank you for the super fast reply.
I had “platform = raspberrypi” in my platformio.ini. When I replaced it with platform = https://github.com/maxgerhardt/platform-raspberrypi.git
it worked well.
PROBLEM SOLVED.
Thank you very much
Ludwin
1 Like