雷竞技电竞平台对话半导体客户支持- arch_printf https://support.dialog-semiconductor.com/resource-keywords/archprintf arch_printf()如何打印浮点数字? https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/how-archprintf-can-print-float < 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 >嗨对话框工程师:< br / >当我调试我的传感器数据,我发现这个问题很难解决。< / p > < p >当我使用角度func(例:这些“可信赖医疗组织”,世界…)来处理浮点数数字,我用arch_printf()函数来打印浮动数字对于我的应用程序,我看到了警告:“致命的:不支持的printf字符:f。”,我的问题是如何输出浮点数字uart调试吗?

;短gy;
;短啊;
short Axyz;浮动angleX; float angleY; float angleZ;

MPU_Get_Gyroscope(&gx, &gy, &gz);
MPU_Get_Accelerometer(&ax, &ay, &az);

Axyz = ax * ax + ay * ay + az * az;
angleX = acos((double)(ax/sqrt(Axyz))) * 57.295780f;
angleY = acos((double)(ay/sqrt(Axyz))) * 57.295780f;
angleZ = acos((double)(az/sqrt(Axyz))) * 57.295780f;

arch_printf("%f, %f, %f\r\n", angleX, angleY , angleZ );

when the sensor run, the console output : "FATAL: unsupported printf character: f., FATAL: unsupported printf character: f., FATAL: unsupported printf character: f."
i check the arch_printf(), find that arch_printf() does not support formart float & double.
so how can i debug the float data with arch_printf()?
pls help me, ths.

Keywords: 
Device: 
星期三,2016年10月19日09:50:26 +0000 liliou26 4792年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/how-archprintf-can-print-float#comments
如何打开uart2打印调试器信息 https://support.dialog-semiconductor.com/how-open-uart2-printing-debugger-information < 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 >你好,< br / >的“arch_printf()是经常使用的。那么如何让他们真正被称为。
我已经在“da1458x_config_basic.h”中定义了“#define CFG_PRINTF”,但它仍然不能工作。< br / >谢谢。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / archprintf”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > arch_printf < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da14580”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14580 < / > < / div > < / div > < / div >
星期二,2016年5月3日08:29:57 +0000 z20121202038 3346 athttps://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/how-open-uart2-printing-debugger-information#comments