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

AIROC™ Bluetooth

kmantem
Level 1
10 sign-ins 5 questions asked 5 sign-ins
Level 1

Hello

We have a custom CYW20719B1 that we are building, but we are looking to use the internal clock.   Are there any commands/calls settings we need to make in our code (WICED 6.4) to force the use of internal clock?

We have noticed that when we try to use timers , advertise BLE directly, or wake threads from sleep, we are not able to on the custom board we have developed.   These seem to only work if we have a periodic thread running that is in a while loop and waits with KEEP_THREAD_ALIVE set.

 

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hello @kmantem ,

First I would like to tell you that CYW20719B1 is not recommended for new developments. We suggest to use CYW20719B2. 

Now for your main query, I think you are not using 32K external clock in your 20719B1 custom board and you are facing issues.  Am I correct ?

If then, the issue is in WICED 6.4, by default it tries to enable external LPO and if it is not available then The FW will hang on waiting for the external 32k enable thus causing board dead. 

There are ways to enable /disable external 32K crystal in new version 20719B2 (in MTB) but not available explicitly for B1 version. 

One suggestion is to try the patches available here: https://community.cypress.com/t5/Knowledge-Base-Articles/Platform-and-New-Patch-Files-For-20719B1-in... 

This patches was released so that the 20719B1 modules (which does not have a exteral 32K LPO ) will work. So you can try using this patches in your application and try if it helps. Note : You may have to define the below in platform.h file

#define EXTERNAL_LPO_NOT_PRESENT TRUE 

Please let me know if this helps. 

Regards,

Anjana

 

View solution in original post

0 Likes
4 Replies
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hello @kmantem ,

First I would like to tell you that CYW20719B1 is not recommended for new developments. We suggest to use CYW20719B2. 

Now for your main query, I think you are not using 32K external clock in your 20719B1 custom board and you are facing issues.  Am I correct ?

If then, the issue is in WICED 6.4, by default it tries to enable external LPO and if it is not available then The FW will hang on waiting for the external 32k enable thus causing board dead. 

There are ways to enable /disable external 32K crystal in new version 20719B2 (in MTB) but not available explicitly for B1 version. 

One suggestion is to try the patches available here: https://community.cypress.com/t5/Knowledge-Base-Articles/Platform-and-New-Patch-Files-For-20719B1-in... 

This patches was released so that the 20719B1 modules (which does not have a exteral 32K LPO ) will work. So you can try using this patches in your application and try if it helps. Note : You may have to define the below in platform.h file

#define EXTERNAL_LPO_NOT_PRESENT TRUE 

Please let me know if this helps. 

Regards,

Anjana

 

0 Likes
kmantem
Level 1
10 sign-ins 5 questions asked 5 sign-ins
Level 1

Anjana,


Thank you. You are correct we do not have a 32 MHZ crystal.

I am trying to locate the platform.h but not sure where it is the set of includes - could you point me to the correct file as we would like to see if the patches work

 

 

0 Likes
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hello @kmantem 

You add the patches and try without #define EXTERNAL_LPO_NOT_PRESENT TRUE  first .

If still not working , try add #define EXTERNAL_LPO_NOT_PRESENT TRUE  in file available here : /20719-B1_Bluetooth/platforms/CYW920719Q40EVB_01/wiced_platform.h 

After any changes / modification , please do clean and build 

Regards,

Anjana

0 Likes
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hello @kmantem 

Can you please let us know if you are still facing any issues?

Regards,

Anjana

0 Likes