arch_printf() formatting

2 posts / 0 new
Last post
hssmltd
Offline
Last seen:6 months 2 weeks ago
加入:2015-09-05 08:29
arch_printf() formatting

Hi,
I'm trying to debug via UART,
i followed the FAQ athttp://support.dialog-semiconductor。com/faq/how-debug-uart
and it works when I print a string like
arch_printf("\Test\r\n");

but when i try to print a variable :
int16 tmr0;
...
...
tmr0=10001;
arch_printf("%Lx",tmr0);
....

i receive following error in terminal window:
FATAL: unsupporte

Can you please help me with correct formatting?
Thanks!

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi hssmltd,

Hi hssmltd,

Can you please try to use something this - arch_printf("%i", test_counter++);

Thanks MT_dialog