void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t const *buffer, uint16_t bufsize)
{
(void)report_id;
// keyboard interface
if (instance == ITF_NUM_KEYBOARD)
{
// Set keyboard LED e.g Capslock, Numlock etc...
if (report_type == HID_REPORT ...
Search found 6 matches
- Thu Sep 14, 2023 2:05 am
- Forum: ESP-IDF 中文讨论版
- Topic: 请教关于蓝牙键盘例程,如何获取CapsLock键的状态?
- Replies: 2
- Views: 5617
- Wed Jul 12, 2023 11:19 pm
- Forum: ESP-IDF 中文讨论版
- Topic: menuconfig的 tinyusb msc 打开编译报错
- Replies: 0
- Views: 1567
menuconfig的 tinyusb msc 打开编译报错
[104/106] Linking C executable bootloader.elf
[105/106] Generating binary image from built executable
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated C:/mian/tusb_hid_copy/build/bootloader/bootloader.bin
[106/106] cmd.exe /C "cd /D C ...
[105/106] Generating binary image from built executable
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated C:/mian/tusb_hid_copy/build/bootloader/bootloader.bin
[106/106] cmd.exe /C "cd /D C ...
- Tue Jul 11, 2023 8:28 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决]在使用espidf iot 时候出现了设置目标失败的问题
- Replies: 7
- Views: 9887
Re: 在使用espidf iot 时候出现了设置目标失败的问题
ok,跑通了,但是这俩个我猜测应该不太能注释的把?你先把 gprof 目录下的 CMakeLists.txt 里这两行注释掉线。Code: Select all
include(package_manager) cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
这里有两个问题,第一个是 gprof 里,如果 gprof 没有被 enable,会导致你遇到的这个错误;第二个不知道你编译 spp_server 为什么会把 iot_solution 里的组件全部作为 extra component,正常命令行下编译 spp_server 不是这样的。
- Tue Jul 11, 2023 5:33 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决]在使用espidf iot 时候出现了设置目标失败的问题
- Replies: 7
- Views: 9887
Re: 在使用espidf iot 时候出现了设置目标失败的问题
你先在 menuconfig 中把 gprof 关了。
我觉得menuconfig可能也遇到错误了,这个menuconfig看起来报错退出了,
---------------------------ERROR--------------------------
CMake Error at managed_components/espressif__cmake_utilities/package_manager.cmake:43 (target_compile_options):
target_compile_options may only set INTERFACE ...
- Tue Jul 11, 2023 5:29 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决]在使用espidf iot 时候出现了设置目标失败的问题
- Replies: 7
- Views: 9887
Re: 在使用espidf iot 时候出现了设置目标失败的问题
没有做任何改动,我还尝试直接上路重现clone 一下,是同样的情况你是在 vscode 里导入了 solution 的 spp_server 示例?有没有做其他改动?
从 log 上看,编译的时候把 solution 中的 components 都加入了,而默认情况下 spp_server 并没有把 solution 下的 components 都加入。
- Tue Jul 11, 2023 2:55 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决]在使用espidf iot 时候出现了设置目标失败的问题
- Replies: 7
- Views: 9887
[已解决]在使用espidf iot 时候出现了设置目标失败的问题
我在使用vscode+espidf 使用master 版本, esp iot 也是master版本,拉取完成的iot我进入了blespp 想尝试编译一下这个代码,在使用vscode 的那个settager 按钮时候出现了这个问题,日志过长,我截取了看起来像是错误的代码
-- GPROF: 0.1.0
CMake Error at managed_components/espressif__cmake_utilities/package_manager.cmake:43 (target_compile_options):
target_compile_options may only set ...
-- GPROF: 0.1.0
CMake Error at managed_components/espressif__cmake_utilities/package_manager.cmake:43 (target_compile_options):
target_compile_options may only set ...