-
Notifications
You must be signed in to change notification settings - Fork 7.6k
8 MB PSRAM himem? #2830
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
Comments
These are errors. You need to work out why your spiram isn't working |
Are you able to compile arduino-esp32 and test the customized version? Using arduino as a component and changing the esp-idf. If https://github.com/espressif/esp-idf/blob/master/components/esp32/esp_himem.c#L159 I would check which of |
Futher, the example you linked requires changing the sdkconfig. https://github.com/espressif/esp-idf/blob/master/examples/system/himem/sdkconfig.defaults Last I checked, Platform.IO does not allow you to change the sdkconfig with the Arduino environment. This may have changed. |
I have tried the example myself on my own inhouse WROVER board and it works.
|
I suspect you have not enabled spiram when building the firmware. Please detail how you're building the firmware and what config you may have changed. |
Many thanks for these comments - I will investigate further. PS. How do you change ESP32's logging verbosity in the Arduino IDE or in PlatformIO? Also, how do I change the sdkconfig.h in the Arduino IDE? My apologies, I'm not familiar at all with ESP32 in the IDE. |
Fromm what I can tell, all the required settings are appropriate in the UPDATE - ah wait, one difference:
vs
|
In PlatformIO, I have the following:
I've tried rebuilding in PlatformIO with these changes, but it made no difference:
(in In Arduino IDE, i cloned So my questions to you are: did you do your test in the Arduino IDE? And how do you get the verbose logging showing all the "I" messages at boot-up? |
I am not using the Arduino IDE, I am using Arduino as an ESPIDF component. The Arduino IDE uses prebuilt libraries and does not compile the IDF, only your application code. Platform IO when I used it some months ago, did not work correctly in Arduino mode, only in ESP32 mode (The Arduino sdkconfig could not be modified, this was a bug) It seems you are using the espressif pio environment so you should be able to modify the config but in the end I stopped using Platform.IO for plain Arduino on IDF Component. This has been the most reliable |
Note, sdkconfig and sdkconfig.h are not the same. Sdkconfig is used to generate the header file. Modifying the header file may not work as expected Also some config settings in sdkconfig generate multiple lines in the header file. |
Aha, clear, thanks. Trying espidf in pio now. I can't switch away from pio (it's far too convenient). If himem can't be made to work under pio, then I'll have to stick to 4 MB SPI RAM. Not the end of the world, but it'd perhaps be good to leave this issue open, to await future enhancements. Let's also ping @ivankravets for completeness ... PS, Note that SPI RAM in itself is working fine, it's just the himem setup that's fighting me. |
Are you using the paid features of PIO? If not, I can help you setup VSCode to work with Arduino as a component. |
Ok, for reference, here's what I get with
Then, linking fails:
Which is odd, since it does seem to be present:
UPDATE - ah no those are references, the declaration is in spiram.o, which is missing. Weird. |
No, free pio. Using command line, not vscode/atom gui. |
Maybe this PR will help platformio/platform-espressif32#142? |
Hm, espidf framework generates
|
As I remember we just copy a default |
Baby steps - still in framework espidf under pio - I added the following to
Note: setting CONFIG_SPIRAM_USE_MALLOC breaks the re-build in several places. The number of linker errors increases. For some reason, |
Please file an issue here https://github.com/platformio/platform-espressif32/issues |
I have just created new repository for Arduino-ESP32 8 MB PSRAM Himem supported Try at |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
https://github.com/arkhipenko/ESP32Himem Better late than never... |
I'm trying to make the himem banking demo work. Tried with platformio and the arduino ide, see this forum discussion.
Latest IDE, github head https://github.com/espressif/arduino-esp32.git, latest MacOS, target is based on WROVER (TTGO T7 v1.3).
The test code I have is:
The output I see is:
What I don't understand is the "himem free 0".
The text was updated successfully, but these errors were encountered: