3 Replies Latest reply on Aug 12, 2015 9:52 AM by jayi

    Question about wiced_rtos_delay_microseconds(...) upon reset issue

    sam.lin

      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?

        • 1. Re: Question about wiced_rtos_delay_microseconds(...) upon reset issue
          jayi

          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

          • 2. Re: Question about wiced_rtos_delay_microseconds(...) upon reset issue
            sam.lin

            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.

            • 3. Re: Question about wiced_rtos_delay_microseconds(...) upon reset issue
              jayi

              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