-
Notifications
You must be signed in to change notification settings - Fork 113
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
PSRAM Required? or is there a way to build an image for running on a ESP32-wroom-32? #97
Comments
In The launcher and some emulators (using small roms) used to work without external RAM but I haven't tested in a very long time, it's quite likely you'll end up with a blue screen due to memory allocation failure... If that happens you'll have to tweak the code to disable features and save memory. Or you can try to build older retro-go versions! |
Thank you for your answer! Your suggestion worked for me. Thanks to this modification I was able to launch the esp32. But now I have some panics because of memory allocation. I'm trying to bypass this problem in code, but if it's to difficult I'll try to build old versions as you suggested. |
I did some testing to see where the panics occur and I don't think they'll be super easy to fix... I managed to get the launcher to run by doing the attached changes, but no emulator. If you want an old version, it seems 1.28 would be a good candidate, it was just before the launcher redesign with images. diff --git a/components/retro-go/targets/esplay-s3/sdkconfig b/components/retro-go/targets/esplay-s3/sdkconfig
index a99e607f..d507d18e 100644
--- a/components/retro-go/targets/esplay-s3/sdkconfig
+++ b/components/retro-go/targets/esplay-s3/sdkconfig
@@ -70,7 +70,7 @@ CONFIG_NEWLIB_NANO_FORMAT=y
#
# SPI RAM config
#
-CONFIG_ESP32_SPIRAM_SUPPORT=y
+CONFIG_ESP32_SPIRAM_SUPPORT=n
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_USE_MEMMAP=n
diff --git a/launcher/main/applications.c b/launcher/main/applications.c
index a4e0bbd6..73030af1 100644
--- a/launcher/main/applications.c
+++ b/launcher/main/applications.c
@@ -142,7 +142,7 @@ static void application_start(retro_file_t *file, int load_state)
static void crc_cache_init(void)
{
- crc_cache = calloc(1, sizeof(*crc_cache));
+ crc_cache = NULL;
if (!crc_cache)
{
RG_LOGE("Failed to allocate crc_cache!\n");
diff --git a/launcher/main/gui.c b/launcher/main/gui.c
index 0e8cad5f..8dc8c4ed 100644
--- a/launcher/main/gui.c
+++ b/launcher/main/gui.c
@@ -49,7 +49,7 @@ void gui_init(void)
gui.browse = gui.start_screen == START_SCREEN_BROWSER ||
(gui.start_screen == START_SCREEN_AUTO && rg_system_get_app()->bootType == RG_RST_RESTART);
gui_update_theme();
- rg_gui_set_buffered(true);
+ // rg_gui_set_buffered(true);
}
void gui_event(gui_event_t event, tab_t *tab)
@@ -120,6 +120,8 @@ const rg_image_t *gui_get_image(const char *type, const char *subtype)
{
char name[64];
+ return NULL;
+
if (subtype && *subtype)
sprintf(name, "%s_%s.png", type, subtype);
else |
My bad I confused two issues, you don't need esp-idf 5.0. You can go back as far as you want in retro-go's history then! But you might have to use the obsolete esp-idf 3.3 because at one point it didn't build on 4.x :). |
I'm closing this issue, the short answer is that yes PSRAM is required. I've also added an alert in 6baf173 that pops up if external ram isn't detected. Eventually it might be interesting to see if implementing a low memory mode would be feasible :) . For example run the launcher in text mode and run emulators in single buffer mode. |
Hello,
I am facing the following problem:
![image](https://private-user-images.githubusercontent.com/1587131/295685796-a9232ea2-349c-47f1-bc95-10e64ebd3920.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNTYzNDcsIm5iZiI6MTcxOTI1NjA0NywicGF0aCI6Ii8xNTg3MTMxLzI5NTY4NTc5Ni1hOTIzMmVhMi0zNDljLTQ3ZjEtYmM5NS0xMGU2NGViZDM5MjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMTkwNzI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTVkN2JiNTYwZDNhYmRjY2ZjM2EyMWFkYTIwZWJhZWZlYzVlZTBiNjNhMjg5NmQ5ZDNiZTIwNWM2ZTg2YzQyMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.__WyY-_l0AkNyDh0wq23-HvtNcCwR44x4oCSH2mxTD4)
My esp32 is an esp32-wroom-32 and don't have external ram. Is there a way to build an image that would not require the usage of external ram?
Thank you
The text was updated successfully, but these errors were encountered: