Skip to content

Update the PewPew M4 board and circuitpython-stage #2423

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

Merged
merged 2 commits into from
Jan 1, 2020
Merged

Update the PewPew M4 board and circuitpython-stage #2423

merged 2 commits into from
Jan 1, 2020

Conversation

deshipu
Copy link

@deshipu deshipu commented Dec 23, 2019

PewPew M4 now has the pew.py added to its frozen libraries. Some
features needed to be disabled to make room for that.

PewPew M4 now has the pew.py added to its frozen libraries. Some
features needed to be disabled to make room for that.
ladyada
ladyada previously approved these changes Dec 23, 2019
@dhalbert
Copy link
Collaborator

dhalbert commented Jan 1, 2020

@deshipu Note that it is now a lot easier to adjust the size of the internal filesystem, the size of the nvm area, etc.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

👍

@dhalbert dhalbert merged commit 32b8203 into adafruit:master Jan 1, 2020
@deshipu
Copy link
Author

deshipu commented Jan 1, 2020

@deshipu Note that it is now a lot easier to adjust the size of the internal filesystem, the size of the nvm area, etc.

Oh, really? Is there documentation on that?

@dhalbert
Copy link
Collaborator

dhalbert commented Jan 1, 2020

It was part of #2371. See

#ifdef SAMD51
#ifndef CIRCUITPY_INTERNAL_NVM_SIZE
#define CIRCUITPY_INTERNAL_NVM_SIZE (8192)
#endif
#ifndef CIRCUITPY_DEFAULT_STACK_SIZE
#define CIRCUITPY_DEFAULT_STACK_SIZE (24*1024)
#endif
// If CIRCUITPY is internal, use half of flash for it.
#if INTERNAL_FLASH_FILESYSTEM
#ifndef CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (FLASH_SIZE/2)
#endif
#else
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (0)
#endif
#endif // SAMD51
, for SAMD51. So you can change these constants in your mpconfigboard.h. Note that changing the NVM size will move the filesystem, so the existing filesystem in internal flash will get trashed.

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.

3 participants