Skip to content

wide/sca: Support upper bits + minor bug fixes - #391

Merged
erichelgeson merged 3 commits into
mainfrom
eric/wide-ids
Aug 15, 2026
Merged

wide/sca: Support upper bits + minor bug fixes#391
erichelgeson merged 3 commits into
mainfrom
eric/wide-ids

Conversation

@erichelgeson

Copy link
Copy Markdown
Contributor

Draft till test a few more machines, land on BlueSCSI Toolbox approach.

@erichelgeson
erichelgeson requested a review from androda July 15, 2026 02:19
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Test this PR

Flash the firmware built from c3bde11: BlueSCSI binaries.zip

Must be signed in to GitHub. Build expires after 90 days.

BlueSCSI Memory Report

Compared against release v2026.04.27

Memory Usage

Target FLASH RAM SCRATCH_X SCRATCH_Y
Pico_2_Audio_SPDIF 685.5 KB (+10.7 KB) [33%] 511.7 KB [100%] 3.5 KB [88%] 3.8 KB [94%]
Pico_2_DaynaPORT 677.8 KB (+10.7 KB) [33%] 511.7 KB [100%] 3.5 KB [88%] 3.0 KB [75%]
Pico_Audio_SPDIF 708.3 KB (+11.9 KB) [35%] 252.5 KB [99%] 1.5 KB [38%] 768 B [19%]
Pico_DaynaPORT 700.1 KB (+12.0 KB) [34%] 246.2 KB [96%] 1.5 KB [38%]
Ultra 695.2 KB (+11.1 KB) [34%] 511.7 KB [100%] 3.5 KB [88%] 3.0 KB [75%]
Ultra_Wide 454.0 KB (+9.9 KB) [22%] 511.7 KB [100%] 2.0 KB [50%] 3.0 KB [75%]

Symbol Region Changes

Pico_Audio_SPDIF: 2 symbols moved RAM → FLASH (-504 B RAM)
Symbol Size
platform_network_wifi_join 408 B
scsiDiskFolderIsTapeFolder(FsFile*) 96 B
Pico_DaynaPORT: 2 symbols moved RAM → FLASH (-504 B RAM)
Symbol Size
platform_network_wifi_join 408 B
scsiDiskFolderIsTapeFolder(FsFile*) 96 B

Comment thread lib/BlueSCSI_platform_RP2MCU/BlueSCSI_platform.cpp
Two bugs on the SCA:

- With no images found, the RAW fallback resolved the strapped SCA ID
  into fallback_id for initDevice() but then opened the raw disk on the
  hard-coded RAW_FALLBACK_SCSI_ID, so the drive appeared on the wrong ID
  with another ID's settings. Open on the resolved fallback_id.

- check_is_sca_model() latched is_sca_proto as soon as the write to the
  prototype I2C address succeeded, even when the following read failed
  and the probe returned false. Later flag reads would then address the
  prototype chip on a board that never answered as one. Latch only after
  the chip actually responds.
@erichelgeson
erichelgeson marked this pull request as ready for review August 14, 2026 16:08
@flamelily

Copy link
Copy Markdown

Tested and works for me

@erichelgeson
erichelgeson merged commit 6b37393 into main Aug 15, 2026
1 check passed
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.

2 participants