8000 [suggestion] make generic_spiram easier to compile · Issue #8482 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

[suggestion] make generic_spiram easier to compile #8482

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

Closed
street-grease-coder opened this issue Apr 3, 2022 · 1 comment
Closed

[suggestion] make generic_spiram easier to compile #8482

street-grease-coder opened this issue Apr 3, 2022 · 1 comment

Comments

@street-grease-coder
Copy link
street-grease-coder commented Apr 3, 2022

I tried to compile for generic_spiram and 16mb partition table but needed to follow the following guides/posts to make it work. This seems to be a problem that came up on some occasions in the past #6950

This post is merely to ask if it's easy for an expert to incorporate these changes when partitionsizes of 8 or 16mb are detected - to help noobs compile for the spiram board (which I would assume is typically bundled with larger partition sizes).

This is the guides & changes I followed:
#8202
russhughes/st7789_mpy#56
https://forum.micropython.org/viewtopic.php?f=18&t=9768&start=10

To make it work for 16MB do I do the following correctly?

  1. adjusted the partitions.csv file and made sure that the factory line in partitions.csv read factory, app, factory, 0x10000, 0x1f0000,
  2. added these three lines in sdkconfig.spiram:
    CONFIG_COMPILER_OPTIMIZATION_SIZE=y CONFIG_COMPILER_OPTIMIZATION_PERF=n CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
  3. used make make FLASH_SIZE?=16MB BOARD=GENERIC_SPIRAM

If this doesn't make sense in bigger context, please close

@dpgeorge
Copy link
Member

2. added these three lines in sdkconfig.spiram:
CONFIG_COMPILER_OPTIMIZATION_SIZE=y

See #8525, which should add this.

Providing builds for all possible flash sizes would really increase the number of boards. Maybe instead it's possible to auto detect the available flash at runtime?

tannewt pushed a commit to tannewt/circuitpython that referenced this issue Oct 17, 2023
…n-main

Translations update from Hosted Weblate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0