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

Failure to run example with memory error #51

Open
bill-orange opened this issue Sep 19, 2020 · 3 comments
Open

Failure to run example with memory error #51

bill-orange opened this issue Sep 19, 2020 · 3 comments

Comments

@bill-orange
Copy link

I am trying to run the change detection example. After much consternation I got it to compile in platformIO. My attemps to run it have not been successful. Here is the failure.

␛[0;32mI (1214) spiram: SPI SRAM memory test OK␛[0m
D (1215) memory_layout: Checking 8 reserved memory ranges:␛[0m
D (1215) memory_layout: Reserved memory range 0x3f800000 - 0x40000000␛[0m
␛[0;31mE (1220) memory_layout: SOC_RESERVE_MEMORY_REGION region range 0x3f800000 - 0x40000000 overlaps with 0x3ffae000 - 0x3ffae6e0␛[0m
abort() was called at PC 0x400dc81b on core 0

ELF file SHA256: 9af668d35db12fb1

Backtrace: 0x40089370:0x3ffe34a0 0x4008981c:0x3ffe34d0 0x400dc81b:0x3ffe3500 0x400dc8c0:0x3ffe3540 0x400db895:0x3ffe3890 0x40082599:0x3ffe3c40 0x4007931a:0x3ffe3c80 |<-CORRUPTED

Rebooting...

Any ideas on what could be wrong?

@bill-orange bill-orange changed the title Failure to compile with memory error Failure to run example with memory error Sep 19, 2020
@bill-orange
Copy link
Author

This problem was resolved by adding the following fix to sdkconfig. This would be needed on all examples.

#CONFIG_SPIRAM_SIZE=-1
CONFIG_SPIRAM_TYPE=Auto-detect

Now that I can compile and run, I can observe ( via serial) motion being detected and higher resolution images being taken. Hurrah.
What I do not see in the code is the storage of the highres image or any way to access it. I that left to the user or am I missing something? Nothing is written to a FAT32 usd card nor do I see code to accomplish it. I can certainly add the code but I want to be sure I understand what's happening as-is.

Thoughts?

@raphaelbs
Copy link
Owner

hey @bill-orange, thanks for pointing the CONFIG_SPIRAM_TYPE flag out. I'll update it.

Regarding storing the high res picture on the SD, this part isn't implemented on the change detection example.

@Vitenuto
Copy link

Vitenuto commented Aug 23, 2022

Man I love you, finally after several hours/days of searching how to run it I was able to run the google_storage example!
Thank you so much!

P.S. together with setting right versions of library and platform used in platformio.ini file
image

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

No branches or pull requests

3 participants