Skip to content

Conversation

@martinling
Copy link
Member

The original 8Mbit/1MB SPI flash size is hardcoded in the firmware, libhackrf and hackrf_spiflash, which prevents use of the rest of the 32Mbit/4MB flash on Praline.

This PR does the following:

  1. Makes the firmware aware of the increased num_pages and num_bytes when built with PRALINE defined.
  2. Makes hackrf_spiflash check the board ID, and apply a 4MB rather than 1MB limit for BOARD_ID_PRALINE.
  3. Updates the argument range checks in libhackrf to fail only if (address + length) > 0x400000.

I have gone for the simplest set of changes here rather than trying to generalise to any future hardware.

@mossmann mossmann self-requested a review January 27, 2026 17:52
Copy link
Member

@mossmann mossmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you!

@mossmann mossmann merged commit 3ffda68 into greatscottgadgets:main Jan 30, 2026
41 checks 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