Need help converting a project from IDF 4.x to 5.x (build issues with TinyUSB)

iot_noob
Posts: 1
Joined: Wed Jan 03, 2024 4:58 pm

Need help converting a project from IDF 4.x to 5.x (build issues with TinyUSB)

Postby iot_noob » Wed Jan 03, 2024 8:13 pm

I'm trying to "combine" two projects together, but they're built for different versions of IDF and do not compile on the opposite version. Project A builds fine on v4.4.6, and Project B builds fine on v5.1.2.

First I tried to build Project B on v.4.4.6, but it failed because that version lacks the `esp_vfs_fat_sdcard_format()` function.

Then I tried to build Project A on v.5.1.2. First I ran into issues with one of the dependencies (LovyanGFX) but I fixed it by downloading a newer version of that library. After that, now I'm getting this cryptic error:

https://pastebin.com/04Rgeyyc

I didn't understand where the error came from, so next I decided to start a blank project (using `examples/get-help/hello_world` as a base) then slowly add portions of Project A until it fails. The error starts as soon as I add the `main/idf_component.yml` file to the project. With further trial and error, I realized it gets past that (at least during `idf.py set-platform` or `menuconfig`) if I remove all the `rules:` sections from the file. This leads me to believe one of the dependencies is causing issues, and I have a feeling it's TinyUSB.

Can somebody please help me decrypt this error message and figure out the root of the problem?

This is Project A:
https://github.com/m5stack/M5Cardputer-UserDemo

Here's the components file:
https://github.com/m5stack/M5Cardputer- ... ponent.yml

Who is online

Users browsing this forum: Bing [Bot], cdollar and 110 guests