8000 [Q] Is the compile option -DSDFAT_FILE_TYPE=3 predefined? · Issue #2772 · earlephilhower/arduino-pico · GitHub
[go: up one dir, main page]

Skip to content
[Q] Is the compile option -DSDFAT_FILE_TYPE=3 predefined? #2772
@guidol70

Description

@guidol70

As I do compile for the Pico RunCPM normal with
SDFAT_FILE_TYPE 1
for using File32 from SdFat

[EDIT]
BUT Line 117 of the platform.txt defines:

build.sdfatdefines=-DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC -DUSE_UTF8_LONG_NAMES=1 -DSDFAT_FILE_TYPE=3 -DDISABLE_FS_H_WARNING=1

I do get a predefined warning since the last RP2040-Cores (sure 4.42 and maybe 4.41):

Generating function prototypes...

in this and following command is included -DSDFAT_FILE_TYPE=3:

"C:\\Users\\guido\\AppData\\Local\\Arduino15\\packages\\rp2040\\tools\\pqt-gcc\\4.0.1-8ec9d6f/bin/arm-none-eabi-g++" -I "C:\\Users\\guido\\AppData\\Local\\Temp\\arduino_build_685133/core" -c -Werror=return-type -Wno-psabi -DUSBD_PID=0x000f -DUSBD_VID=0x2e8a -DUSBD_MAX_POWER_MA=250 "-DUSB_MANUFACTURER=\"Raspberry Pi\"" "-DUSB_PRODUCT=\"Pico 2\"" -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC -DUSE_UTF8_LONG_NAMES=1 -DSDFAT_FILE_TYPE=3 -DDISABLE_FS_H_WARNING=1 "-DARDUINO_VARIANT=\"rpipico2\"" -DPICO_FLASH_SIZE_BYTES=4194304 

C:\Users\guido\Desktop\RunCPM_v6_7\RunCPM_v6_7_Pico2_300Mhz_Internal-64k_22012025\RunCPM_v6_7_Pico2_300Mhz_Internal-64k_22012025.ino:28:9: warning: "SDFAT_FILE_TYPE" redefined
   28 | #define SDFAT_FILE_TYPE 1           // Uncomment for Due, Teensy or RPi Pico
      |         ^~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
Compiling libraries...
Compiling library "SPI"

Normally I had only to change for the Pico the SDFAT_FILE_TYPE in SdFatConfig.h
(other boards (non avr) from 3 to 1)

With my predefine to 1 before inlcuding SdFat.h my RunCPM worls, because with the setting 3
RunCPM wont compile and 3 doesnt support the File32 option :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0