Search found 5 matches

by dejan.ns
Mon Jan 08, 2018 12:17 pm
Forum: ESP-IDF
Topic: Use GPIO API from IRAM ISR
Replies: 2
Views: 4230

Use GPIO API from IRAM ISR

I am writing a OneWire protocol handling task and I am using a timer ISR with IRAM attribute set to achieve precise timing (order of uS) needed to handle One Wire protocol. Can I use regular GPIO API functions inside IRAM ISR? If not, how can I read, write and change direction of the GPIO (on the fl...
by dejan.ns
Tue Dec 26, 2017 12:19 pm
Forum: ESP-IDF
Topic: Conditions for UART_DATA event
Replies: 1
Views: 3274

Conditions for UART_DATA event

Hi guys, I wander what exact condition(s) in uart rx data stream have to be met for the uart driver to fire an UART_DATA event. Is it a timeout between successive bytes and if so, what is the timeout and can it be adjusted? Or, is it something else that triggers this event.

Thanks.
by dejan.ns
Fri Dec 22, 2017 12:45 pm
Forum: ESP-IDF
Topic: Stack overflow & heap monitoring
Replies: 1
Views: 3344

Stack overflow & heap monitoring

I know there is uxTaskGetStackHighWaterMark FreeRTOS function which can be used to get the minimum size of unused task stack, but I wonder if there is a ESP-IDF way of achieving this.

Also I would like to know what is the best method for watching the free heap size.
by dejan.ns
Sat Dec 16, 2017 7:03 am
Forum: ESP-IDF
Topic: Using RTOS tasks with or without cpu core affinity
Replies: 5
Views: 8698

Re: Using RTOS tasks with or without cpu core affinity

Yes, you could just use a specific set of priority levels for each core, not mixing them together and that solves the problem. This then leads to the next question - are the API tasks pinned to a specific core, which one (I guess the PRO core) and what priority levels do they use?
by dejan.ns
Fri Dec 15, 2017 11:43 pm
Forum: ESP-IDF
Topic: Using RTOS tasks with or without cpu core affinity
Replies: 5
Views: 8698

Using RTOS tasks with or without cpu core affinity

I am quite new to ESP32, coming from PIC32 MCUs which are all single core. So I would like to check if I'm right when it comes to running FreeRTOS scheduler on two cores. It seems to me that if a task is pinned to one core, than this task could be skipped by scheduler in round robin scheme (same pri...