您好,我正在使用DA14580做项目开发,我希望用打印的方式跟踪调试,我发现论坛上有一些关于打印问题的帖子,但是都没有得详细的回复。
我的问题:我参考的是UM-B-003中的第13章:13 Console print using the UART ,我认为这是一个参与内核调度的打印功能,因为之前我自己按照论坛上提示方法所完成的打印功能在系统运行是都不能正常的工作,所以我决定用这个打印功能,我按照文档操作后,编译没有任何问题。但是当我运行时打印却不起作用。我不确定是什么问题,因为我的手里没有更详尽的资料。
请问:UM-B-003中的第13章:13 Console print using the UART 中所提供的打印功能是否真的能正常工作,如果可以是否能提供一个完整的工程例程供参考?
谢谢!
Mon, 2014-09-29 10:00
#1
关于打印的问题。
can you help me?
Your question is well understood. Will come back to you in a few days with an example.
thank you very much!!! looking forward your response!
while ,I think I didn't need this function. So how to Knot paste? PS:I used the J-link RTT to achieve the target.
Dear Sir,
Following this approach, I try to put the print function
@arch_main.c
arch_printf("123\r\n");
while(1)
....
I will always get
[22:32:04.132] 67 B3 56 EB 00
by HEX option.
What's the issues? Thanks a lot!
Br,
ZHANG.
Hi Que,
Thanks on your feedback. Actually I am using quite popular terminal tool (sscom32) and Serial Port Utility, they are showing the exact same result. I change the string to different ones (fg "hello world"), result is also the same. Regarding to character setting, for sure it is 115200/8/N/1 and I even try other different combination, no improvement.
I am blocked here for almost 3 days, although my other BLE function fly quite far away. Thanks a lot on your help.
BTW, my board is using PORT2 - 3/4 for UART2 console TX/RX, without GND/CTS/RTS.
Br.
ZHANG.
Change the RS232 to TTL voltage, it works!!! Thanks a lot!
Br,
ZHANG.