CYW20721(40-pin QFN) pin assign configuration for Audio_Headset_and_Speaker

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

cross mob
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Infineon support team.

We developed CYW20721(40-pin QFN) module and attempt to evaluate following application.

Tool: Modus Tool Box 2.4.0
App: Audio_Headset_and_Speaker

We would like to assign a discovery button(=pairing button) to P2 pin, LED1 to P16 pin.
Please tell us your advice to modify code for the pin configuration.

Thanks,
Tayo

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

I check the code again. For P02, you only need to change the code in wiced_platform.h like follows. (mtb_shared\wiced_btsdk\dev-kit\bsp\TARGET_CYW920721M2EVK-01\release-v3.3.0\wiced_platform.h).

This will change the pause/play/discover pin from P00 to P02.

//#define WICED_BUTTON1 (WICED_P00)////////
#define WICED_BUTTON1 (WICED_P02)
#define WICED_BUTTON2 (WICED_P38)
#define WICED_BUTTON3 (WICED_P34)
#define WICED_RESET_PIN WICED_P39 /* not used */

View solution in original post

0 Likes
6 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The latest SDK is MTB 3.0. I would suggest you update to the latest SDK.

For the pin setting, you can refer to wiced_platform.h and platform.c under mtb_shared\wiced_btsdk\dev-kit\bsp\TARGET_CYW920721M2EVK-01\release-v3.3.0. You can add your own configuration here.

0 Likes
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Owen-san

We modified cycfg_pin.c to assign like below. However, the discovery button(=P02) has not worked yet.

(wiced_platform.h and platform.c are not changed. )

cycfg_pin_c_image.jpg

Please tell us your advice to modify code for pin assignment. Can you show us an example code for our reference?

Thanks,

Tayo

0 Likes
SuKe_4819666
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

There are also port settings in cycfg_pins.c and cycfg_pins.h, do these files need to be modified?

0 Likes
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Owen-san

We have not understood exactly which file should be modified..
We would like to just assign discovery button(=pairing button) to P2 pin, LED1 to P16 pin.
In this case, cycfg_pins.c and cycfg_pins.h should be no changed? (We should modify only wiced_platform.h and platform?)

Thanks,
Tayo

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

I check the code again. For P02, you only need to change the code in wiced_platform.h like follows. (mtb_shared\wiced_btsdk\dev-kit\bsp\TARGET_CYW920721M2EVK-01\release-v3.3.0\wiced_platform.h).

This will change the pause/play/discover pin from P00 to P02.

//#define WICED_BUTTON1 (WICED_P00)////////
#define WICED_BUTTON1 (WICED_P02)
#define WICED_BUTTON2 (WICED_P38)
#define WICED_BUTTON3 (WICED_P34)
#define WICED_RESET_PIN WICED_P39 /* not used */

0 Likes
SuKe_4819666
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Hello Owen-san

The problem has been resolved.

Thank you.

Best Regards,

SuKe

 

0 Likes