yabo国际娱乐对话半导体客户支持- UART BLE-barebones printf https://support.dialog-semiconductor.com/resource-keywords/uart-ble-barebones-printf 将UART添加到BLE基本示例项目 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/adding-uart-ble-barebones-sample < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >我想研究使用使用DA14580 DA14580祝福

我认为不可能使用printf()函数来调试使用Keil ( https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl..。< / >),所以我试图从作品的添加UART功能示例程序到BLE贫乏的项目< / p > < p >我添加了一组common_uart ble_app_barebone_580凯尔,在项目树视图,包括common_uart.c这组< / p > < p > common_uart.c和common_uart.h文件在文件夹中添加“…ble_app_barebone\src"

我在user_barebone .c中添加了以下行
#include "common_uart.h"
printf_string("Entered user_app_adv_start\n");它停止在点

__asm("BKPT #0\n");

在nmi_handler.c

我没有执行任何初始化的UART,我认为可能导致这。我的问题是:

1。这是在骨架项目中添加UART的正确方法吗?< br / > 2。在骨架项目中的main()函数在哪里?我发现int main_func(void){..在arch_main.c}。 Is this the main function? Is it safe to edit this file to add UART initialization code?
3. Am I correct in understanding that I cannot use printf() function to add diagnostic messages?

Device: 
周二,2018年2月6日09:13:33 +0000 mahaju 146825年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/adding-uart-ble-barebones-sample#comments