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

cross mob
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi,

I initialize pUART like below:

wiced_set_debug_uart( WICED_ROUTE_DEBUG_NONE );
wiced_hal_puart_init();
wiced_hal_puart_select_uart_pads( PUART_RX_PIN, PUART_TX_PIN, 0, 0);

/* Set flow control */
wiced_hal_puart_flow_off();
/* BEGIN - puart interrupt */
wiced_hal_puart_reset_puart_interrupt();
wiced_hal_puart_register_interrupt(puart_rx_interrupt_callback);
/* Turn on Tx */
wiced_hal_puart_enable_tx();

it's work fine, but I am curious about is it possible to disablede-initialize) pUART Rx?

I find pUART Tx disable/enable , Rx enable API in wiced_hal_puart.h

, but no Rx disable.

thanks.

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

Hello @adam 

Yes , there is no specific API for disabling PUART Rx. 

Can you please let us know what is the relevant use case for the same ? If its a valid use case , I can raise a internal request to add the API.

Regards,

Anjana 

View solution in original post

0 Likes
4 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello @adam 

Yes , there is no specific API for disabling PUART Rx. 

Can you please let us know what is the relevant use case for the same ? If its a valid use case , I can raise a internal request to add the API.

Regards,

Anjana 

0 Likes
jakub
Level 1
Level 1
10 sign-ins 5 sign-ins First like given

Hello @AnjanaM_61 ,

I happened to be searching for such a feature (BTW I am using the CYW20719). Not sure if it is a valid use case in your eyes but here's what I have:

I have two MCUs the CYW20719 and a different MCU. I want to do a OTA update of the other MCU via CYW20719. So the plan is to reset the other MCU into bootloader and use the PUART to communicate with the bootloader and perform and SW update. Note that I am also using the PUART in normal operation for communication between the two MCUs. So the problem I have is that when I reset the other MCU its TX line pin is floating or going through some undefined states and I am reading some gibberish on CYW20719 RX line. That is why I would prefer to disable RX line until the other MCU restarts and its TX line is initialized again.

Regards,

Jakub.

0 Likes
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi @jakub , 

I have tried wiced_hal_gpio_configure_pin() to configure pUART Rx pin as normal GPIO pin, and pUart Rx seem stop working, maybe it is another way to disable pUART Rx.

jakub
Level 1
Level 1
10 sign-ins 5 sign-ins First like given

Hi @adam,

thanks for the suggestion I'll try it

0 Likes