GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — zephyr-cp: build ulab, and let boards opt out by mikeysklar · Pull Request #11245 · adafruit/circuitpython Conversation
|
| build | flash |
|---|---|
main |
799136 B, 76.21% |
| this PR, ulab off | 799136 B, byte-identical to baseline |
| this PR, ulab on | 890168 B, 84.89%, +91032 B, 163 ulab sources |
Both opt-out boards were built locally to confirm they link, and the full CI matrix is green.
Not tested: importing ulab on hardware.
Build plumbing and two board opt-outs. No docs change.
Written with Claude Code. I ran the builds and compared the figures myself.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please do include some changes in the circuitpython.tomls to show how it looks.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
zephyr-cp builds without py/circuitpy_mpconfig.mk, so the ulab wiring every other port gets from py/py.mk does not exist here and ulab cannot be built at all. This adds the flags and sources the way py.mk does. ulab is on by default. Boards that cannot spare the flash set CIRCUITPY_ULAB = false in their circuitpython.toml, which nordic_nrf7002dk does here: it has under 3 KB of headroom before this change and ulab costs about 90 KB. Flash cost measured on silabs_siwx917_dk2605a: 799136 to 890168 bytes, 76.21% to 84.89% of 1 MB, with 163 ulab sources compiled. Headroom on the other zephyr-cp boards that report a flash figure is at least 135 KB, so nrf7002dk is the only one that has to opt out.
3b653fe to
b7cdd2f
Compare
|
Defaults on now, and bool() is gone, TOML gives a real bool. Added the opt-out to nordic_nrf7002dk to show how it looks. It is the only board that needs one. Flash headroom before ulab, from the last green run: ulab costs about 91 KB, measured on siwx917_dk2605a, 799136 to 890168 bytes. That is headroom from the logs rather than a build with ulab on, so CI on this push is the real check. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
CI caught this one. The STM32N6 has no internal user flash and executes from RAM, which is already 93% full at 486984 of 523264 bytes, so the roughly 90 KB ulab adds overflows it by 56520 bytes. My earlier headroom survey only looked at FLASH figures and this board reports none, so it was missing from it. Rechecked both regions for every board: this is the only other one that cannot fit, and nordic_nrf7002dk stays out on flash.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.