Search found 14 matches

by WardMas
Fri Oct 16, 2020 1:10 pm
Forum: ESP-IDF
Topic: ESP32 Low Level Register Access
Replies: 2
Views: 269

Re: ESP32 Low Level Register Access

Hi, thank you for your reply. Currently I have set the the GPIO pin as open drain and connected it to 5V with 3k6 resistor and the pin voltage now is 4.1V which is acceptable for me. I want to know if ESP IDF supports direct low level register accessing like STM32 HAL library
by WardMas
Thu Oct 15, 2020 7:38 am
Forum: ESP-IDF
Topic: ESP32 Low Level Register Access
Replies: 2
Views: 269

ESP32 Low Level Register Access

Hello friends,
I want to read and write values directly to GPIO PIN Register to check if a GPIO pin has been configured correctly.
Another question is that I want to know if it is possible to connect an GPIO pin configured as output open drain to a 5V pull-up resistor/
Thank you.
by WardMas
Wed Jul 08, 2020 11:48 am
Forum: ESP-IDF
Topic: Implementation of Interrupt Allocation
Replies: 24
Views: 3504

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: ESP-IDF
Topic: Implementation of Interrupt Allocation
Replies: 24
Views: 3504

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: ESP-IDF
Topic: Implementation of Interrupt Allocation
Replies: 24
Views: 3504

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: ESP-IDF
Topic: Implementation of Interrupt Allocation
Replies: 24
Views: 3504

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: ESP-IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 855

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: ESP-IDF
Topic: ESP32 Advertising Interval
Replies: 1
Views: 589

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: ESP-IDF
Topic: ESP32 Advertising Interval
Replies: 1
Views: 589

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: ESP-IDF
Topic: ESP32 BLE Interrupt Priority
Replies: 4
Views: 855

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 ...

Go to advanced search