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

News resolution ov2640 esp32 arduino-core 3.1.0 #10769

Open
1 task done
G-Remo opened this issue Dec 21, 2024 · 0 comments
Open
1 task done

News resolution ov2640 esp32 arduino-core 3.1.0 #10769

G-Remo opened this issue Dec 21, 2024 · 0 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@G-Remo
Copy link

G-Remo commented Dec 21, 2024

Board

CAMERA_MODEL_AI_THINKER

Device Description

ESP32

Hardware Configuration

ov2640

Version

latest master (checkout manually)

IDE Name

Arduino IDE 1.8.19

Operating System

W10

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

New resolutions cause a shift in the example

Sketch

sensor.h
typedef enum {
    FRAMESIZE_96X96,    // 96x96
    FRAMESIZE_QQVGA,    // 160x120
    FRAMESIZE_128X128,    // 128x128
    FRAMESIZE_QCIF,     // 176x144
    FRAMESIZE_HQVGA,    // 240x176
    FRAMESIZE_240X240,  // 240x240
    FRAMESIZE_QVGA,     // 320x240
    FRAMESIZE_320X320,  // 320x320
    FRAMESIZE_CIF,      // 400x296
    FRAMESIZE_HVGA,     // 480x320
    FRAMESIZE_VGA,      // 640x480
    FRAMESIZE_SVGA,     // 800x600
    FRAMESIZE_XGA,      // 1024x768
    FRAMESIZE_HD,       // 1280x720
    FRAMESIZE_SXGA,     // 1280x1024
    FRAMESIZE_UXGA,     // 1600x1200
    // 3MP Sensors
    FRAMESIZE_FHD,      // 1920x1080
    FRAMESIZE_P_HD,     //  720x1280
    FRAMESIZE_P_3MP,    //  864x1536
    FRAMESIZE_QXGA,     // 2048x1536
    // 5MP Sensors
    FRAMESIZE_QHD,      // 2560x1440
    FRAMESIZE_WQXGA,    // 2560x1600
    FRAMESIZE_P_FHD,    // 1080x1920
    FRAMESIZE_QSXGA,    // 2560x1920
    FRAMESIZE_5MP,      // 2592x1944
    FRAMESIZE_INVALID
} framesize_t;

old:
<div class="input-group" id="framesize-group">
		<label for="framesize">Resolution</label>
		<select id="framesize" class="default-action">
				<!-- 2MP -->
				<option value="13">UXGA(1600x1200)</option>
				<option value="12">SXGA(1280x1024)</option>
				<option value="11">HD(1280x720)</option>
				<option value="10">XGA(1024x768)</option>
				<option value="9">SVGA(800x600)</option>
				<option value="8">VGA(640x480)</option>
				<option value="7">HVGA(480x320)</option>
				<option value="6">CIF(400x296)</option>
				<option value="5">QVGA(320x240)</option>
				<option value="4">240x240</option>
				<option value="3">HQVGA(240x176)</option>
				<option value="2">QCIF(176x144)</option>
				<option value="1">QQVGA(160x120)</option>
				<option value="0">96x96</option>
		</select>
</div>

new:
<div class="input-group" id="framesize-group">
		<label for="framesize">Resolution</label>
		<select id="framesize" class="default-action">
				<option value="15">UXGA(1600x1200)</option>
				<option value="14">SXGA(1280x1024)</option>
				<option value="13">HD(1280x720)</option>
				<option value="12">XGA(1024x768)</option>
				<option value="11">SVGA(800x600)</option>
				<option value="10">VGA(640x480)</option>
				<option value="9">HVGA(480x320)</option>
				<option value="8">CIF(400x296)</option>
				<option value="7">320x320</option>
				<option value="6">QVGA(320x240)</option>
				<option value="5">240x240</option>
				<option value="4">HQVGA(240x176)</option>
				<option value="3">QCIF(176x144)</option>
				<option value="2">128x128</option>
				<option value="1">QQVGA(160x120)</option>
				<option value="0">96x96</option>
		</select>
</div>

after that, FRAMESIZE_320X320 cause crash

Debug Message

missing:
    <option value="2">128x128</option> //FRAMESIZE_128X128
    <option value="7">320x320</option> //FRAMESIZE_320X320

crash message(can't decode):
10:21:42.383 -> rt:x1(PWERON_RESET),bot0x3 SPI_FAST_FLASHBOT)
cnfigsip: 0, SPWP:xe
clk_drv:0x00,qdv:x0,d_drv:0x00,c0_rv0x0,hd_dv00,wpdr:x0
10:21:42.383 -> mode:DIO, coc di:1
10:21:42.383 -> load:0x3fff030,en496
10:21:42.383 -> od:0x407800len16436
10:21:42.383 -> load:0x408000,e4h 8⸮⸮⸮4 oo 4
10:21:42.383 -> ⸮+⸮:⸮4⸮⸮⸮⸮bb⸮⸮:-&SHntry 0x4000b8

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@G-Remo G-Remo added the Status: Awaiting triage Issue is waiting for triage label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant