I am trying to install micropython on my esp32 cam.
I tried 3 differents ways to do it.
First one command and putty
I installed python and esptool with
pip install esptool.
Then I looked wich COM was my esp32 (In my case COM5), then I ereased the flash with this command
esptool.py --chip esp32 --port COM5 erase_flash
Here is the result, it looks fine to me.
esptool.py v3.2 Serial port COM5 Connecting.... Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 58:bf:25:83:bd:64 Uploading stub... Running stub... Stub running... Erasing flash (this may take a while)... Chip erase completed successfully in 14.3s Hard resetting via RTS pin...
esptool.py --chip esp32 --port COM5 --baud 460800 write_flash -z 0x1000 micropython_cmake_9fef1c0bd_esp32_idf4.x_ble_camera.bin
Each time I got a result like this:
0bd_esp32_idf4.x_ble_camera.bin esptool.py v3.2 Serial port COM5 Connecting.... Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 58:bf:25:83:bd:64 Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size... Flash will be erased from 0x00001000 to 0x00181fff... Compressed 1575808 bytes to 1010481... Wrote 1575808 bytes (1010481 compressed) at 0x00001000 in 23.8 seconds (effective 529.5 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
After that I tried to connect to it with putty
I tried to unplug the esp32, press the reset button, hit CTRL + enter / CTRL + D. But each times i got a black window and I'm unable to write something
I tried to flash the firmeware with Thonny Click on bottom Right "Micropython (ESP32)" > Configure Interpreter > Install or update firmware
But after the installation I always have a error and cant type python
I also tried to do it with uPyCraft, when I select the COM port, it asks me to flash the firmware, it seems to works, but when i select again the port it ask again.
I can't find a way to use micro python with my esp32 cam, every time it seems to flash the firmware but can't connect to the ESP32 after that.
And the usb converter is a CH340 serial converter
I found out that my problem is not about the firmware, but about the communication between my computer (Windows 10) and the esp 32 card.
I tried to install the firmware from a other computer (Macbook pro) and this time I was able to execute python on the card.
Later without any modifications I tried again to just plug my card on my original computer and connect to it, but still unable to execute python.
So I think that it could be a dirver problem or anything else, but related to my computer. For now I still don't know what I could try.