Question about wiced_rtos_delay_microseconds(...) upon reset issue

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

cross mob
Anonymous
Not applicable

Hi Jaeyoung,

Please take a look at:

http://community.broadcom.com/message/16038#16038

Seems this issue is still in SDK-3.3.1.

Can you confirm if this issue is fixed or not for all platforms in SDK-3.3.1?

0 Likes
3 Replies
JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

Hi Sam,

I've verified it with 43341WCD1 and 43362WCD4. After power cycling it has no problems in using the delay functions. May I ask which platform you are using that are occurring problems?

Thanks,

Jaeyoung

0 Likes
Anonymous
Not applicable

Hi Jaeyoung,

I just test again and found I cannot reproduce this issue on SDK-3.3.1.

I'm testing on BCM4390 and I can reproduce this on SDK-3.1.2.

Do you have patch to fix this issue on SDK-3.1.2?

Thanks.

0 Likes

Hi Sam,

The problem is the cycle count enable register bit is not getting set after the board gets power cycled in SDK 3.1.2. You can do the following to get it working properly.

1. In your application code, insert the following line into application_start() after wiced_init().

     platform_init_nanosecond_clock();

     app_start.PNG

2. If you are using STM32F2xx as the host MCU (BCM9WCDPLUS114 and BCM943362WCD4) you will have to copy the file platform_nsclock.c from

     <copy source>: <SDK>/WICED/platform/MCU/STM32F4xx/peripherals/

     <copy destination>: <SDK>/WICED/platform/MCU/STM32F2xx/peripherals/

3. Also change the peripherals.mk in

     <SDK>/WICED/platform/MCU/STM32F2xx/peripherals/

     to add the platform_nsclock.c to the source file list.


Let me know if this solves the issue.


Thanks,

Jaeyoung

0 Likes