Search found 26 matches

by drmacro
Fri Jan 17, 2020 2:47 pm
Forum: ESP-IDF
Topic: Version of IDF currently installed and how to update to latest
Replies: 0
Views: 2355

Version of IDF currently installed and how to update to latest

I have not found a clear answer in my searches... How do I tell what version of the idf I have installed? And, I have the following directory that I think is the idf, as added to platformio: /home/mac/.platformio/packages/framework-espidf/ This directory appears to have the git files. Can I cd to fr...
by drmacro
Wed Jan 15, 2020 7:54 pm
Forum: Hardware
Topic: HardwareSerial break detect then read bytes
Replies: 3
Views: 4790

Re: HardwareSerial break detect then read bytes

No. But it turned out to be more complex than this post captures. The UART driver can detect the break. And it will then return received data, but only data streams that fall on 120 byte boundaries. It has been logged as an issue in github, where I describe in gory detail what I think is going on: H...
by drmacro
Sun Dec 22, 2019 9:02 pm
Forum: ESP-IDF
Topic: UART driver low level detals and false break detect
Replies: 2
Views: 4785

Re: UART driver low level detals and false break detect

The best I can tell the following is going on. after the break detect, it reads 120 bytes for each UART_DATA event. (i.e. the event is triggered when the fifo gets to 120 chars.) because after 480, it only sees 32 bytes. these bytes are never read, because the 120 threshold is never hit; event not t...
by drmacro
Sat Dec 21, 2019 2:50 pm
Forum: ESP-IDF
Topic: UART driver low level detals and false break detect
Replies: 2
Views: 4785

UART driver low level detals and false break detect

Is there anyone here who has detailed knowledge of the inner workings of the uart driver? Any guru's about? ;) I am having problems receiving a 512 byte broadcast. It returns a break detect status after 480 bytes (it is receiving them 120 at a time). It does receive the first 360 bytes, but at that ...
by drmacro
Thu Dec 19, 2019 8:11 pm
Forum: ESP-IDF
Topic: UART receive break detect
Replies: 0
Views: 2457

UART receive break detect

I have looked at the .h for the uart. It has a typedef for uart event types. One type is UART_BREAK. The .h file goes on to declare the write function with break, but no mention of reading. I have code that reads based on the break. (I didn't write it...) The data stream is 513 bytes after the break...
by drmacro
Thu Dec 19, 2019 3:17 pm
Forum: ESP-IDF
Topic: ESP-IDF and FreeRTOS
Replies: 5
Views: 6760

Re: ESP-IDF and FreeRTOS

Note that you may get the same effect (code run before FreeRTOS starts) by defining your function as a constructor: void __attribute__((constructor)) my_function(void) { ... } Make sure that the C file where you put this function in has something (another function or a variable or symbol) that gets...
by drmacro
Wed Dec 18, 2019 8:55 pm
Forum: General Discussion
Topic: Unable to find include files in freertos folder
Replies: 8
Views: 13472

Re: Unable to find include files in freertos folder

The confusion is all my fault. :oops: I stumbled on the relative directory "fix" (i.e. "freertos/FreeRTOSConfig.h") when looking for the file for an issue totally unrelated to the original post of this thread. The unrelated issue (the use of the startup hook) was mixed into this thread, by me, attem...
by drmacro
Wed Dec 18, 2019 7:40 pm
Forum: General Discussion
Topic: Unable to find include files in freertos folder
Replies: 8
Views: 13472

Re: Unable to find include files in freertos folder

#confussed Adding "freertos/" in front does work and is apparent in many examples. So what's up? But, my confusion stems from yesterday. I swear I looked for that file because I wanted to use to set configUSE_DAEMON_USE_TASK_STARTUP_HOOK And I couldn't find the file FreeRTOSConfig.h. But, today it'...
by drmacro
Wed Dec 18, 2019 6:35 pm
Forum: General Discussion
Topic: Unable to find include files in freertos folder
Replies: 8
Views: 13472

Re: Unable to find include files in freertos folder

Adding "freertos/" in front does work and is apparent in many examples. But, my confusion stems from yesterday. I swear I looked for that file because I wanted to use to set configUSE_DAEMON_USE_TASK_STARTUP_HOOK And I couldn't find the file FreeRTOSConfig.h. But, today it's there. :oops: Clarifying...