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

Bluetooth SDK

ToKo_4602001
Level 4
50 sign-ins 25 replies posted 25 sign-ins
Level 4

In the Low Power Mode (ePDS), GPIO settings are initialized except for UART_TX and UART_RX.

And GPIO I/O settings can be restored by using wiced_hal_gpio_slimboot_reenforce_cfg() when wake-up.

But UART hardware flow control setting is not restored so we issue the following APIs at wake-up and it works well.

------------------------------------------------------------------------------------------

  wiced_hal_gpio_select_function(WICED_P00, WICED_UART_2_RTS);

  wiced_hal_gpio_select_function(WICED_P10, WICED_UART_2_CTS);

  wiced_hal_puart_flow_on();

------------------------------------------------------------------------------------------

Now I'd like to set UART_RTS high (Flow ON) when CYW20819 enters into PLM (ePDS).

Does anyone have good method to achieve it?

Regards,

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi,

Are you calling wiced_platform_init() in post sleep callback? If not, please call it. This will initialize all the required pins and configure their functionality.

Please note that PUART hardware flow control has some in the current SDK. Our dev team has already fixed the issue, and the fix will be available on the next SDK. For now, you can try software flow control mechanism as a workaround where you can toggle RTS/CTS pins using GPIO APIs.

Thanks,

-Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi,

Are you calling wiced_platform_init() in post sleep callback? If not, please call it. This will initialize all the required pins and configure their functionality.

Please note that PUART hardware flow control has some in the current SDK. Our dev team has already fixed the issue, and the fix will be available on the next SDK. For now, you can try software flow control mechanism as a workaround where you can toggle RTS/CTS pins using GPIO APIs.

Thanks,

-Dheeraj

0 Likes