CYBT-343026-01 GPIO Toggle Issue

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

cross mob
lock attach
Attachments are accessible only for community members.
NaDo_1344206
Level 1
Level 1
Welcome!

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

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
Level 1
Welcome!

My WICED-SDK Version : Wiced_006.002.001.0002.

0 Likes

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