Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge the RP2350 and the RP2040 base MCU platform libraries into a common library #467

Merged
merged 27 commits into from
Nov 4, 2024

Conversation

morio
Copy link
Collaborator

@morio morio commented Nov 2, 2024

This consolidates the RP2350 and RP2040 base MCU library code into a shared library ZuluSCSI_platform_RP2MCU.
It also updates the arduino-pico framework to the latest version with customizations for DaynaPORT and mass storage device support.

morio and others added 27 commits September 24, 2024 12:20
Bootloader works for Pico 2s. Putting a `zuluscsi.bin` file will now
update the firmware.
Also increased the SRAM size from the RP2040 to the RP2350 max size.
With the RP2350 at 150MHz, one clock cycle is 6.67 ns (150MHz) => delay 8.25 clocks or 9 clocks
.define REQ_DLY 9. Thanks, @morio
Moved the RP2040 and RP2350 to the same customized arduino pico
framework. That is compatible with both USB mass storage and the
DaynaPORT Pico W SPI pio Wifi interface.

Other changes include a base PlatformIO target that all RP builds
inherit from. This gets rid of a lot of repeated settings.

An unrelated change was the added the ability to set the timeout for USB
enumeration as sometimes RP devices take longer than second to enumerate
when on a USB hub. And adding both `EnableUSBMassStorage` and the new
`USBMassStorageWaitPeriod` to the example `zuluscsi.ini` file.
Since the arduino pico library and the pico-sdk automatically build
for either the RP2040 and RP23XX MCUs, both libraries have been merged
into `lib/ZuluSCSI_platform_RP2MCU` with `#if` type C macros for some of
the files and code snippets that are tied to the MCU. For example
RP's PIO assembly files, timing delays and clock dividers.
@aperezbios aperezbios merged commit 5c620ac into main Nov 4, 2024
2 checks passed
@aperezbios aperezbios deleted the feature/merge-rp2xxx-libs branch November 19, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants