2015-04-28 11:19 PM
How I can print float or integer values to serial port?
Is debug window access is there like 'debug.print'? If yes, how to access that? Any example for it?Thanks.Mike.2015-04-29 08:38 AM
chprintf(chp,
''%.8lx %.8lx %4lu %4lu %9s %lu
''
,
(uint32_t)tp, (uint32_t)tp->p_ctx.sp,
(uint32_t)tp->p_prio, (uint32_t)(tp->p_refs - 1),
states[tp->p_state], (uint32_t)tp->p_time);
for float : (non official)
you have : to add ''-msoft-float'' in your compiler option to emulate float by software. for Chibios , in chibios.h , #define CHPRINTF_USE_FLOAT TRUEchprintf(chp ,
''%f''
...)
in the next releases , we will update Platform Component .
Best regards
Erwan