Skip to content

enable psram on emery/gabbro - #1602

Closed
devsnek wants to merge 1 commit into
coredevices:mainfrom
devsnek:psram
Closed

enable psram on emery/gabbro#1602
devsnek wants to merge 1 commit into
coredevices:mainfrom
devsnek:psram

Conversation

@devsnek

@devsnek devsnek commented Jun 24, 2026

Copy link
Copy Markdown

only tested on emulator so far (coredevices/qemu#6). hardware init is mostly copy/paste from sifli.

Signed-off-by: snek <the@snek.dev>
@devsnek
devsnek requested review from gmarull and jplexer as code owners June 24, 2026 09:33

@gmarull gmarull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We're not going to enable PSRAM just for the sake of enabling it. As of today, it has no usage on the system, and yet it consumes some power by just being on.

@gmarull gmarull closed this Jun 24, 2026
@devsnek

devsnek commented Jun 24, 2026

Copy link
Copy Markdown
Author

@gmarull I would have been happy to discuss other approaches as well, for example only enabling psram if an app requests it. I don't think just closing a PR like this is a very appropriate behavior for a project seeking open source contributions.

@gmarull

gmarull commented Jun 24, 2026

Copy link
Copy Markdown
Member

@gmarull I would have been happy to discuss other approaches as well, for example only enabling psram if an app requests it. I don't think just closing a PR like this is a very appropriate behavior for a project seeking open source contributions.

Happy to discuss as soon as the proposal comes with context, example usecases, etc. Features reaching userspace have wide implications.

SupposedlySam added a commit to SupposedlySam/PebbleOS that referenced this pull request Jun 29, 2026
…see if it responds + if CR0 write landed

Research (datasheet + GitHub forks) reframed the wall: the Winbond HyperBus bring-up is UNIMPLEMENTED everywhere (stub in 7 repos; PebbleOS powers PSRAM off; PR coredevices#1602 QEMU-only). HAL_HYPER_PSRAM_Init has 3 defects: cal runs before DCR.HYPER is set (OPI framing), CR0 latency written after cal, no HyperBus reset. -75 showed re-cal after HYPER+CR0 still fails, so before rewriting the init, read ID0/ID1/CR0/CR1 back over HyperBus (HAL_HYPER_PSRAM_ReadID/ReadCR, bounded TCF spin so no hang) to learn: does the device respond in HyperBus framing, and did the CR0 write (expect 0x178f @144mhz) land? Diagnostic only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

2 participants