NXP_Kinetis_Bootloader_2_0_0 debug_printf

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

NXP_Kinetis_Bootloader_2_0_0 debug_printf

1,369 次查看
张华荣
Contributor II

Hi,

I found the debug_printf function in NXP_Kinetis_Bootloader_2_0_0.

but the function do not put char to a uart,and i can not found the terminal uart init function.

 

static inline void debug_printf(const char *format, ...)
{
va_list args;
va_start(args, format);
vprintf(format, args);
// Temporarily disable MISRA rule 14.2
#if defined(__ICCARM__)
#pragma diag_suppress = Pm049
#endif
va_end(args);
#if defined(__ICCARM__)
#pragma diag_default = Pm049
#endif
}

标签 (1)
3 回复数

955 次查看
ramboyang
NXP Employee
NXP Employee

This debug_printf will be removed from Kinetis Bootloader in the future, please do not try to use it in your application.

0 项奖励
回复

955 次查看
collinmoore
Contributor II

Hi, I am using the Kinetis v2.0.0 bootloader (with KDS) in 2018, and debug_printf is still used in there. I cannot find out where the output is routed to. I would like to use semihosting with a handler for running standalone, like most NXP example projects do.

I like the configurability of interfaces (I2C, UART, SPI) for bootloading, but I can't figure out how to choose a UART or semihosting for debug_printf().

0 项奖励
回复

955 次查看
F50SC
Contributor III

Hi Fan

Can please you share how to get printf working in the bootloader?