Do I need to recompile MicroPython for 16MB flash chip?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
martincho
Posts: 96
Joined: Mon May 16, 2022 9:59 pm

Do I need to recompile MicroPython for 16MB flash chip?

Post by martincho » Thu Jul 07, 2022 2:49 am

RP2040.

We have a bunch of custom boards arriving next week. I think I remember reading somewhere that you have to recompile MicroPython if you change from the stock 2 MB flash chip. I put a 16 MB chip (W25Q128JVS) on these boards. Don't need the storage for MicroPython at all, 2MB is fine. This is there more for a future application that is likely to be written in C.

If I do have to recompile, any guidance on what might be needed to support this chip?

Thanks.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Do I need to recompile MicroPython for 16MB flash chip?

Post by jimmo » Thu Jul 07, 2022 2:52 am

Fairly sure no recompile necessary if you don't plan to use anything past the first 2MiB.

You'd need to recompile to set a new filesystem size limit if you did want to grow the filesystem.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Do I need to recompile MicroPython for 16MB flash chip?

Post by davef » Thu Jul 07, 2022 3:34 am

Seen this?
viewtopic.php?f=18&t=9768&p=54711&hilit ... 8mb#p54711
Maybe, it gives a clue to the process.

martincho
Posts: 96
Joined: Mon May 16, 2022 9:59 pm

Re: Do I need to recompile MicroPython for 16MB flash chip?

Post by martincho » Thu Jul 07, 2022 4:43 am

jimmo wrote:
Thu Jul 07, 2022 2:52 am
Fairly sure no recompile necessary if you don't plan to use anything past the first 2MiB.

You'd need to recompile to set a new filesystem size limit if you did want to grow the filesystem.
Yeah, not for this application. I guess I'll find out in a few days. I'll report back with my findings.

martincho
Posts: 96
Joined: Mon May 16, 2022 9:59 pm

Re: Do I need to recompile MicroPython for 16MB flash chip?

Post by martincho » Thu Jul 07, 2022 4:44 am

davef wrote:
Thu Jul 07, 2022 3:34 am
Seen this?
viewtopic.php?f=18&t=9768&p=54711&hilit ... 8mb#p54711
Maybe, it gives a clue to the process.
That looks useful. Thanks.

martincho
Posts: 96
Joined: Mon May 16, 2022 9:59 pm

Re: Do I need to recompile MicroPython for 16MB flash chip?

Post by martincho » Sun Jul 10, 2022 7:27 am

Boards in hand now.

Nope, did not have to recompile. Of course the MicroPython file system is still sized for a 2 MB flash chip despite the installed device being 16 MB, but that's OK in this case.

Post Reply