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

How to handle the crash about APP_UART_COMMUNICATION_ERROR

Hi there:

     I'm now developing a product with 51822 using the SDK10.0 . The product communicate with another chip through UART. 

     My problem is when the UART crash with error code APP_UART_COMMUNICATION_ERROR(The error source is FRAMING ERROR), how can I recover the UART without reset 51822 ?

     I  have tried to re-init the UART when error occures, but it seems not working.

Parents Reply Children
  • Hi awneil, Your are right there is no reason to re-initialise the UART after framing error.

    If clear the ERROR REG, the RX task will still running.

    Pull up RX pin is a good idea for RX stable.

    I think maybe I have found the reason why UART  “crash” after error.

    See the picture below. The SDK will stop the UART when ERROR occured. So I delete those code and test my product.

    Now it's stable...

Related