espressif / esp-box

The ESP-BOX is a new generation AIoT development platform released by Espressif Systems.
Apache License 2.0
709 stars 172 forks source link

chatgpt_demo stuck at Steps screen even after restart and CONFIG.ini updated (AEGHB-699) #153

Closed vinny-888 closed 1 week ago

vinny-888 commented 1 week ago

I installed the chatgpt_demo from here (https://espressif.github.io/esp-launchpad/?flashConfigURL=https://espressif.github.io/esp-box/launchpad.toml) and everything worked perfectly

I checked out the latest code and compiled and was able to flash the code from the chatgpt_demo example onto my ESP32_S3_BOX_3

When the app starts up I get the "Steps" screen and even after I set the CONFIG.ini settings and click restart, I end up back at the Steps screen and cannot get passed it.

Not sure if there is a known but or how I might be able to bypass this as I have set these settings also in the sdkconfig

CONFIG_ESP_WIFI_SSID="xxx"
CONFIG_ESP_WIFI_PASSWORD="xxx"
CONFIG_OPENAI_API_KEY="sk-xxx"
CONFIG_OPENAI_URL="https://api.openai.com/v1/"

Any help or tips on how to bypass this screen would be great

Horion0415 commented 1 week ago

You can try erasing the flash and then flashing the chatgpt_demo from the launchpad. The erase command is: idf.py -p /dev/ttyACM0 erase-flash. Alternatively, you can try compiling the project yourself and flashing it to see if the same issue occurs.

vinny-888 commented 1 week ago

Alternatively, you can try compiling the project yourself and flashing it to see if the same issue occurs.

Yes this only happens when building from source and flashing myself

When I load it from the launchpad it works as expected

Horion0415 commented 1 week ago

Did you follow the compilation requirements in the README for the build? The compilation process for this example is different from other examples.

vinny-888 commented 1 week ago

Ah I missed the second build step so I must have just built the factory_nvs and not the actual app.

Once I built the app in the parent dir it runs as expected now.

Thanks for the tip not sure I would have caught I missed that. Eyes just saw the same commands and missed the folder change