Search found 7 matches

by ESP_ulipe
Thu Jul 02, 2020 6:54 pm
Forum: ESP-IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 6164

Re: ESP32 BLE Interrupt Priority

Hi WardMas, glad the information helped you. Since you are in need of this bit-banged UART, you could use the dual-core capability of ESP32, for example by default the Bluetooth controller and host stacks runs their code in the CPU0(PRO_CPU), said this you can run your custom code in the APP_CPU(CPU...
by ESP_ulipe
Thu Jul 02, 2020 6:47 pm
Forum: ESP-IDF
Topic: NimBLE - where is code that manages persistent bonding
Replies: 3
Views: 4351

Re: NimBLE - where is code that manages persistent bonding

Glad that I could help.

Cheers.
by ESP_ulipe
Thu Jul 02, 2020 6:39 pm
Forum: ESP-IDF
Topic: Issue with FreeRTOS, printf and vTaskSuspend
Replies: 5
Views: 6299

Re: Issue with FreeRTOS, printf and vTaskSuspend

Hi jmcornil , you can use the printf without suspending the scheduler, that is it, you can remove safely the vTaskSuspendAll and xTaskResumeAll from your code. The current ESP32s printf function is reentrant, and its locking mechanism is implemented on top of FreeRTOS mutexes, so when you call the s...
by ESP_ulipe
Mon Jun 29, 2020 2:48 pm
Forum: ESP-IDF
Topic: NimBLE - where is code that manages persistent bonding
Replies: 3
Views: 4351

Re: NimBLE - where is code that manages persistent bonding

Hi Brian, you can find this code section in: components/bt/host/nimble/nimble/nimble/host/store . In this directory, there are different implementations of storing configuration, including the NVS way that the ESP32 implements, you can find specifically this implementation in: store/config/src/ble_s...
by ESP_ulipe
Mon Jun 29, 2020 2:26 pm
Forum: ESP-IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 6164

Re: ESP32 BLE Interrupt Priority

Hi WardMas, these functions you are referring to actually register callbacks that are invoked in a task context, the Bluetooth core has a task that also manages the invocation of the callback of different layers from the BT stack, in your example the GAP and GATT layers. For this reason, they don't ...
by ESP_ulipe
Wed Jun 03, 2020 6:48 pm
Forum: ESP-IDF
Topic: Memory allocation failed hook
Replies: 3
Views: 5655

Re: Memory allocation failed hook

Hi Neil, thanks for reporting these errors. Are you adding the esp_heap_caps.h as a include in the file that calls the heap_caps_register_failed_alloc_callback ? In the same way, are the files FreeRTOS.h and task.h being included as well? As mentioned above, if this file inclusion is missing, the im...
by ESP_ulipe
Wed Apr 22, 2020 4:53 pm
Forum: News
Topic: ESP-IDF: New memory allocator and FreeRTOS 10 preview
Replies: 1
Views: 25166

ESP-IDF: New memory allocator and FreeRTOS 10 preview

Hi all, we are providing a preview branch of ESP-IDF which brings two new additions. First, a new memory allocator based on the TLSF algorithm that aims to provide faster, more predictable allocations/deallocations, and better heap fragmentation handling. The second addition is the FreeRTOS kernel b...