Pico Lipo 16MB, micropython only shows 7MB

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
nlhnwng
Posts: 2
Joined: Mon Nov 15, 2021 11:51 pm

Pico Lipo 16MB, micropython only shows 7MB

Post by nlhnwng » Tue Nov 16, 2021 12:04 am

Hi, I have a Pico Lipo 16MB and downloaded UF2 from:
https://micropython.org/download/PIMORO ... LIPO_16MB/

On checking the storage size on Thonny, it shows I only have 7MB when there should be 16MB of flash available.
I have tried all the available releases. What could cause this to happen and any ideas for how to solve?

tonygo
Posts: 10
Joined: Thu Apr 12, 2018 1:23 pm

Re: Pico Lipo 16MB, micropython only shows 7MB

Post by tonygo » Tue Nov 16, 2021 3:05 pm

I have the same problem and wonder what is going on.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Pico Lipo 16MB, micropython only shows 7MB

Post by Roberthh » Tue Nov 16, 2021 3:15 pm

Itis a wrong definition in the board files.
#define MICROPY_HW_BOARD_NAME "Pimoroni Pico LiPo 16MB"
#define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024)
It should be 15 * 1024 * 1024 to make use of a 16MByte flash device.
1 MB is reserved for the MicroPython code itself.

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: Pico Lipo 16MB, micropython only shows 7MB

Post by mcauser » Wed Nov 17, 2021 5:32 am

Was originally set to 7MB for a 8MB flash chip. Oops... it's a 16MB chip!

Updated to 15MB in:
https://github.com/micropython/micropython/pull/7997

nlhnwng
Posts: 2
Joined: Mon Nov 15, 2021 11:51 pm

Re: Pico Lipo 16MB, micropython only shows 7MB

Post by nlhnwng » Wed Nov 17, 2021 6:30 am

Roberthh wrote:
Tue Nov 16, 2021 3:15 pm
Itis a wrong definition in the board files.
#define MICROPY_HW_BOARD_NAME "Pimoroni Pico LiPo 16MB"
#define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024)
It should be 15 * 1024 * 1024 to make use of a 16MByte flash device.
1 MB is reserved for the MicroPython code itself.
Thanks Robert!

Post Reply