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 Reply
  • Hi

    You should probably try to figure out why the errors happen in the first place. 

    If you get regular errors from the UART driver it is pointing to some issue on the bus itself, or in the configuration of the two devices, that leads to signalling issues. 

    Have you checked the UART lines with a scope to see if you can actually spot the issue on the bus?

    What UART settings are you using?

    Best regards
    Torbjørn

Children
No Data
Related