Skip to content

ArduCAM_ESP8266_V2_OV5642_Capture2SD - Capture Error - While Loop #92

@Joel2905

Description

@Joel2905

Problem:
User Error - Recently purchased a camera and board off of Amazon. I am trying to do initial set up, but ran into problems. I probably do not have something set up correctly, but after following installation documentation for loading libraries and board manager files, I still seem to be having issues.
Background Mechanical Engineering - Strong Circuits Background, Limited Programming Experience.
Any Help Would Be Much Appreciated

The device returns a soft reset over the serial monitor. Seems to be due to a infinite while loop AND/OR miss defined VID & PID camera values. See Appendix for Serial Monitor Print Out.

Suspected Code Trouble:
"while(!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK)); "

Hardware:
ArduCAM ESP8266 UNO V2
OV5642 Rev B Camera Board

Code:
Using Stock Example - ArduCAM_ESP8266_V2_OV5642_Capture2SD
memorysaver.h -> un-commented #define OV5642_CAM_BIT_ROTATION_FIXED
Note: The un-commenting seems to cause the same header file to be included as the normal OV5642.

Appendix - Serial Monitor Print Out

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld
ArduCAM Start!
85 // SPI Chip Test Serial Print - Passes Check
SD Card detected!
239 = vid // VID value used in OV5642 Camera Modual Comparison-hex conversion
254 = pid // PID value used in OV5642 Camera Modual Comparison-hex conversion
Can't find OV5642 module!
Start Capture // Is entering into the myCAMSaveToSDFile() function
0 // Serial Printing the Argument of the while(!myCAM.get_bit(ARDUCHIP_TRIG , CAP_DONE_MASK));

Soft WDT reset // Enters soft reset

ctx: cont
sp: 3ffefb80 end: 3ffeff00 offset: 01b0

stack>>>
3ffefd30: 3ffeeeb0 00000001 3ffeeeb0 40204db9
3ffefd40: 00000041 3ffeeae0 3ffeeb4c 402025c8
3ffefd50: 3ffeeeb0 00000000 00000008 4020260c
3ffefd60: 3fffdad0 00000000 3ffeeeb0 4020269c
3ffefd70: feefeffe 00000000 3ffeeae0 4020237b
3ffefd80: feefeffe feefeffe feefeffe feefeffe
3ffefd90: 3ffeeb4c feefeffe feefeffe feefeffe
3ffefda0: feefeffe feefeffe feefeffe feefeffe
3ffefdb0: feefeffe feefeffe feefeffe 00003118
3ffefdc0: 00000011 00000200 3ffeeb4c 3ffeeb4c
3ffefdd0: 00000002 00000000 00000000 402033b2
3ffefde0: 00000040 3ffeed90 00000000 3ffeeb00
3ffefdf0: 00000003 00000000 00000000 3ffeeb00
3ffefe00: 00000003 00000000 00000000 4020129d
3ffefe10: 00000003 00000001 00000002 402013ad
3ffefe20: 0000003c 00000000 00000000 3ffeeb00
3ffefe30: 00000003 00000000 00000000 4020129d
3ffefe40: 00000003 00000001 00000002 402013ad
3ffefe50: 0000003c 3ffeeae0 40205000 3ffeeee0
3ffefe60: 40101180 0008a399 402326f0 00000055
3ffefe70: 000000c8 00003801 3ffeeafd 40202cc4
3ffefe80: 3ffe8528 00000000 000003e8 40202cec
3ffefe90: 40201500 00000064 00000064 402027b0
3ffefea0: 00000000 00003818 3ffeeae0 40202948
3ffefeb0: 003d0900 3ffeeae0 3ffeeeb0 402022dc
3ffefec0: feefeffe feefeffe feefeffe 3ffeeed4
3ffefed0: 3fffdad0 00000000 3ffeeecc 402024f0
3ffefee0: 3fffdad0 00000000 3ffeeecc 4020504c
3ffefef0: feefeffe feefeffe 3ffeeee0 40100718
<<<stack<<<

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions