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

Studio Bluetooth

NaDo_1344206
Level 1
Welcome!
Level 1

Hi,

I had attached snapshot of error I am getting in WICED studio, below are the instructions.

     wiced_hal_gpio_set_pin_output(WICED_GPIO_PIN_LED_2,0);

     wiced_rtos_delay_milliseconds(500,KEEP_THREAD_ACTIVE );

    

     wiced_hal_gpio_set_pin_output(WICED_GPIO_PIN_LED_2,1);

     wiced_rtos_delay_milliseconds(500,KEEP_THREAD_ACTIVE );

This program is to toggle LED using delay function.

Please help me to resolve same.

Thanks.

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

Hi Nainesh,

Can you please confirm if you are using CYBT-343026 or not?

wiced_rtos_delay_milliseconds function is not exposed/ supported for 20706 . You may have to use timers for delay.

Please refer to gpio snip ( /20706-A2_Bluetooth/apps/snip/hal/gpio ) as reference for toggling LED .

Also please note, don't use while(1) loop inside Application_start.

Thanks,

Anjana

View solution in original post

2 Replies
NaDo_1344206
Level 1
Welcome!
Level 1

My WICED-SDK Version : Wiced_006.002.001.0002.

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

Hi Nainesh,

Can you please confirm if you are using CYBT-343026 or not?

wiced_rtos_delay_milliseconds function is not exposed/ supported for 20706 . You may have to use timers for delay.

Please refer to gpio snip ( /20706-A2_Bluetooth/apps/snip/hal/gpio ) as reference for toggling LED .

Also please note, don't use while(1) loop inside Application_start.

Thanks,

Anjana