This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 reinitialize the UART

Hello.

I am working on ble project and using uart communication between bluetooth and stm32. I need to reinitialize uart module in case of any error in event handler but I don't know how to do.  I found an example that was used serial_dfu_transport_init and serial_dfu_transport_close functions. Is it a good idea using dfu transport? Is there any solution or example for my problem? Thanks.

Parents
  • Hi 

    Which UART driver are you using?

    It shouldn't be necessary to re-initialize the UART in the cause of a UART error, it is just meant as a notification to the application that there might be issues on the UART bus. 

    Using the serial_dfu_transport library in place of one of the regular UART drivers is not recommended, unless you want to use DFU over UART. 

    Best regards
    Torbjørn

Reply
  • Hi 

    Which UART driver are you using?

    It shouldn't be necessary to re-initialize the UART in the cause of a UART error, it is just meant as a notification to the application that there might be issues on the UART bus. 

    Using the serial_dfu_transport library in place of one of the regular UART drivers is not recommended, unless you want to use DFU over UART. 

    Best regards
    Torbjørn

Children
Related