Skip to content

Can't build with sdcard support #2

@eh

Description

@eh

Now that things seem to be working on my Pico2W I'm trying to make the examples available. I'm running into this when trying to build with sdcard support:

$ TARGET=pico2 BLOCKDEV=sdflash FS=fatfs make flash
tinygo flash -tags=fatfs,sdflash -target=pico2 -serial=uart -scheduler=tasks
# mattwach/rpngo/drivers/tinygo/tinyfs
../../../drivers/tinygo/tinyfs/sdflash.go:18:9: cannot use sd (variable of struct type sdcard.Device) as "tinygo.org/x/tinyfs".BlockDevice value in return statement: sdcard.Device does not implement "tinygo.org/x/tinyfs".BlockDevice (method EraseBlockSize has pointer receiver)
../../../drivers/tinygo/tinyfs/sdflash.go:18:13: undefined: err
make: *** [Makefile:9: flash] Error 1
$ TARGET=pico2 BLOCKDEV=sdflash FS=littlefs make flash
tinygo flash -tags=littlefs,sdflash -target=pico2 -serial=uart -scheduler=tasks
# mattwach/rpngo/drivers/tinygo/tinyfs
../../../drivers/tinygo/tinyfs/sdflash.go:18:9: cannot use sd (variable of struct type sdcard.Device) as "tinygo.org/x/tinyfs".BlockDevice value in return statement: sdcard.Device does not implement "tinygo.org/x/tinyfs".BlockDevice (method EraseBlockSize has pointer receiver)
../../../drivers/tinygo/tinyfs/sdflash.go:18:13: undefined: err
make: *** [Makefile:9: flash] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions