Copy flash of Seeeduino XIAO to other Seeeduino XIAO over I2C

Hi guys,

I have a question about a problem of mine.

I want to copy the flash of a Seeeduino XIAO over to another Seeeduino XIAO via I2C bus. My project idea is to use TinyUSB to turn both Seeeduino XIAO into USB drives. When I save a file like a pdf on the first Seeeduino XIAO I want it to automatically move the file over the I2C bus to the other Seeeduino XIAO. There it should show up as a file in that USB drive.

I know that the USB-drive saves its information on the onboard flash, but I don’t quite know how to send it over the I2C bus to the other Seeeduino XIAO.

I would need to programm in the Arduino IED to access of flash memory as string bit by bit or line by line and send these bits over the I2C bus to the slave Seeeduino XIAO and there it would rebuild the file bit by bit. But I don’t quite know how to write it in code yet.

Thank you for the helpfull answeres.

The speed of I2C is very slow. I’m not sure if this is an obstacle to your idea.

Yes, I read that, too. I was thinking about using SPI instead.