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

PICO_FLASH_SIZE_BYTES #91

Open
fhoedemakers opened this issue Mar 26, 2023 · 1 comment
Open

PICO_FLASH_SIZE_BYTES #91

fhoedemakers opened this issue Mar 26, 2023 · 1 comment

Comments

@fhoedemakers
Copy link

fhoedemakers commented Mar 26, 2023

This PICO_FLASH_SIZE_BYTES definition still returns 2MB as the total amount of flash. Is this correct? Will this prevent flashing above 2MB when using flash_range_erase and flash_range_program in C++?

@Gadgetoid
Copy link
Member

Will correct this in #84

Causes some problems with how we try to ship examples with MicroPython - ends up with a 32MB .uf2 - that I still need to solve.

But yes it does affect flash erase and program - https://github.com/raspberrypi/pico-sdk/blob/f396d05f8252d4670d4ea05c8b7ac938ef0cd381/src/rp2_common/hardware_flash/flash.c#L64

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

No branches or pull requests

2 participants