关于打印的问题。

8 posts / 0 new
Last post
liyang
Offline
Last seen:3 months 3 weeks ago
Expert
Joined:2014-09-24 11:51
关于打印的问题。

您好,我正在使用DA14580做项目开发,我希望用打印的方式跟踪调试,我发现论坛上有一些关于打印问题的帖子,但是都没有得详细的回复。
我的问题:我参考的是UM-B-003中的第13章:13 Console print using the UART ,我认为这是一个参与内核调度的打印功能,因为之前我自己按照论坛上提示方法所完成的打印功能在系统运行是都不能正常的工作,所以我决定用这个打印功能,我按照文档操作后,编译没有任何问题。但是当我运行时打印却不起作用。我不确定是什么问题,因为我的手里没有更详尽的资料。
请问:UM-B-003中的第13章:13 Console print using the UART 中所提供的打印功能是否真的能正常工作,如果可以是否能提供一个完整的工程例程供参考?
谢谢!

liyang
Offline
Last seen:3 months 3 weeks ago
Expert
Joined:2014-09-24 11:51
can you help me?

can you help me?

WI_Dialog
Offline
Last seen:3 days 1 hour ago
Staff
Joined:2014-01-03 16:21
Your question is well

Your question is well understood. Will come back to you in a few days with an example.

liyang
Offline
Last seen:3 months 3 weeks ago
Expert
Joined:2014-09-24 11:51
thank you very much!!!

thank you very much!!! looking forward your response!

liyang
Offline
Last seen:3 months 3 weeks ago
Expert
Joined:2014-09-24 11:51
while ,I think I didn't need

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.

smdzjl007
Offline
Last seen:3 years 8 months ago
Joined:2015-08-04 15:07
Dear Sir,

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.

smdzjl007
Offline
Last seen:3 years 8 months ago
Joined:2015-08-04 15:07
Hi Que,

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.

smdzjl007
Offline
Last seen:3 years 8 months ago
Joined:2015-08-04 15:07
Change the RS232 to TTL

Change the RS232 to TTL voltage, it works!!! Thanks a lot!

Br,
ZHANG.