Search found 5 matches

by mikkeldamsgaard
Sat Feb 04, 2023 8:02 pm
Forum: General Discussion
Topic: UART: How to find number of bytes that can be written non-blocking
Replies: 0
Views: 1183

UART: How to find number of bytes that can be written non-blocking

Given that you are using a TX buffer in the UART driver, how can I determine exactly how many bytes can be sent to the driver before it blocks/waits? I thought that uart_get_tx_buffer_free_size would deliver that number, but having tested it, that is not the case. Looking at the implementation and t...
by mikkeldamsgaard
Sat Feb 04, 2023 3:19 pm
Forum: ESP-IDF
Topic: uart_driver_delete does not empty TXFIFO
Replies: 0
Views: 1086

uart_driver_delete does not empty TXFIFO

Hey I have been chasing an issue where when I deleted an UART and then re-installed it, the data that was send was wrong. It all boiled down to the face that in uart_driver_delete, the TXFIFO of the uart is not emptied prior to disabling the module. Adding this codel before the the call to uart_modu...
by mikkeldamsgaard
Wed Oct 12, 2022 11:02 am
Forum: General Discussion
Topic: ESP32-S3-WROOM-1-N8R8 GPIO20 internal pull up issue
Replies: 2
Views: 2049

Re: ESP32-S3-WROOM-1-N8R8 GPIO20 internal pull up issue

We have tried to reset and configure pin 20, the results are If we reset and configure as input with no pullup and no pulldown, the pin generated 3.3v If we reset and configure as input with no pullup and pulldown, the pin generates 3.15v If we reset and configure as input with pullup and no pulldow...
by mikkeldamsgaard
Mon May 16, 2022 8:38 am
Forum: ESP-IDF
Topic: spinlock on esp32s3
Replies: 7
Views: 6187

spinlock on esp32s3

Hey Generally, it looks like to me that the spinlock logic has some issue when the freertos tasks do not have a core affinity specified. For example, the lwip task can be configured without core affinity and if I do that (CONFIG_LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY=y), then this happens after a few ...
by mikkeldamsgaard
Mon May 16, 2022 8:27 am
Forum: ESP-IDF
Topic: ESP32-S3 CONFIG_ESP32S3_DATA_CACHE_16KB
Replies: 0
Views: 1097

ESP32-S3 CONFIG_ESP32S3_DATA_CACHE_16KB

Hey I am having a few issues when I try to set the data cache to 16kb on the S3. I am on IDF 4.4.1 Issue 1: If at the same time, I enable CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP, then there is a compile error in esp32s3/memory_layout.c, I think there is a missing trailing comma in line 75. For ...