Getting random USB_UART_CHIP_RESET
Posted: Mon Nov 11, 2024 11:32 am
I made several prototypes of my custom board that is powered by external power supply and uses the USB connection (USB_D+, USB_D-) for programming and UART only.
I'm sure I'm doing something wrong in my firmware (quite large) because since few days I'm getting random resets with the cause `USB_UART_CHIP_RESET`:
Of course I'm trying to comment out some part of my code to find the culprit, but I wonder what can cause such a reset so I can search in the right direction.
I use the USB port for sending out messages, with `ESP_LOGI` for example, or to receive data using the `usb_serial_jtag`driver:
and
called every 50 ms.
What can cause such a reset?
I'm sure I'm doing something wrong in my firmware (quite large) because since few days I'm getting random resets with the cause `USB_UART_CHIP_RESET`:
Of course I'm trying to comment out some part of my code to find the culprit, but I wonder what can cause such a reset so I can search in the right direction.
I use the USB port for sending out messages, with `ESP_LOGI` for example, or to receive data using the `usb_serial_jtag`driver:
Code: Select all
usb_serial_jtag_driver_config_t usb_serial_jtag_config =
{
.rx_buffer_size = NMEA_BUFFER_SIZE,
.tx_buffer_size = NMEA_BUFFER_SIZE,
};
usb_serial_jtag_driver_install(&usb_serial_jtag_config);
usb_serial_jtag_vfs_register();
usb_serial_jtag_vfs_use_driver();
uart_vfs_dev_register();
Code: Select all
int len = usb_serial_jtag_read_bytes(buffer, (BUFFER_SIZE - 1), 20 / portTICK_PERIOD_MS);
What can cause such a reset?