Bug Report: Wiced_006.002.001.0002 / wiced_hal_gpio_configure_pin()

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.
StN__1917156
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

Platform CYW20719/CYBT_413034_EVAL

wiced_hal_gpio_configure_pin() with config param = GPIO_OUTPUT_ENABLE (16384) fails

Attached are logs and used code (only added extra TRACEs to snip/hal/gpio example)

wiced_hal_gpio_configure_pin(output_pin_list[index], GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH); //fails

WICED_BT_TRACE("BeforeO pin: %d  cfg: %d default: %d\n\r",

output_pin_list[index],

GPIO_OUTPUT_ENABLE,

GPIO_PIN_OUTPUT_HIGH);

//prints: BeforeO pin: 26  cfg: 16384 default: 1

WICED_BT_TRACE("AfterO pin: %d  cfg: %d default: %d\n\r",

output_pin_list[index],

wiced_hal_gpio_get_pin_config(output_pin_list[index]),

wiced_hal_gpio_get_pin_output(output_pin_list[index]));

       //prints: AfterO pin: 26  cfg: 0 default: 1

Also proposal – better wiced_hal_gpio_configure_pin to return Ok|ErrorCode instead void

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

Hello,

Thanks for pointing out the findings.

I will forward this to our software team. Sorry for the inconvenience caused.

Regards,
Anjana

View solution in original post

1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello,

Thanks for pointing out the findings.

I will forward this to our software team. Sorry for the inconvenience caused.

Regards,
Anjana