Audio_Headset 20706 样例

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YR1
Level 4
Level 4
100 sign-ins 10 questions asked 25 replies posted

AVRCP target功能无法使用.

 

hci_control.c  第887行 

    case HCI_CONTROL_GROUP_AVRC_TARGET:
        // hci_control_avrc_handle_command( opcode, p_data, payload_len );
        break;
注释了功能,放开后编译失败.
 
 

Linking output file Handsfree.elf
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/46996/mtw/Audio_Headset/build/CYW920706WCDEVAL/Debug/hci_control.o: in function `hci_control_proc_rx_cmd':
C:\Users\46996\mtw\Audio_Headset/hci_control.c:887: undefined reference to `hci_control_avrc_handle_command'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [../mtb_shared/core-make/release-v1.9.1/make/core/build.mk:529: C:/Users/46996/mtw/Audio_Headset/build/CYW920706WCDEVAL/Debug/Handsfree.elf] Error 1
make: *** [../mtb_shared/core-make/release-v1.9.1/make/core/main.mk:434: secondstage_build] Error 2
"C:/Infineon/Tools/ModusToolbox/tools_3.0/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=3.0 CY_IDE_TOOLS_DIR=C:/Infineon/Tools/ModusToolbox/tools_3.0 -j8 all" terminated with exit code 2. Build might be incomplete.

13:56:40 Build Failed. 4 errors, 0 warnings. (took 16s.43ms)

 

0 点赞
1 解答
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

因为在一般的耳机应用中,耳机都是作为AVRC Controller使用的,所以这个demo里没有Target的代码。

 

在原帖中查看解决方案

0 点赞
1 回复
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

因为在一般的耳机应用中,耳机都是作为AVRC Controller使用的,所以这个demo里没有Target的代码。

 

0 点赞