Search found 174 matches

by ESP_Dazz
Wed Apr 08, 2020 4:55 am
Forum: ESP32 IDF
Topic: How do I use the ESP-IDF functions?
Replies: 1
Views: 52

Re: How do I use the ESP-IDF functions?

Should I include the "touch_pad.h" header? Yes. include by the following. #include "driver/touch_pad.h " I'm having trouble with the "touch_pad_config" function, it accepted the "touch_pad_tTOUCH_PAD_NUM0" as the first parameter but doesn't seem to accept anything as the second parameter. Your code...
by ESP_Dazz
Wed Apr 08, 2020 4:31 am
Forum: ESP32 IDF
Topic: adc1_get_raw returns -1
Replies: 1
Views: 73

Re: adc1_get_raw returns -1

Which version of ESP-IDF are you using?
by ESP_Dazz
Wed Apr 08, 2020 3:58 am
Forum: ESP32 IDF
Topic: Simple application crashing with FreeRTOS tasks
Replies: 3
Views: 76

Re: Simple application crashing with FreeRTOS tasks

A few points to consider Check that you have created the mux before it is being used (i.e. xSemaphoreCreateMutex() occurs before any call to xSemaphoreTake()). That assert you're seeing is likely due to the mux handle being NULL. What's likely happening here is that you are calling xTaskCreate() ins...
by ESP_Dazz
Wed Apr 01, 2020 8:25 am
Forum: ESP32 IDF
Topic: vTaskSuspendAll() and vTaskEndScheduler()
Replies: 8
Views: 414

Re: vTaskSuspendAll() and vTaskEndScheduler()

egoncalves wrote: Hi

thanks for the reply.
I have tried that ( I was calling vTaskDelay() ) and it still resets... :(
vTaskDelay() is also a blocking function.
by ESP_Dazz
Mon Mar 30, 2020 11:23 am
Forum: ESP32 IDF
Topic: vTaskSuspendAll() and vTaskEndScheduler()
Replies: 8
Views: 414

Re: vTaskSuspendAll() and vTaskEndScheduler()

Don't call blocking functions (e.g. xQueueReceive()) whilst the scheduler is suspended.
by ESP_Dazz
Sat Mar 14, 2020 3:30 pm
Forum: General Discussion
Topic: mutex and Free RTOS scheduler
Replies: 3
Views: 697

Re: mutex and Free RTOS scheduler

I'm trying to understand the difference (if there is one) between the Free RTOS portMUX_TYPE mutex and the SemaphoreHandle_t mutex. Are they both the same thing 'under the hood'? No they are not. portMUX_TYPE is a spinlock (name is a bit confusing). Spinlocks are a form of hardware mutual exclusion...
by ESP_Dazz
Fri Mar 13, 2020 3:22 pm
Forum: Hardware
Topic: RTC Watchdog Timer
Replies: 3
Views: 1001

Re: RTC Watchdog Timer

The registers and features of the RTC WDT are almost identical to the Main System Watchdogs. Use the APIs provided in the RTC WDT driver. Example below: #include <stdlib.h> #include <stdio.h> #include "soc/rtc_wdt.h" void app_main() { rtc_wdt_protect_off(); //Disable RTC WDT write protection //Set s...
by ESP_Dazz
Thu Mar 12, 2020 7:10 pm
Forum: ESP32 Arduino
Topic: Task delay without resetting the watchdog timer?
Replies: 2
Views: 647

Re: Task delay without resetting the watchdog timer?

vTaskDelay() itself does not feed the Task Watchdog. It is the IDLE task that feeds the Task watchdog. When you call vTaskDelay() , your current initSystems() task is put into the blocked state, allowing the operating system to schedule another task. If not other tasks are in the ready state, it wi...
by ESP_Dazz
Sun Feb 23, 2020 11:45 pm
Forum: General Discussion
Topic: Code Performance Analyzer
Replies: 2
Views: 617

Re: Code Performance Analyzer

Checkout Performance Monitors. Basically, the ESP32 CPUs have performance counters to count/time specific CPU related events (e.g., stalls, exceptions, pipeline bubble cycles etc).
by ESP_Dazz
Sun Feb 23, 2020 11:25 pm
Forum: General Discussion
Topic: Starting up esp32
Replies: 1
Views: 614

Re: Starting up esp32

serafisa wrote:I tried installing esp-idf into C:/esp/esp-idf
Could you post the Git command you used to pull the esp-idf repo?

Go to advanced search