Search found 12 matches

by WardMas
Wed Jul 08, 2020 11:48 am
Forum: ESP32 IDF
Topic: Implementation of Interrupt Allocation
Replies: 11
Views: 281

Re: Implementation of Interrupt Allocation

Hi,
semaphore can be used to force a FreeRTOS task to run immediately once an event takes place.
For the time being why don't you test the GPIO interrupt with a push button first ?
by WardMas
Wed Jul 08, 2020 10:47 am
Forum: ESP32 IDF
Topic: Implementation of Interrupt Allocation
Replies: 11
Views: 281

Re: Implementation of Interrupt Allocation

Hi, The first this I can spot is that gpio_irs_handler_add(GPIO_IRQ, gpio_irs_handler, (void*) GPIO_IRQ); must be called inside the interrupt configuration function and it is called only once as long as you don't delete your ISR handler. Also I recommend you to used freeRTOS and execute the scan fun...
by WardMas
Wed Jul 08, 2020 9:18 am
Forum: ESP32 IDF
Topic: Implementation of Interrupt Allocation
Replies: 11
Views: 281

Re: Implementation of Interrupt Allocation

Hi,
Could you try io_conf.pin_bit_mask = 1 << GPIO_INPUT_PIN_SEL; in the interrupt config function
by WardMas
Tue Jul 07, 2020 5:12 am
Forum: ESP32 IDF
Topic: Implementation of Interrupt Allocation
Replies: 11
Views: 281

Re: Implementation of Interrupt Allocation

hi usulrasolas, First of all it is always good to do full configuraion of GPIO interrupt before addong the GPI ISR handler in your config you are missing pull_down_en and pull_up_en. To do the configuration you must use gpio_config() to pass the address of io_conf then you install the ISR by selecti...
by WardMas
Fri Jul 03, 2020 5:04 am
Forum: ESP32 IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 236

Re: ESP32 BLE Interrupt Priority

Hi, Thank you for your response. This is actually how I could solve the problem but instead of using IPC, I used task pinned to core 1 when initializing the required interrupts and I have shared this here https://www.esp32.com/viewtopic.php?f=13&t=16335 . Having a second core is a big advantage in E...
by WardMas
Thu Jul 02, 2020 8:07 am
Forum: ESP32 IDF
Topic: ESP32 Advertising Interval
Replies: 1
Views: 163

Re: ESP32 Advertising Interval

to whoever sees this post, I could solve the problem by running Manual UART handling functions on Core 1 and BLE is already running on Core 0 (defult settings). This made the whole system more stable and robust.
by WardMas
Tue Jun 30, 2020 1:25 pm
Forum: ESP32 IDF
Topic: ESP32 Advertising Interval
Replies: 1
Views: 163

ESP32 Advertising Interval

Hello friends, I have two questions related to esp_ble_adv_params_t structure parameters which are adv_int_min and adv_int_max. Now after starting advertising by executing esp_ble_gap_start_advertising();, The specified data in esp_ble_adv_data_t structure starts to be advertised when ESP_GAP_BLE_SC...
by WardMas
Tue Jun 30, 2020 5:34 am
Forum: ESP32 IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 236

Re: ESP32 BLE Interrupt Priority

Hi ESP_ulipe , thank you for your reply that was absolutely useful. Now the problem I am having is that BLE callback are interfering with the other interrupt subroutines that I had mentioned. that is why I wanted to play with interrupt priority hoping to find a solution for my problem. The critical ...
by WardMas
Mon Jun 29, 2020 11:57 am
Forum: ESP32 IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 236

ESP32 BLE Interrupt Priority

Hello friends, I am working on a project were I am using several interrupts (two timers interrupts, GPIO interrupt and BLE which has GATT and GAP callbacks). I amusing ESP32 WROOM module with ESP IDF. usually it is possible to change the interrupt level by changing the interrupt flag when registerin...
by WardMas
Sat Jun 20, 2020 12:15 pm
Forum: ESP32 IDF
Topic: ESP32 IDF BLE Dynamic Advertising Data Change
Replies: 2
Views: 201

Re: ESP32 IDF BLE Dynamic Advertising Data Change

Hi thank you for your reply. I could solve the problem as you recommended but of course I also had to reset adv_config_done flag to allow the program to start advertising when ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT interrupt occurs

Go to advanced search