Search found 10 matches

by Polarbear17123
Mon Sep 23, 2024 6:28 pm
Forum: ESP-IDF
Topic: PSRAM Utilization on ESP32S3-EYE
Replies: 9
Views: 2112

Re: PSRAM Utilization on ESP32S3-EYE

>> Have you tried combining "integrate into memory map" with ".bss in PSRAM"? Yes, but this for zero initialized data (.bss is created by the loader and set to 0), and my data is non-zero initialized (.data) that is part of the binary image. I looked for option to move the .data into PSRAM, but I c...
by Polarbear17123
Sun Sep 22, 2024 6:35 pm
Forum: ESP-IDF
Topic: PSRAM Utilization on ESP32S3-EYE
Replies: 9
Views: 2112

Re: PSRAM Utilization on ESP32S3-EYE

"Integrating into the memory map" means the IDF just makes the PSRAM accessible as RAM to the CPU. You can use it as "raw" memory by reading or writing data to its address range via pointers. The heap allocator is not made aware of this memory region Do you mean it makes it accessible at the HW (or...
by Polarbear17123
Sun Sep 22, 2024 6:29 pm
Forum: ESP-IDF
Topic: PSRAM Utilization on ESP32S3-EYE
Replies: 9
Views: 2112

Re: PSRAM Utilization on ESP32S3-EYE

I imagine that data won't change at runtime? If so, suggest making the array 'const' - that way, it stays in flash rather than be copied to psram.


Yes. this is correct and it WORKS!
And assuming psram read is faster than flash read, I can copy it to psram after program starts.

Thank you!
by Polarbear17123
Sat Sep 21, 2024 7:41 pm
Forum: ESP-IDF
Topic: PSRAM Utilization on ESP32S3-EYE
Replies: 9
Views: 2112

Re: PSRAM Utilization on ESP32S3-EYE

Thank you! (1) I "see" the heap using esp_get_minimum_free_heap_size call. We can also see the log during boot (below) it doesn't seem to add the PSRAM into available heap. (2) About " including 2MB of initialization data into the firmware binary", yes - this is my intent. I eventually would like to...
by Polarbear17123
Sat Sep 21, 2024 8:41 am
Forum: ESP-IDF
Topic: PSRAM Utilization on ESP32S3-EYE
Replies: 9
Views: 2112

PSRAM Utilization on ESP32S3-EYE

Hello, This may be a completely newbie question. (1) I'm trying to use the 8M PSRAM as "normal" memory, when I choose in IDF menuconfig to access the PSRAM via heap_caps_malloc -- I can see all 8M of it but if I integrate into the memory map I can only see about 300K -- why is that and how can it be...
by Polarbear17123
Tue Sep 17, 2024 7:43 pm
Forum: ESP-IDF
Topic: "Access cache when cache is disabled" exception on ESP32-S3-EYE?
Replies: 4
Views: 1099

Re: "Access cache when cache is disabled" exception on ESP32-S3-EYE?

I am running TF Micro, the PSRAM is used to allocate the tensor area, No code.
Can this interrupt be a page-fault? (assuming paging is enabled in Free-RTOS) ?
by Polarbear17123
Mon Sep 16, 2024 10:01 pm
Forum: ESP-IDF
Topic: "Access cache when cache is disabled" exception on ESP32-S3-EYE?
Replies: 4
Views: 1099

"Access cache when cache is disabled" exception on ESP32-S3-EYE?

Hello,
I am getting an "access cache when cache is disabled" exception on ESP32-S3-EYE.
I am using the PSRAM and it may be related.
Did anyone see this before and knows how to fix the issue?
Thank you!
by Polarbear17123
Fri Sep 13, 2024 11:35 pm
Forum: ESP-IDF
Topic: Running YOLOv5 Nano on ESP32-S3-EYE?
Replies: 4
Views: 1291

Re: Running YOLOv5 Nano on ESP32-S3-EYE?

Thank you!
Still fails to allocate tensor memory - the model is likely too big for the available memory :(
by Polarbear17123
Fri Sep 13, 2024 12:33 am
Forum: ESP-IDF
Topic: Running YOLOv5 Nano on ESP32-S3-EYE?
Replies: 4
Views: 1291

Re: Running YOLOv5 Nano on ESP32-S3-EYE?

>>> Have you enabled PSRAM in menuconfig? If not, you can only use the internal RAM, and that's probably too little. Thank you! and yes, I did, without it probably would not even load (it is a 4M image). That said menuconfig setup is somewhat complex and I may not have the optimal setting for maxima...
by Polarbear17123
Thu Sep 12, 2024 8:42 am
Forum: ESP-IDF
Topic: Running YOLOv5 Nano on ESP32-S3-EYE?
Replies: 4
Views: 1291

Running YOLOv5 Nano on ESP32-S3-EYE?

Hello, and thank you for reading my question. I hope I am at the right group to ask. I successfully compiled and loaded YOLOv5 nano using Tensor Flow lite Micro onto the ESP32-S3-EYE, using the hello_world template. The Binary segment size is as followed: text data bss dec hex filename 169,186 2,170...