Skip to main content

How to use UART1 for debugging while UART2 is used for communication with another microcontroller

DA14580

1 year ago

Posted by feitian0409 0 points 3 replies
0 upvotes

Hi,

 

Based on the project ble_app_peripheral, I use UART2 for communication with another microcontroller.

If I want to use UART1 for debugging, how to realize it.

 

Best Regards,

Fei

1 year ago

PM_Dialog

Hi feitian0409,

If the CFG_PRINTF macro is defined, then the SDK defines the CFG_PRINTF_UART2 macro, which means that the UART2 hardware block is used for debugging scopes (arch_printf). Why don’t you change the UART communication with the other microcontroller to UART1 and use UART2 for debugging scopes? Is it any specific requirement for this?

Thanks, PM_Dialog

1 year ago

feitian0409 0 points

Hi, PM_Dialog

 

There is no specific requirement. We made a mistake with the UART application and that is the result.

Is there any possibilities to realize it.

 

Best Regards,

Fei

1 year ago

PM_Dialog

Hi Fei,

As mentioned before the SDK used the UART2 for debuggeign perposes. Is is HW mistake on the scheatic? You can configure any GPIO as UART2.

Thanks, PM_Dialog