Hi,
I set up a serial port and use it to communicate with another MCU, but recently there was a problem I couldn't solve.
I found that I sent a format symbol ("uart:~$") on the part of the MCU that received the serial port before sending it.
I searched and found that it was from zephyr macro definition CONFIG_SHELL_PROMPT_UART
I added the following macro definition to prj.conf file in my own project.
CONFIG_SHELL_PROMPT_UART=""
After my test, I found that the original ("uart:~$") did not exist, but 0x0d and 0x0a appeared in the serial port, which should be newline characters and carriage return characters.
I would like to ask whether this can be canceled?
Because it's affecting my MCU reception.
The following is the output of the serial port after I power on. The first output is 0x0a and 0x0d, and then 06 01
Note: 06 01 is a handshake protocol defined by me.
[11:02:15.345] 06 01 0D 0A 06 01 06 01 06 01 06 01 06 01 06 01 06 01