Skip to content

Giga Support #47

@dansiviter

Description

@dansiviter

Like the Portenta and Opta's, Giga is mBed based and has both USB and QSPI storage capabilities. Arduino_USBHostMbed5 already supports the Giga.

Activity

dansiviter

dansiviter commented on Jun 5, 2024

@dansiviter
Author
Vidbuf

Vidbuf commented on Mar 29, 2025

@Vidbuf

This seems like an excellent solution and I was hoping I could use it on a GIGA WiFi too.... just a note here to say there's definitely interest in GIGA compatibility.

BikMe

BikMe commented on Apr 8, 2025

@BikMe

HI, I recently modified some files in Arduino_PosixStorage library and Arduino_UnifiedStorage to be compatible with giga board and seems that works ( tested with exemple SimpleStorageWriteRead.ino ->it works, however, I tested with Logger.ino but not working because issue with SDMMCBlockDevice() library -> I guess). any interest in sharing this in order to contribute or how can I do this ?

Vidbuf

Vidbuf commented on Apr 10, 2025

@Vidbuf

I happened to look at the Logger code this morning and it seems to use the Internal Storage and USB. I didn't see it needing the SD card???

In any case I got everything to compile for the GIGA too. I moved the Portenta SD library into my library folder to satisfy the SDMMC dependencies. But I don't have an SD reader so I haven't tested that yet.

It sure would be great if there were an official release of this for the GIGA too.

BikMe

BikMe commented on Apr 13, 2025

@BikMe

Hi,
some instructions to share to implement this library on Giga board

  1. copy from packages/arduino/hardware/mbed_portenta/4.2.4/libraries <Portenta_SDCARD>
    into your /arduino/hardware/mbed_giga/4.2.2/libraries
  2. in library.properties file add "mbed_giga" at line architectures= for the followings 3 libraries:
    Arduino_PosixStorage, Arduino_UnifiedStorage, and SDMMCBlockDevice is compatible with Giga board
    architectures=renesas_portenta,mbed_portenta,mbed_opta,mbed_giga
    to prevent IDE's library incompatibility message
  3. modifiy Arduino_PosixStorage.h, Arduino_PosixStorage.cpp and Board.h in adding Giga related keywords
    I share my modifed files

Arduino_POSIXStorage.cpp.txt

Arduino_POSIXStorage.h.txt

Boards.h.txt
Note: I don't know how to by-pass SDMMC dependencies checks, I also did'nt test internal storage but seems that Logger.ino works. Note: I don't know how to by-pass SDMMC dependencies checks, I also did'nt test internal storage but seems that Logger.ino works.
I hope that Arduino would upgrade this for Giga too ;-)

  1. try to compile several exemples, here's mine, it works but:
    seems that begin() function dosen't work ouside setup() routine I tried to call begin() function but it dosen't work
    anyone as an idea?
    Note: I don't know how to by-pass SDMMC dependencies checks, I also did'nt test internal storage but seems that Logger.ino works.

exemple_Giga_USBCallbacks.ino.txt
thanks for any feedback

Vidbuf

Vidbuf commented on Apr 13, 2025

@Vidbuf

I've also been testing my very similar port to the GIGA. I noticed if the InternalStorage class encounters an error during initialization outside of the Setup function it blocks and hangs the whole sketch. In my case I had the fourth partition already set up as TDBS to store my KeyValue settings (without a file system) and the InternalStorage class output a nice error message if I instantiated it in the Setup function, but if I instantiated it as a global then it just hung my whole sketch. After repartitioning my FLASH (eliminating the TDBS partition) I can instantiate InternalStorage globally OK. So it's a bit touchy about handling unexpected situations gracefully....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dansiviter@per1234@Vidbuf@BikMe

        Issue actions

          Giga Support · Issue #47 · arduino-libraries/Arduino_UnifiedStorage