4 Replies Latest reply on Aug 9, 2019 1:34 PM by RyDr_4315171

    wiced_gki_delay stack overflow

    RyDr_4315171

      Hi,

       

      I am using the delay function provided by wiced_gki.h, which provides a microsecond delay function, void wiced_gki_delay_us(uint32_t delay).

       

      I found however that this function often fails and creates a stack overflow when the delay is greater than about 1s, which is less than the maximum delay a uint32_t value could be. If there is a maximum which is below the variable's maximum this should probably be provided in the documentation/comments. If not, is there a reason this may be failing for larger values but works perfectly fine, even for values up to 0.5s?

       

      Thanks,

       

      Ryan