- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. )
Please tell us your advice to modify code for pin assignment. Can you show us an example code for our reference?
Thanks,
Tayo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are also port settings in cycfg_pins.c and cycfg_pins.h, do these files need to be modified?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Owen-san
The problem has been resolved.
Thank you.
Best Regards,
SuKe