After esp-idf update, uart_driver_install exception

KanyeKanye
Posts: 54
Joined: Mon Dec 05, 2016 12:34 am

After esp-idf update, uart_driver_install exception

Postby KanyeKanye » Sun Dec 18, 2016 11:39 am

After esp-idf update, UART doesnt work. The following code, result in:

Code: Select all

	uart_config_t uart_config;
    uart_config.baud_rate = 115200;
    uart_config.data_bits = UART_DATA_8_BITS;
    uart_config.parity = UART_PARITY_DISABLE;
    uart_config.stop_bits = UART_STOP_BITS_1;
    uart_config.flow_ctrl = UART_HW_FLOWCTRL_DISABLE;
    uart_config.rx_flow_ctrl_thresh = 120;

    uart_param_config(MODULE_UART_NUM, &uart_config);

    uart_set_pin(MODULE_UART_NUM, GPIO_NUM_26, GPIO_NUM_25, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
    uart_driver_install(MODULE_UART_NUM, 2048, 2048, 10, 17, NULL);

Code: Select all

Guru Meditation Error of type StoreProhibited occurred on core  0. Exception was unhandled.
Register dump:
PC      : 0x40105872  PS      : 0x00060e30  A0      : 0x801046ac  A1      : 0x3ffc37b0  
A2      : 0x00000002  A3      : 0x00000800  A4      : 0x00000800  A5      : 0x3ffbdfa4  
A6      : 0x3ffcb924  A7      : 0x00000000  A8      : 0x00000011  A9      : 0x3ffc3790  
A10     : 0x3ffcb924  A11     : 0x00000008  A12     : 0x00000000  A13     : 0x3ffcb924  
A14     : 0x3ffcb7c8  A15     : 0x3ffcb790  SAR     : 0x00000007  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000011  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  

Backtrace: 0x40105872:0x3ffc37b0 0x401046ac:0x3ffc3800 0x40103fb8:0x3ffc3840 0x400d0ffd:0x3ffc38a0


ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

Re: After esp-idf update, uart_driver_install exception

Postby ESP_Sprite » Mon Dec 19, 2016 8:39 am

A slightly more verbose reply: the prototype for uart_driver_install has changed. Please look up the new prototype in uart.h and change your code accordingly.

Who is online

Users browsing this forum: No registered users and 98 guests