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

Bluetooth SDK Forum Discussions

YR1
Level 2
Level 2
5 questions asked 5 replies posted First solution authored

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 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
500 solutions authored 250 sign-ins 1000 replies posted

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

 

View solution in original post

0 Likes
1 Reply
Owen_Zhang123
Moderator
Moderator
Moderator
500 solutions authored 250 sign-ins 1000 replies posted

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

 

0 Likes
This widget could not be displayed.