Page 1 of 1

can't upload code to esp32cam via espcam32-mb

Posted: Fri Mar 05, 2021 3:07 pm
by oyster
The following description is some long. In one word, my question is "can we use espcam32-mb to open micropython's REPL on esp32cam? can we upload files to esp32cam via espcam32-mb?"

I have some experience with normal esp8266 and esp32 board. I can use mu to program for sp8266 and esp32.

I have bought esp32cam with esp32cam-mb, which look like the gadgets in randomnerd's tutorial.

I can burn the firmware from lemariva without problem.

Then I launch mu, which finds the new ESP Micropython device. So I try to open REPL, but I get
-¥acFBqŠAB¡…æÿ-ès Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
E:\prg\py\Anaconda3_64\Scripts>esptool --chip esp32 --port COM3 erase_flash
esptool.py v3.0
Serial port COM3
Connecting......
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:f9:19:68
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 12.5s
Hard resetting via RTS pin...

E:\prg\py\Anaconda3_64\Scripts>esptool --chip esp32 --port COM3 --baud 460800 write_flash -z 0x1000 r:\micropython_b7883ce_esp32_idf4.x_ble_camera.bin
esptool.py v3.0
Serial port COM3
Connecting......
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:f9:19:68
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 1567824 bytes to 982369...
Wrote 1567824 bytes (982369 compressed) at 0x00001000 in 23.1 seconds (effective 544.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Thanks

Re: can't upload code to esp32cam via espcam32-mb

Posted: Sat Apr 10, 2021 10:29 am
by lorenz
Hi,

for me it worked to access the repl via the esp-cam-mb. And I can also flash code via the pyboard tool.
https://github.com/micropython/micropyt ... pyboard.py
Maybe you can try the pyboard tool to flash software.

There is a similar thread here:
viewtopic.php?f=18&t=10151&p=56930&hilit=esp+cam#p56930

Regards,
Lorenz