MTK function machine Platform catch log

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.