mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

ESP official ESP32-S3-EYE v2.2 development board flash firmware #78

Open pyharry opened 2 years ago

pyharry commented 2 years ago

Hello! Please tell me about the situation of ESP official ESP32-S3-EYE v2.2 development board flashing firmware (development board link: https://github.com/espressif/esp-who/blob/master/docs/en/get- started/ESP32-S3-EYE_Getting_Started_Guide.md), I tried to flash microlite-esp32-s3-firmware; microlite-esp32-s3-spiram-cs-gpio-20-firmware; microlite-esp32-s3-spiram-firmware; microlite -esp32-s3-spiram-octal-firmware, only one line is returned in PuTTY, there is no Micropython prompt to return, it seems to be stuck there, I don't know where is the problem? Thanks! As shown below 1 2 3 4 5 6

pyharry commented 2 years ago

Hello, I tried the latest package from micropython.org, directly download GENERIC_S3-20220117-v1.18.bin (https://micropython.org/download/GENERIC_S3/), now this thonny can return the python character as shown below, I don’t know There is a problem there, see if you can help, generate a bin corresponding to the ESP32-S3-EYE integration, thank you 88 !

mocleiri commented 2 years ago

Thanks for this report. For esp32 and stm32 we have our own board configuration that were copied from micropython upstream.

I suspect something was changed in the upstream configuration.

I don't have s3 boards but I can pick up the latest upstream changes and then trigger a build on that branch for you to test on.

pyharry commented 2 years ago

Hello! Thank you very much for your reply and help! Looking forward to your builds for us to test, we'll try to provide feedback! At the same time, if it is convenient for you, I can provide an ESP32-S3-EYE v2.2 board to express and mail it to you to facilitate your joint debugging and build it for everyone to share, thank you!

mocleiri commented 2 years ago

I found the change I made to the esp32s3's which was to disable USB.

I wonder if for your board or needed it to be there.

Are you setup to build from scratch?

You could try to revert this change and then see if the s3ima few then works for you:

https://github.com/mocleiri/tensorflow-micropython-examples/commit/2d0948b542c6c5bee92b2bb9e383fec59a1358f1

pyharry commented 2 years ago

Hello! The resources we need to call are video, audio, display, SD card, USB, WIFI, Bluetooth, and ESP-NN acceleration in the official https://github.com/espressif/tflite-micro-esp-examples, here The official C BIN can run, please help, generate and package a BIN called by micropython for downloading and testing, thank you!

mocleiri commented 1 year ago

I took a more detailed look comparing each file from the MICROLITE_S3 project against the upstream GENERIC_S3 and found there was another change in the header file which is now applied.

It enables repl over uart.

@pyharry can you check the applicable S3 build at this link have the new option set: https://github.com/mocleiri/tensorflow-micropython-examples/actions/runs/3727467156

I changed the build to assemble a single firmware.bin like upstream which is directly flashable.