2个职位/ 0个新职位
最后发表
hssmltd
离线
最后看到:7个月9个小时前
加入:2015-09-05 08:29
arch_printf()格式

你好,
我尝试通过UART进行调试,
我在http://support.dialog-semiconductor.com/faq/how-debug-uart
当我打印一个字符串时,它会工作
arch_printf(“\ Test \ r \ n”);

但是当我尝试打印一个变量时:
int16 tmr0;
...
...
tmr0 = 10001;
arch_printf(“% Lx”,tmr0);
....

我收到以下错误在终端窗口:
致命:unsupporte

你能帮我改一下格式吗?
谢谢!

设备:
MT_dialog
离线
最后看到:2个月1个星期前
工作人员
加入:2015-06-08 34
嗨hssmltd,

嗨hssmltd,

你能试着使用这个- arch_printf("%i", test_counter++);

由于MT_dialog