kbeckmann / PicoCart64

N64 development cart using a Raspberry Pi RP2040
BSD 2-Clause "Simplified" License
778 stars 44 forks source link

[WiFi] Add server solution to push out ROMs to carts #23

Closed kbeckmann closed 11 months ago

kbeckmann commented 2 years ago

Let the cart connect to the user's wifi, then connect to a server (either local or on the internet maybe?), then let the user control the server to push out a ROM file on demand.

clktmr commented 1 year ago

Will it be possible to access the Wifi module from the ROM, i.e. develop multiplayer games?

kbeckmann commented 1 year ago

As of now, v2 is scrapped. I'm working on adding wifi support to v1 lite with a pico-w. It should be possible yes but there is no API yet.

clktmr commented 1 year ago

Will the Picos SPI be memory mapped on the PI bus? Or how will this work?

kbeckmann commented 1 year ago

Yes this is how it works today - the N64 binary / ROM is stored on the pico's external spi flash. When there are PI read requests in the ROM address range, it will load data from the external flash (with or without compression). See https://github.com/kbeckmann/PicoCart64/blob/develop/sw/picocart64_v1/n64_pi_task.c#L91-L118