Repository navigation
Add the esp32s3-n8r2 firmware and the Adafruit MatrixPortal S3 #160
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
esp32/partitions/esp32dev_8mb_moonbase.csv → esp32/partitions/8mb_moonbase.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,9 @@ | ||
| # ESP32-C3: one RISC-V core at 160 MHz, 400 KB SRAM, no PSRAM, 4 MB flash, WiFi only. | ||
| # Append to sdkconfig.defaults (later fragment wins); the partition table comes from the moonbase-4mb fragment. | ||
| # Append to sdkconfig.defaults (later fragment wins); the flash size and partition table come from the moonbase-4mb fragment. | ||
|
|
||
| # 160 MHz is the C3's top speed, where the base fragment asks for the 240 of the other chips. | ||
| CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y | ||
|
|
||
| CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y | ||
|
|
||
| # MoonLive native codegen needs an executable heap, which ESP-IDF offers only with memory protection off: the same configuration as the S3 images. | ||
| CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=n | ||
| CONFIG_HEAP_HAS_EXEC_HEAP=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # ESP32-S3 with QUAD PSRAM: the S3-Zero (N4R2) and the N8R2 (the Adafruit MatrixPortal S3 carries one). | ||
| # Append to sdkconfig.defaults (later fragment wins); the flash size and partition table come from the | ||
| # moonbase-4mb or moonbase-8mb fragment layered on top. | ||
| # | ||
| # The N8R8/N16R8 images set SPIRAM_MODE_OCT, and an octal-mode binary does not merely under-perform on | ||
| # quad hardware, it fails PSRAM init at boot. Quad also leaves GPIO 35 to 37 free, which the MatrixPortal | ||
| # routes to HUB75 lines. | ||
|
|
||
| # Quad I/O flash reads, as on the N16R8, where reading code over two lines (DIO, the IDF default) cost 16% of the tick. | ||
| CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
|
|
||
| # PSRAM: 2 MB, QUAD mode. | ||
| CONFIG_SPIRAM=y | ||
| CONFIG_SPIRAM_MODE_QUAD=y | ||
| # At the 80 MHz the part is rated for rather than IDF's 40 MHz default. | ||
| CONFIG_SPIRAM_SPEED_80M=y | ||
|
|
||
| # MoonLive native codegen needs an executable heap (allocExec -> MALLOC_CAP_EXEC IRAM). | ||
| # MALLOC_CAP_EXEC is gated behind CONFIG_HEAP_HAS_EXEC_HEAP, which IDF disables whenever | ||
| # memory protection (PMP/PMS W^X) is on. A JIT fundamentally needs writable-then-executable | ||
| # memory, so disable memprot (which enables the exec heap). Same configuration as the other | ||
| # S3 images; safety for scripted code is the staged bounds/watchdog checks, not the | ||
| # hardware W^X wall. | ||
| CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=n | ||
| CONFIG_HEAP_HAS_EXEC_HEAP=y |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # MoonBase on an 8 MB board: the factory recovery image, ONE 3 MB app slot, and 4 MB of LittleFS. | ||
| # The flash size is set here because the table spans exactly that much. | ||
| CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y | ||
| CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions/8mb_moonbase.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.