- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
AIROC™ Bluetooth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @adam,
thanks for the suggestion I'll try it