Commit graph

8 commits

Author SHA1 Message Date
Matt Evans
454cf94d1e Update README with SD card configuration/construction 2024-08-27 02:45:17 +01:00
Matt Evans
67cb1741c6 Add support for boot/disc storage on SD card
Uses the no-OS-FatFS-SD-SPI-RPi-Pico library, and on startup opens
the fs to search for 'umac0.img' or 'umac0ro.img'.  If the former
is found, it's used as a RW image; the latter is RO.  If no images
are found, the code falls back to an in-flash disc image; you can
set up a default that's used if no SD card is inserted, for example.

The wiring defaults to GPIOs 2/3/4/5 for SCK/TX/RX/CS respectively,
which matches the upper-left SPI0 on the Pico board.  The wiring
can be overridden by defining SD_TX, SD_RX, SD_SCK, SD_CS on the
`cmake` build commandline.

The SPI speed defaults to a very conservative 5MHz (at least one of
my cards will only cope with this).  Again, this can be overridden
by defining SD_MHZ on the commandline (to an integer in units of MHz).

Note this also disables the RTC portion of FatFS when building
for RP2350 (which doesn't have an RTC, or APIs for it).
2024-08-27 02:45:17 +01:00
Matt Evans
cd92bf8ffb Add MEMSIZE build option
This is plumbed through to the UMAC_MEMSIZE build parameter,
and allows the default of 128KB to be overridden (for instance,
to make a "Mac 208K").
2024-08-27 02:45:17 +01:00
Matt Evans
bc633edc1d Bump external/umac to v0.21
The new umac work brings in disc RW support, OS 7, memory size control, etc.

These hooks will be used for SD card storage, and to support "odd" memory
sizes, e.g. making a Mac 208K.
2024-08-27 02:45:17 +01:00
Matt Evans
2f65dae641 Add no-OS-FatFS-SD-SPI-RPi-Pico subproject
This library will provide SD access.  Add submodule.
2024-08-27 02:45:17 +01:00
Matt Evans
7a0327370e Add missing headers
In video, include padsbank header
In main, add clocks header

These seem to be needed on SDK v2...
2024-08-22 21:56:36 +01:00
Eric Helgeson
8288297414 Fix Markdown so it formats the indented list correctly 2024-07-07 21:14:04 +01:00
Matt Evans
bd30ffe141 Initial release
Squashed, from v0.1
2024-06-15 21:29:07 +01:00