Search found 147 matches

by ESP_Dazz
Fri Apr 12, 2019 7:01 am
Forum: ESP-WHO
Topic: Is there a set up guide for Windows
Replies: 4
Views: 1187

Re: Is there a set up guide for Windows

This all look good. I changed the environment variable IDF_PATH to c:/msys32/home/Simon/esp/esp-who I don't think IDF_PATH is supposed to be set to the esp-who directory. It should instead be set to the esp-idf directory which is a submodule esp-who repo, so something like the following: IDF_PATH="...
by ESP_Dazz
Mon Apr 01, 2019 4:46 pm
Forum: ESP32 Arduino
Topic: [SOLVED] INTERRUPT UART example work only one time and after hold
Replies: 8
Views: 2178

Re: INTERRUPT UART example work only one time and after hold

Well I'm not exactly sure why you are checking the values of hardware registers (i.e. UART2.status.rxfifo_cnt ). The driver should already handle the transfer of data from the hardware FIFO to a software ring buffer. I suggest you take a look at the existing UART examples on how to use the IDF UART ...
by ESP_Dazz
Mon Apr 01, 2019 4:15 pm
Forum: ESP32 Arduino
Topic: [SOLVED] INTERRUPT UART example work only one time and after hold
Replies: 8
Views: 2178

Re: INTERRUPT UART example work only one time and after hold

A FreeRTOS task should be implemented as an infinite loop. static void UART_ISR_ROUTINE(void *pvParameters) { uart_event_t event; size_t buffered_size; uint8_t* dtmp = (uint8_t*) malloc(RD_BUF_SIZE); bool exit_condition = false; //Infinite loop to run main bulk of task while (1) { //Loop will contin...
by ESP_Dazz
Mon Apr 01, 2019 3:36 pm
Forum: ESP32 Arduino
Topic: [SOLVED] INTERRUPT UART example work only one time and after hold
Replies: 8
Views: 2178

Re: INTERRUPT UART example work only one time and after hold

Because you're creating a Task instead of an ISR? The task simply receives form the queue once, then deletes itself. //Create a task to handler UART event from ISR xTaskCreate(UART_ISR_ROUTINE, "UART_ISR_ROUTINE", 2048, NULL, 12, NULL); ... free(dtmp); dtmp = NULL; vTaskDelete(NULL); If you are impl...
by ESP_Dazz
Wed Mar 27, 2019 2:04 pm
Forum: ESP32 Arduino
Topic: ESP solo 1 giving error and resetting.
Replies: 1
Views: 630

Re: ESP solo 1 giving error and resetting.

ESP SOLO is a single core chip, however you've built the application for dual core chips thus you get the following error E (97) cpu_start: Running on single core chip, but application is built with dual core support. E (97) cpu_start: Please enable CONFIG_FREERTOS_UNICORE option in menuconfig. abor...
by ESP_Dazz
Wed Mar 20, 2019 3:42 pm
Forum: General Discussion
Topic: Can one find out the stack depth from xTaskCreate
Replies: 3
Views: 1192

Re: Can one find out the stack depth from xTaskCreate

That might be difficult as the TCB structure in FreeRTOS only stores a pointer to the start of the stack and doesn't actually store the size of the stack. I guess you could try using Thread Local Storage Pointers and set pvValue as the stack size upon task creation. Note that you'll need to enable T...
by ESP_Dazz
Mon Mar 18, 2019 1:37 pm
Forum: General Discussion
Topic: Can one find out the stack depth from xTaskCreate
Replies: 3
Views: 1192

Re: Can one find out the stack depth from xTaskCreate

Since the stack depth doesn't change throughout the task's lifetime, you could consider passing the stack depth as a task parameter such as the following: xTaskCreate(idleloop, "idleloop", 4096, (void *)4096, 1, &TaskHandle_IdleLoop); ... void idleloop(void *arg) { int stack_depth = (int) arg; }
by ESP_Dazz
Fri Mar 15, 2019 6:46 am
Forum: ESP32 IDF
Topic: Can driver stop transmitting after a while in release
Replies: 6
Views: 1457

Re: Can driver stop transmitting after a while in release

Just a though. how do we write in custom interrupt handler. Any example code. I need interrupt handler to keep checking brownout using GPIO pin level checking. ESP32 brown detection is too late for our use case. To allocate a GPIO interrupt, have a look at the GPIO example or the interrupt allocati...
by ESP_Dazz
Thu Mar 14, 2019 6:49 am
Forum: ESP32 IDF
Topic: Can driver stop transmitting after a while in release
Replies: 6
Views: 1457

Re: Can driver stop transmitting after a while in release

Not entirely sure how this relates to CAN driver. CONFIG_FREERTOS_CORETIMER selects which timer to use to generate the tick interrupt for FreeRTOS, thus affects the entire operating system not just the CAN driver. I would recommend you use FREERTOS_CORETIMER_0 as tick interrupts should be of the low...
by ESP_Dazz
Fri Mar 08, 2019 7:03 am
Forum: ESP32 IDF
Topic: Can driver stop transmitting after a while in release
Replies: 6
Views: 1457

Re: Can driver stop transmitting after a while in release

Can you try the following: Have a task periodically call can_get_status_info() and print the values of can_status_info_t before and after the CAN driver stops transmitting. When initializing your CAN driver, enable the alerts that indicate some form of error (e.g. CAN_ALERT_ERR_PASS). The various al...

Go to advanced search