Search found 211 matches

by ESP_Dazz
Fri Feb 26, 2021 4:22 pm
Forum: ESP32 Arduino
Topic: CAN ID hardware acceptance filtering
Replies: 3
Views: 198

Re: CAN ID hardware acceptance filtering

The 32 bit number does not correspond bit to bit to an ID due to the need to use a single filter out STD and EXTD ID. So you'll need to program the code and mask according to the bit fields illustrated in the diagrams of the Acceptance Filter section of the docs (note the right side MSB)
by ESP_Dazz
Fri Jan 29, 2021 1:59 pm
Forum: ESP-IDF
Topic: Problems with OTA Update and simultaneous CAN RX events
Replies: 2
Views: 1363

Re: Problems with OTA Update and simultaneous CAN RX events

Note: CAN/TWAI should now work during OTA as of this commit. See docs for more details.
by ESP_Dazz
Fri Jan 22, 2021 8:24 pm
Forum: ESP32 Arduino
Topic: GPIO ISR improperly called - "SOLVED" (worked around)
Replies: 3
Views: 737

Re: Random timer miscount (TIMER_GROUP_0 TIMER_0)

There is some delay and variation to when your interrupt will run. Usually when an interrupt occurs, it takes 2 or 3 microseconds to get into the interrupt. However, you can't assume that this means your interrupt will run 2 to 3 us after an edge as there are other factors that can prevent your inte...
by ESP_Dazz
Fri Jan 22, 2021 8:11 pm
Forum: ESP-IDF
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Replies: 2
Views: 361

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

The error LoadProhibited means that the CPU tried to load a variable form an illegal address. The offending address is EXCVADDR: 0x00000000 ( see docs for more details ). The address 0x00000000 looks like some NULL pointer was accessed. The offending line of the bad load was 0x400da3d9: pin::calc_an...
by ESP_Dazz
Fri Jan 22, 2021 8:08 pm
Forum: General Discussion
Topic: Dual Core Synchronization
Replies: 2
Views: 321

Re: Dual Core Synchronization

Could you post your code and explain how each task is accessing the I2C bus. If you are using the ESP-IDF I2C driver API, you can assume that the driver API is already thread safe (i.e., the driver API can be called form multiple tasks).
by ESP_Dazz
Fri Jan 22, 2021 8:00 pm
Forum: ESP-IDF
Topic: ESP-IDF vs FreeRTOS heap allocation
Replies: 4
Views: 327

Re: ESP-IDF vs FreeRTOS heap allocation

So does FreeRTOS pvPortMalloc() also use heap_caps_malloc()? No, because pvPortMalloc() itself is never called. Based on the enabled FreeRTOS configs, pvPortMallocTcbMem() and pvPortMallocStackMem() are called instead. All of these macros are defined in port_macro.h What about the malloc hook/callb...
by ESP_Dazz
Fri Jan 22, 2021 6:59 pm
Forum: ESP-IDF
Topic: ESP-IDF vs FreeRTOS heap allocation
Replies: 4
Views: 327

Re: ESP-IDF vs FreeRTOS heap allocation

Hi, The FreeRTOS documentation suggest to use the pvPortMalloc() / pvPortFree() and vApplicationMallocFailedHook() when handling memory allocation. The ESP-IDF documentation points to heap_caps_malloc() / heap_caps_free() and heap_caps_register_failed_alloc_callback() for the same memory handeling ...
by ESP_Dazz
Tue Jan 19, 2021 12:47 pm
Forum: ESP-IDF
Topic: Basic Hello World ESP-IDF failed
Replies: 10
Views: 1005

Re: Basic Hello World ESP-IDF failed

As the error suggest, the CMake is seeing a "build" folder which "doesn't seem to be a CMake build directory" so it is "Refusing to automatically delete files". Try deleting the build folder in your "hello_world" project and then run "idf.py set-target esp32" again.
by ESP_Dazz
Tue Jan 12, 2021 10:35 am
Forum: ESP-IDF
Topic: Print stack trace at runtime
Replies: 2
Views: 569

Re: Print stack trace at runtime

Use esp_backtrace_print() in esp_debug_helpers.h

Go to advanced search