Replies: 11 comments 20 replies
-
@CharlesDias = @KurtE |
Beta Was this translation helpful? Give feedback.
-
I update the overlay and made the changes you suggested in post #74353 (comment) but using still no luck in getting a descent image to the ST7796 using your library. |
Beta Was this translation helpful? Give feedback.
-
Since you made this thread decided to run through the cameras I have using the giga and the giga display shield. Running the OV7670 at 12 mhz it runs for quite a bit (~5mins) at 320x240 and then I see several
and eventually a Bus fault occurs ( imprecise data bus error) and I see this at the end
Not sure where or why yet but going to try the 2640 next to see if I get the same thing. NOTE: to get the display working @KurtE and I developed custom libraries to support graphics on the giga display: so we can run the following sketch to test the cameras
|
Beta Was this translation helpful? Give feedback.
-
Running the OV2640 at 24 mhz at 320x240 with no errors for about 20 minutes so going to move on to different camera. Ran the OV5640 at 12Mhz at 320x240 still shows the same type images as before whether I do a byte swap or not so something else going on. Then after a dozen or so frames will get
|
Beta Was this translation helpful? Give feedback.
-
Hi @CharlesDias @KurtE has been primarily testing with the Capture app while I have been using the Arduino IDE. Seems like the different cameras are behaving differently between zephy app and the IDE. For instance, @KurtE got good results with the 5640 on a ILI9341 display while I am having image issues through the ArduinoCore could be that sdram is too slow. Funny you should mention that you were testing with the OV2640 - just posted above that I ran that camera for about 20 minutes with no issues but having varying issues with different cameras. EDIT: FOrgot to mention the current version of zephyr is at 4.1 so probably doesn't have all the latest changes to video api |
Beta Was this translation helpful? Give feedback.
-
Quick note: I was hacking on one of my other sketch/app in my zephyer_test_sketches: camera_to_ili9341, which I hacked up to allow Next test is I have a hacked up version of: video_stm32_dcmi.c and gc2145.c get_selection and set_selection, that I want to test to |
Beta Was this translation helpful? Give feedback.
-
Great to know! If you have time, could you set up an SDRAM stress test that doesn't involve a camera sensor or display? The goal is to verify whether it uses DMA to continuously read and write a 153,600-byte block (which represents 320 × 240 pixels at 2 bytes per pixel) and logs the number of cycles or transfers before an error occurs. |
Beta Was this translation helpful? Give feedback.
-
Thanks again @mjs513, As we discussed on other channels, that helped a lot in finding some of the last sticking points in the code we have been playing with. It started working for one iteration, but not on subsequent iterations. Although maybe caused by other bugs I had. Got that working by using the dma_reload, instead of doing another call to dma_config. So then @mjs513 converted to an Arduino sketch and it hung. I figured it out that we are/were hard coding the test to run on Looks like zephyr has an api that maybe helps with that: So for now in the sketch I added:
Which output:
Next issue to try: It appears like the DMA operation will only allow you to output 64K per block (or maybe 64K-1), so Back to testing Edit: Looks like the reload code may not be needed, there was a different bug that that worked around. |
Beta Was this translation helpful? Give feedback.
-
Regarding the GC2145 on the portenta H7 found that I had an error in the overlay for the gc2145 so reran with the same clock and updates to the GC 2145 registers. Also changed to using the ILI9341 spi driver. With this configuration was able to get up to 100 frames before getting the
and frames stop coming through, Also once in while on reset I would get:
EDIT: Since I am using the 9341 I am also using a framebuffer. It seems that if I add a 1mllisecond delay after updating the screen I am not seeing the bus faults and now getting between 100 and 200 frames before the callback error. |
Beta Was this translation helpful? Give feedback.
-
@josuah @mjs513 - Quick note:
Note: I also turned off video debug in the config file... It has been running now for awhile. I think now going on about 5000 frames at about 18 frames per second. Again reinforces that the issue is the DMA to SDRAM. |
Beta Was this translation helpful? Give feedback.
-
@josuah @mjs513 - and all Doing some hacking to see how possible it is to do snapshots... So right now working on zephyrproject: My current changes are:
I have a hacked up version of my camera_to_ili9341, that is configured to use it and ST7796,'' |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Arduino hardware ecosystem supports cameras modules such as those sold by Arducam as well as others from 3rd-party.
These cameras can be used on Zephyr, including using the ArduinoCore-Zephyr.
This is thread is there to aggregate all progress and information useful to get Arduino camera working again on Arduino Sketches on top of the Zephyr core.
Related issues:
Beta Was this translation helpful? Give feedback.
All reactions