-
Notifications
You must be signed in to change notification settings - Fork 621
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
esp_camera_init() causes Core 0 Panic (StoreProhibited) #460
Comments
It is recommended that you use the example here for testing. If you still report the same error, please let me know. |
I did not know about My project's
My rough file structure looks as following:
I've exported Am I doing anything wrong according to this? |
The example in
Therefore, please check whether the options in the |
Many configs were unset, some did not exist, and a handful were set.
|
The current error message indicates that memory cannot be allocated from the psram. Therefore, please check whether the device has a psram and whether the option of enabling psram is selected(see: CONFIG_ESP32_SPIRAM_SUPPORT). If the sample code can run, I suggest you directly copy the sdkconfig.defaults file to your project, so that some of the options can be automatically selected. |
I'm well aware these errors are PSRAM related. This ESP32 has 8 MB of PSRAM.
The ESP32 also endlessly reboots following it. |
Add the sdkconfig file in the following path, then execute the idf.py set-targetcommand, and then compile it. |
That is also where it is placed. |
So this is probably a problem with the current code, you can replace the current code with the example code and try again. |
Well now I am very confused. |
I think that the timer cam does not have PSRAM, so you need to have that disabled in menuconfig. You would also need |
That would be very odd if it does not have PSRAM. On the sales page it most certainly says it has 8 MB PSRAM. |
I think the good news is that I've gotten past the initialization of the camera successfully but I am now met with another (I'm pretty sure an unrelated) error from cam_hal saying Update: It's only JPEG format causing NO-SOI. Only other posts about it I've found relate to bad sensors or boards. I find that hard to believe though. |
You are correct... the product page does say 8MB PSRAM. Strange what is causing this... |
It does not say |
many |
Same result. However, whilst looking at the terminal and at the same time shaking the device by its cable it's clear that there is a correlation. Could it be that the flex-cable is wrongly seated or is it something more sinister? |
Also,many |
Well, I'm connected with a USB-C so there shouldn't be (I hope) anything wrong with the pin-outs. So if there is something wrong with the pins then it's in the definitions. Update: I double checked the pin definitions and one of them (D0) was wrong. After fixing that it now never says |
Maybe the xclk is too high. Please try to lower the xclk. -> |
No difference.
|
|
I'm pretty sure I've tried that frame size before but testing it now . . . |
Please ensure that the current task stack size is large enough.
In addition, may I know what functions you want to use this development board to achieve? As far as I know, ESP32S3 is the latest chip with camera. |
Your example project works without errors or warnings. I will dissect it and see what I can get out of it. I noticed you did not use JPEG format though; I quickly checked if it works with JPEG and it appears to work anyways. If I even after that can't get the project to work then I suppose I'll have to rework it from scratch and see where it fails. If that also returns empty handed then I can only conclude that I have a cursed computer (wouldn't be unlike me with my luck) or corrupt setup. The original issue (the title) is still not resolved but as long as the DRAM alone is sufficient then I don't need the original issue fixed. If you want to debug the issue to find out if it's something fixable then I can do more tests for you, otherwise this issue can be closed and I thank you for the help. If I run into new trouble then I can open a new issue for that topic.
|
Generally, ESP32S3 has better performance in camera related projects. However, the current requirement is only to send a picture, so ESP32 can perfectly support this function. The library supporting JPEG compression is ported to ESP32, so JPEG compression can be completed. However, the memory of ESP32 is limited. The resolution of the compressed pictures should be about 720p, and the speed is average. If you need a large resolution image, it is recommended to use a sensor like OV3660 that can output JPEG directly. |
This device does have an OV3660 actually. It would be great to have as high resolution of an image as possible and delay/ performance is not a factor. Is JPEG the optimal format for resolution? |
Is JPEG the optimal format for resolution? |
This issue appears to be stale. Please close it if its no longer valid. |
I have been attempting to use esp32-camera on an ESP32 M5STACK TimerCam chip for a while now but when it reaches the
esp_camera_init(&camera_config)
init function it fails and panics. I have tried to alter SPIRAM and Camera settings in menuconfig but alas' nothing worked.Related code:
Output log:
It's worth noting that
EXCVADDR
is always0xff1d0000
.The camera configurations are as follows:
The text was updated successfully, but these errors were encountered: