UART2 communication problem

6 posts / 0 new
Last post
mortonmo
Offline
Last seen:5 years 2 months ago
Expert
加入:2014-07-24 07:35
UART2 communication problem

I was following section 13 of UM-B-003 (DA14580 Software development guide) to modify a freshly extracted SDK v3.0.4.0 template project in order to enable the console print on a BASIC version EVB.

However, I found that if I use the default C/C++ Optimization Level (-O3), the code will be stuck at the arch_strlen() function in app_console.c. If I changed the optimization level to (-O0), I can run the program successfully but no message can be printed at UART2.

I am using a USB <-> UART adapter connected to P1_3 and P1_2 which is tested to be functional. I have also tried to use an oscilloscope to probe the signal of P1_3 and P1_2 but none of these 2 pin have UART signal generated.

Can anyone provide suggestion to me to debug this UART2 problem? Or can give me some sample code which can enable the UART2 to output debug message?

Thank you so much for your help!

Mo

mortonmo
Offline
Last seen:5 years 2 months ago
Expert
加入:2014-07-24 07:35
Hi Joaquin,

Hi Joaquin,

Thank you for your reply.

I have tried to follow you steps but I still can't get the message output through UART2.
The DK board UART <-> PC UART works fine in the "peripheral_examples" project and I have connected P1_2 to T_RxD, and P1_3 to T_TxD already.

Following is a link to my modified template project from SDK 3.0.6, I am using the project setting describled in section 6.1 of UM-B-025 (User Manual for DA14580 Bluetooth Smart Development Kit - Basic).
http://wikisend.com/download/592272/template.zip

Would you mind to help me to have a look on the project? As I have tried everything that I could do to make UART2 works already...

Thanks,
Morton

mortonmo
Offline
Last seen:5 years 2 months ago
Expert
加入:2014-07-24 07:35
Thank you so much joaquin!

Thank you so much joaquin!

它works after I run the code on another EVB board... May be port P1_3 and P1_2 on my old board are damaged during development.

Morton

nhtvinh
Offline
Last seen:2 weeks 4 days ago
加入:2014-11-18 02:59
Hi Joanquin,

Hi Joanquin,
I'm developing the application use UART2 port, Can you help to send me the sample template_mortonmo for reference ? my email:nhtvinh@gmail.com

Thanks
Vinh Nguyen.

ren0zhe
Offline
Last seen:1 month 1 week ago
加入:2016-05-05 05:13
Hi Joanquin,

Hi Joanquin,
I'm developing the application use UART2 port, Can you help to send me the sample template_mortonmo for reference ?
my email:244532843@qq.com

Thanks

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
嗨ren0zhe,

嗨ren0zhe,

Please check your other post for information regarding the UART2 usagehttp://support.dialog-semiconductor.com/how-does-uart2-rx-interrupt-work, the post for this project is quite old and the implementation for the UART2 usage as well.

Thanks MT_dialog