可以修改文件nvram_common_config.c中NVRAM_EF_PORT_SETTING_DEFAULT的配置。
注意检查MMI版本和宏的开启情况。
static port_setting_struct const NVRAM_EF_PORT_SETTING_DEFAULT[]= { { #if defined (WISDOM_MMI) || defined(NEPTUNE_MMI) 0, /* tst-ps uses uart_port2(value is 1) */ 1, /* APP uses uart_port1 (value is 0) */ #elif defined(__USB_MULTIPLE_COMPORT_SUPPORT__) && defined(__L4_INIT_MULTIUSB_COM__) 0, /* TST-PS uses uart_port1 */ 5, /* ATCI uses uart_port_usb2 */ #else 0, /* tst-ps uses uart_port_null(value is 99) */ //配置tst-ps ,可用于连catcher抓log,0表示uart1,1表示uart2,...依此类推,99表示none 1, /* APP uses uart_port1 (value is 0) */ //配置ps,可用于通AT的uart口
#endif #if defined(EMPTY_MMI) //tst-ps的波特率设置,连catcher的话,catcher必须配置一致,如果是modem,就是EMPTY_MMI 921600, /* tst default baud rate for project without MMI */ #elif defined (WISDOM_MMI) /* under construction !*/ #elif defined(__USB_MULTIPLE_COMPORT_SUPPORT__) && defined(__L4_INIT_MULTIUSB_COM__) 921600, /* TST-PS baud uses 921600 */ #else 115200, /* tst default baud rate base = 115200 = 0x0001C200 */ #endif #if defined (__PS_SERVICE__) //ps的波特率设置,例如连超级终端下AT,超级终端com口的波特率必须与此配置一致 961200, /* ps default baud rate base = 115200 = 0x0001C200 */ #else 57600, /* ps default baud rate base = 57600 = 0x0000E100 */ #endif KAL_FALSE, /* High SpeedSIM */ 0, /* SWDBG */ #if defined(__ONLY_ONE_UART__) 1, /* uart power setting (0x03) */ #else 3, #endif 99, /* CTI uart port: uart_null (value is 0x63 (99) */ 0, /* CTI baud rate: auto*/ #if defined (WISDOM_MMI) || defined(NEPTUNE_MMI) 0, #elif defined(__USB_MULTIPLE_COMPORT_SUPPORT__) && defined(__L4_INIT_MULTIUSB_COM__) 1, /* TST-L1 baud uses uart_port2 */ #else 0, /* tst-l1 uart port, same as tst-ps*/ //配置tst-L1,与tst-ps的配置一致 #endif #if defined(EMPTY_MMI) //tst-L1的波特率设置,与tst-ps的波特率一致 921600, /* tst default baud rate for project without MMI */ #elif defined (WISDOM_MMI) /* under construction !*/ #elif defined(__USB_MULTIPLE_COMPORT_SUPPORT__) && defined(__L4_INIT_MULTIUSB_COM__) 921600, /* TST-L1 baud uses 921600 */ #else 115200, /* tst default baud rate base = 115200 = 0x0001C200 */ #endif 0, /* tst output mode*/ #if !defined( __UL1_STANDALONE__ ) 0, /* USB logging mode */ #else #if defined(__MODEM_3G_LOGGING__) && defined(_DSPIRDBG__) /* under construction !*/ #else 1, #endif /* defined(__MODEM_3G_LOGGING__) && defined(_DSPIRDBG__) */ #endif /* __UL1_STANDALONE__ */ 99, //TST-DSP 921600, //TST-DSP baudrate 0 // USB CD-ROM config, 0:CD-ROM , 1: COM }, };
|