Closed xuhongv closed 2 years ago
ESP-LyraP-LCD32 v1.1 may have different LCD controller types (ST7789 or ILI9341), as the default configuration does not work (ST7789), please modify your controller type to SCREEN_CONTROLLER_ILI9341
then try again.
i try it @leeebo
你好,我试着更新了最新版的 esp-iot-solution 仓库,但是报错异常如下,看样子是 CMake 语法,您看看是不是你们开发同事在合并代码出问题了。 @leeebo
../main/cmd_wifi.c:38:10: fatal error: tinyusb.h: No such file or directory
#include "tinyusb.h"
^~~~~~~~~~~
compilation terminated.
看到了提示:
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32s2
CMake Warning at /mnt/d/ESPRESSIF/Linux_Windows/usb_camera_lcd_display/esp-idf/tools/cmake/build.cmake:478 (message):
"idf_component.yml" file was found for components:
/mnt/d/ESPRESSIF/Linux_Windows/usb_camera_lcd_display/esp-iot-solution/components/usb/tinyusb
However, the component manager is not enabled.
Call Stack (most recent call first):
/mnt/d/ESPRESSIF/Linux_Windows/usb_camera_lcd_display/esp-idf/tools/cmake/project.cmake:361 (idf_build_process)
CMakeLists.txt:20 (project)
@xuhongv From my near test, the usb-dongle example works as normal with the latest master ESP-IDF, please check if your development environment is installed correctly (include IDF submodules), and try to build other usb/device examples.
However, the component manager is not enabled.
The warning message should not cause your problem, while if you want to remove them, you can Install ESP-IDF component manager with:
. ./export.sh
to add ESP-IDF environment valuespip install idf-component-manager --upgrade
@leeebo 请问这个 usb/device examples 的运行分支是最新的master分支,还是指定的 commitID ?
1)我使用最新的master分支代码,报错:
CMake Error at /mnt/d/ESPRESSIF/Linux_Windows/esp-idf-s3/esp-idf/tools/cmake/component.cmake:306 (message):
Include directory
'/mnt/d/ESPRESSIF/Linux_Windows/esp-idf-s3/esp-idf/components/cbor/tinycbor/src'
is not a directory.
Call Stack (most recent call first):
/mnt/d/ESPRESSIF/Linux_Windows/esp-idf-s3/esp-idf/tools/cmake/component.cmake:479 (__component_add_include_dirs)
/mnt/d/ESPRESSIF/Linux_Windows/esp-idf-s3/esp-idf/components/cbor/CMakeLists.txt:1 (idf_component_register)
-- Configuring incomplete, errors occurred!
2)我使用 README 文档中指定的分支,而且尝试更新了子模块管理组件,如下:
xuhongv@xuhongv:/mnt/d/ESPRESSIF/Linux_Windows/usb_camera_lcd_display/esp-idf$ pip install idf-component-manager --upgrade
Collecting idf-component-manager
Downloading idf_component_manager-0.2.100b0-py3-none-any.whl (49 kB)
|████████████████████████████████| 49 kB 1.5 MB/s
Collecting requests
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
|████████████████████████████████| 62 kB 883 kB/s
Collecting schema
Downloading schema-0.7.4-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: future in /home/xuhongv/.espressif/python_env/idf4.4_py3.6_env/lib/python3.6/site-packages (from idf-component-manager) (0.18.2)
Collecting pyyaml
Downloading PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl (640 kB)
|████████████████████████████████| 640 kB 167 kB/s
Collecting requests-toolbelt
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
|████████████████████████████████| 54 kB 254 kB/s
Collecting semantic-version>="2.8"
Downloading semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: six in /home/xuhongv/.espressif/python_env/idf4.4_py3.6_env/lib/python3.6/site-packages (from idf-component-manager) (1.15.0)
Collecting tqdm
Downloading tqdm-4.62.2-py2.py3-none-any.whl (76 kB)
|████████████████████████████████| 76 kB 249 kB/s
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
|████████████████████████████████| 145 kB 224 kB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 482 kB/s
Collecting idna<4,>=2.5
Downloading idna-3.2-py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 291 kB/s
Collecting contextlib2>=0.5.5
Downloading contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, contextlib2, tqdm, semantic-version, schema, requests-toolbelt, pyyaml, idf-component-manager
Successfully installed certifi-2021.5.30 charset-normalizer-2.0.4 contextlib2-21.6.0 idf-component-manager-0.2.100b0 idna-3.2 pyyaml-5.4.1 requests-2.26.0 requests-toolbelt-0.9.1 schema-0.7.4 semantic-version-2.8.5 tqdm-4.62.2 urllib3-1.26.6
WARNING: You are using pip version 21.0.1; however, version 21.2.4 is available.
You should consider upgrading via the '/home/xuhongv/.espressif/python_env/idf4.4_py3.6_env/bin/python -m pip install --upgrade pip' command.
再一次编译,如下错误。
../main/CLI_Commands.c:54:10: fatal error: tusb_cdc_acm.h: No such file or directory
#include "tusb_cdc_acm.h"
^~~~~~~~~~~~~~~~
compilation terminated.
@xuhongv For convenience, we have added some modify in examples' cmakelists, you can build with the IDF b63ec47238fd6a
or latest master directly.
Environment
esp32-s2-kaluga-Kit V1.2
,ESP-LyraP-LCD32 v1.1
v4.4-dev-2184-g166c30e7b2
CMake
xtensa-esp32-elf-gcc (crosstool-NG esp-2021r1) 8.4.0
Linux
USB
Problem Description
在usb_camera_lcd_display例子里面,已经按照 README 文档里面按照好 ESP-IDF 环境,并且打好了补丁。
但是在
esp32-s2-kaluga
开发板无法正常驱动LCD屏幕,开启了使能 boot animation 开启开机动画,但依然无法点亮。下面是设备运行日志: