Skip to content
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

Command to display PSRAM information (ESPTOOL-122) #207

Closed
projectgus opened this issue Jun 7, 2017 · 8 comments
Closed

Command to display PSRAM information (ESPTOOL-122) #207

projectgus opened this issue Jun 7, 2017 · 8 comments

Comments

@projectgus
Copy link
Contributor

@ESP32DE requests as part of #206:

i know, we need to use extra pins for clk and cs
but i ask 👍 is it possible over esptool to check, there is psram installed and..
can we read perhabs the ID from the ESP-PSRAM32 ic?

Marking as an enhancement request for now. Agree it would be potentially useful to support, but will need some consideration.

@vshymanskyy
Copy link

This can be so useful for auto-selecting the firmware that needs to be uploaded to a particular board. Voting for this!

@chrismerck
Copy link

There is a static function psram_read_id in components/esp32/spiram_psram.c which does the reading. You can modify that file to cache the dev_id in a global and add a getter for reading from your application later.

@radimkarnis radimkarnis changed the title Command to display PSRAM information Command to display PSRAM information (ESPTOOL-122) Dec 9, 2020
@josesimoes
Copy link

I second this! It would be very helpful to be able to know (at least) if there support for PSRAM.

@josesimoes
Copy link

Any update on this please?

@radimkarnis
Copy link
Collaborator

Hi @josesimoes, I am sorry but no progress has been made. There wasn't a huge demand for this over the years, so the priority is quite low.

Will try to reconsider this. Or if anyone wants to send a PR, it would be highly appreciated!

@josesimoes
Copy link

@radimkarnis understood! and thanks for the prompt reply.
I'm not a python person, but I can give it a try... 😅 any pointers would be highly appreciated!

@radimkarnis
Copy link
Collaborator

After a long consideration, we have decided not to implement this command.

The reason is that there is no easy way to include the PSRAM driver without significantly increasing the stub size and codebase. Also, the driver differs between octal and quad PSRAMs, and between chips as well - maintaining this is not feasible.

A solution can be building a basic ESP-IDF app (can be any example) with PSRAM support turned on. The second stage bootloader prints all necessary information about the PSRAM chip. The driver is also well-maintained in ESP-IDF.

Thank you for understanding.

@josesimoes
Copy link

We are already doing that on our CLI that deploys apps to ESP32. Not ideal though...
Can't you code a stub with a similar approach? I mean, just provinding information on PSRAM would be helpful. Ideally some details, but I understand that could be hard.

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

6 participants