M5Stack Official ESP32 Camera Module - Demo, Runtime Error



  • First of all, if I violate any community posting rule, please forgive me because it is my first time.

    I bought two ESP32CAM units (https://www.aliexpress.com/item/M5Stack-Official-ESP32-Camera-Module-Development-Board-OV2640-Camera-Type-C-Grove-Port-3D-Wifi-Antenna/32881414545.html?spm=a2g0s.9042311.0.0.3da24c4dBymjBW) and tested with esp32-cam-demo (https://github.com/igrr/esp32-cam-demo).

    One unit was OK but I have problems with the other unit:

    First of all, flashing was not easy. I made success 1 out of 4~5 tries after I hold down and release reset button (download mode).

    Secondly, the camera was not probed properly. So, I installed the camera again and it probed (detected) ov2640 camera ok. Now, it reboots while it initiating wifi as follows.

    == Error Message ==

    I (497) camera_demo: ESP_WIFI_MODE_STA.[0m
    E (497) wifi: misc_nvs_load 43 ret=4364
    E (497) wifi: wifi_init 1408 ret=4364
    ESP_ERROR_CHECK failed: esp_err_t 0x110c at 0x40107fc1
    file: "C:/msys32/xxx/xxx/esp32-test/esp32-cam-demo-m5cam-right/main/app_main.c" line 417
    func: wifi_init_sta
    expression: esp_wifi_init(&cfg)

    Backtrace: 0x400882e8:0x3ffbaa10 0x40088779:0x3ffbaa30 0x40107fc1:0x3ffbaa50 0x401093b5:0x3ffbab50 0x400d0e4b:0x3ffbabf0

    Rebooting...
    ets Jun 8 2016 00:22:57

    == End of Error Message ==

    Does any one have resolved this issue?

    I requested how I can replace this unit through Aliexpress but haven't got any reply back.

    I am hoping I can fix the issue because it's going to take long time to replace the possibly defective unit.

    Any solution ? Or any recommendation?



  • Check the project idf config using make menuconfig option.
    In this situations, a debugger will be very helpful.



  • @calin

    Appreciate your reply. The problem is that for this new module I do not any other pinouts except USB Type-C and Grove to connect JTAG, SWD, or any other debugging interfaces. I have to confess that I am not expert on this issue but if you know how I can do? I enabled gdb stuff in menuconfig. But I am wondering if I can connect OpenOCD and gdb through it.

    Can you enlighten me?

    Thanks,
    Kyu



  • @pksuf07M5Stack Official ESP32 Camera Module - Demo, Runtime Error 中说:

    @calin

    Appreciate your reply. The problem is that for this new module I do not any other pinouts except USB Type-C and Grove to connect JTAG, SWD, or any other debugging interfaces. I have to confess that I am not expert on this issue but if you know how I can do? I enabled gdb stuff in menuconfig. But I am wondering if I can connect OpenOCD and gdb through it.

    Can you enlighten me?

    Thanks,
    Kyu

    Check the wifi config on project menuconfig.
    The Jtag connect's to GPIO's 12,13,14,15,RST and GND on ESP32.
    If you really whant to use a Jtag on that one, you can use any FTDI based Jtag and you must solder some wires to ESP32 Jtag pin's...



  • @calin

    ![alt text](0_1530052260078_f6b31b03-3156-4615-8f94-d51f3134b6cc-image.png image url)

    I would if the unit is like DevKit but as you can see in above picture. No pinout for soldering. Did you mean soder directly on ESP32 chip pinout?

    I appreciate your attention to my question a lot.

    Kyu


  • administrators



  • @bin 在 M5Stack Official ESP32 Camera Module - Demo, Runtime Error 中说:

    Hi, try prebuilt firmware:
    https://github.com/m5stack/esp32-cam-demo/blob/m5cam/m5cam-firmware.zip

    That firmware should do... if the hardware is OK

    @pksuf07M5Stack Official ESP32 Camera Module - Demo, Runtime Error 中说:

    @calin

    Did you mean soder directly on ESP32 chip pinout?

    Well... yeah... if you are determined to debug...



  • @bin

    Hi Bin,
    This works. It probed camera good and got connected. Can you enlighten me there is any changes in the source code?


    I (0) cpu_start: App cpu up.
    I (361) heap_init: Initializing. RAM available for dynamic allocation:
    I (368) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
    I (374) heap_init: At 3FFB9E48 len 000261B8 (152 KiB): DRAM
    I (380) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
    I (386) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
    I (393) heap_init: At 400907AC len 0000F854 (62 KiB): IRAM
    I (399) cpu_start: Pro cpu start user code
    I (193) cpu_start: Starting scheduler on PRO CPU.
    I (0) cpu_start: Starting scheduler on APP CPU.
    I (283) camera_demo: Detected OV2640 camera, using JPEG format
    I (503) camera_demo: ESP_WIFI_MODE_AP
    I (503) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
    I (503) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
    I (593) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0
    I (603) camera_demo: wifi_init_softap finished.SSID:M5Cam password:
    I (603) camera_demo: Open http://192.168.4.1/jpg for single image/jpg image
    I (613) camera_demo: Open http://192.168.4.1/jpg_stream for multipart/x-mixed-replace stream of JPEGs
    I (623) camera_demo: Free heap: 142392
    I (623) camera_demo: Camera demo ready



  • @calin

    Thanks for advice. I feel sorry I do not have skill and equipment to solder ESP32 Chipset pint out for debugging which I would love to learn to .

    @Bin
    I will try.



  • @pksuf07M5Stack Official ESP32 Camera Module - Demo, Runtime Error 中说:

    @calin

    Thanks for advice. I feel sorry I do not have skill and equipment to solder ESP32 Chipset pint out for debugging which I would love to learn to .

    @Bin
    I will try.

    Here is my M5Stack debug setup: a "home made" Jtag, some ESP32 board and a ILI9341 TFT.
    And M5Stack device running (almost) the same code :)

    0_1530136085837_20180621_021344.jpg

    Too bad the actual M5Stack don't have a touchscreen... i can use the touchscreen on the debug "setup" :)

    0_1530136761254_M5Dbg.PNG



  • @calin

    Appreciated your information and picture.

    I am already able to configure the debugging setup. I have done it but I could not with ESP32CAM.

    By the way, it seems to me that you are using platform I/O which I do not use. So, I will try as per your configuration.

    And I do not have m5stack core and accessory units except ESP32CAM.

    In fact I am interesting ESP32CAm only if it can handle some real time application because I believe it can off-load some of processing with ESP32, especially by pipelining processing frame while it streaming. For example stereo vision for distance. This is just hobbiest's thought.

    Thanks,
    :)



  • I can't debug on M5Stack Core because it use GPIO 14 as TFT CS and that's interfering with Jtag TMS line.
    That's why i made this setup for debugging.



  • @calin
    Understood. I am sorry I do not have M5Stack core. Only ESP32CAM. I now understand your setup little bit.

    I should keep in touch with you more to learn from you more.



  • @bin

    Hi bin,
    Can you give little information on the changes or setup I am missing? I tried to make this as STA and giving static ip address. The firmware you uploaded is good for softAP.
    Thanks,


  • administrators



  • @0x1abin The prebuilt firmware doesn't work for me either. I get this:

    I (362) heap_init: Initializing. RAM available for dynamic allocation:
    I (369) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
    I (375) heap_init: At 3FFB9E48 len 000261B8 (152 KiB): DRAM
    I (381) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
    I (387) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
    I (394) heap_init: At 400907AC len 0000F854 (62 KiB): IRAM
    I (400) cpu_start: Pro cpu start user code
    I (194) cpu_start: Starting scheduler on PRO CPU.
    I (0) cpu_start: Starting scheduler on APP CPU.
    E (306) camera_demo: Camera probe failed with error 0x20001

    Faulty device?


登录后回复
 

与 M5Stack Community 的连接断开,我们正在尝试重连,请耐心等待