Long time no use this, record memo.
Main make file modification:
Kal_trace_output = Full
Kal_debug_level = Slim_debug_kal # Rich_debug_kal > Normal_debug_kal > Slim_debug_kal > Release_kal.
If you do not want to enter the project mode settings can catch log, you need to modify the NV:
Nvram_ef_port_setting_default
typedef struct
{
Kal_uint16 Tst_port_ps;
Kal_uint16 Ps_port;
Uart_baudrate Tst_baudrate_ps;
Uart_baudrate ps_baudrate;
Kal_bool high_speed_sim_enabled;
Kal_uint8 swdbg;
Kal_uint8 uart_power_setting; /* for DCM, Start [Set UART POWER], CTI */
Kal_uint8 Cti_uart_port;
Uart_baudrate cti_baudrate;
Kal_uint8 tst_port_l1;
Uart_baudrate tst_baudrate_l1;
Kal_uint8 Tst_output_mode;
Kal_uint8 Usb_logging_mode;
Kal_uint16 TST_PORT_DSP;
Uart_baudrate TST_BAUD_RATE_DSP;
Kal_uint8 Usb_cdrom_config;
} port_setting_struct;
TST_PORT_PS,TST_PORT_L1, set to the same, 99 means that the none,0 is UART is uart2,4 is USB, with USB capture log, generally set to 4, or set to UART_PORT_USB.
two baud rate, to set to the same, the USB can be set to 961200.
USB Capture Log, the code will not enter sleep.
One more thing: USB Capture log must be powered on.
Catcher if there is no log out, set the filter.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MTK function machine Platform catch log