Search found 35 matches

by newhobby
Thu May 25, 2023 11:36 pm
Forum: ESP-IDF
Topic: Error 102 on p_auth_cmpl->fail_reason
Replies: 1
Views: 1249

Error 102 on p_auth_cmpl->fail_reason

What is error 102? I can't seem to find what this error is and how to prevent it from happening. https://github.com/espressif/esp-idf/blob/release/v5.1/components/bt/host/bluedroid/btc/core/btc_dm.c#L275 The define block only goes to 94. #if (SMP_INCLUDED == TRUE) #define BTA_DM_AUTH_FAIL_BASE (HCI_...
by newhobby
Tue May 03, 2022 7:18 am
Forum: ESP-IDF
Topic: Help with crash
Replies: 6
Views: 5877

Re: Help with crash

Do you have any example for that?
Bonus if there are multiple tasks that need to read I2C values in addition to the GPIO interrupt.
by newhobby
Tue May 03, 2022 4:23 am
Forum: ESP-IDF
Topic: Help with crash
Replies: 6
Views: 5877

Re: Help with crash

It may be the way I am handling the interrupt. I will change it to see if I can resolve the issue. The interrupt is triggered on GPIO, and I am reading I2C inside the interrupt handler. I will move it out and hopefully this goes away. It doesn't happen all the time. In fact, I would say 99% of the t...
by newhobby
Mon May 02, 2022 11:42 pm
Forum: ESP-IDF
Topic: Help with crash
Replies: 6
Views: 5877

Help with crash

Can someone please help me understand what happened on this crash? Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0). Core 0 register dump: PC : 0x40099d3c PS : 0x00060135 A0 : 0x80097167 A1 : 0x3ffbe900 0x40099d3c: spinlock_acquire at C:/esp/esp-idf/components/esp_hw_support/in...
by newhobby
Mon May 02, 2022 9:14 pm
Forum: ESP-IDF
Topic: Why is the default behavior of SMP_CONN_TOUT to delete bonding?
Replies: 0
Views: 1316

Why is the default behavior of SMP_CONN_TOUT to delete bonding?

Hi, I have been having issues with bonding keys being MIA and I started digging around. According to btc.dm.c line 280, the default action for a failed secure bonding connection is to delete the bonding keys. https://github.com/espressif/esp-idf/blob/master/components/bt/host/bluedroid/btc/core/btc_...
by newhobby
Sat Apr 16, 2022 12:02 am
Forum: ESP-IDF
Topic: How do I refuse bonding?
Replies: 0
Views: 1492

How do I refuse bonding?

Hi, I am using bonding with JustWorks, but I would like to only have one bonded device and refuse any other attempt of bonding. How do I accomplish that? Here is what I have: esp_ble_auth_req_t auth_req = ESP_LE_AUTH_REQ_SC_BOND; // bonding with peer device after authentication esp_ble_io_cap_t ioca...
by newhobby
Tue Mar 08, 2022 1:32 am
Forum: ESP-IDF
Topic: ESP_GAP_BLE_AUTH_CMPL_EVT giving fail_reason 0x66
Replies: 0
Views: 1597

ESP_GAP_BLE_AUTH_CMPL_EVT giving fail_reason 0x66

Hi, I can't seem to find what fail_reason 0x66 is. Where can I find a description of this error or get more details on how it was raised so I can investigate the problem I am experiencing? This is the code that is returning the error: case ESP_GAP_BLE_AUTH_CMPL_EVT: { esp_bd_addr_t bd_addr; memcpy(b...
by newhobby
Fri Jan 21, 2022 5:01 am
Forum: ESP-IDF
Topic: Slow processing after enabling flash encryption
Replies: 2
Views: 2832

Re: Slow processing after enabling flash encryption

I am using chip rev3 on esp-idf 4.2
I PM'ed you the code.
by newhobby
Thu Jan 20, 2022 9:34 pm
Forum: ESP-IDF
Topic: Slow processing after enabling flash encryption
Replies: 2
Views: 2832

Slow processing after enabling flash encryption

Hi, I am experiencing very slow processing after I enabled flash encryption. It's very clear on my I2c communication. Here is a screenshot before: before.JPG And here is after: after.JPG The total time for the entire I2C communication was less than 10ms before. It is now over 30ms It gets much worse...
by newhobby
Wed Aug 11, 2021 3:47 pm
Forum: ESP-IDF
Topic: secure boot + flash encryption in release mode [IDFGH-4332]
Replies: 13
Views: 14018

Re: secure boot + flash encryption in release mode [IDFGH-4332]

I have used a chip Rev3 for secure boot V2 and flash encryption and indeed the download UART fuse gets burned automatically now. It doesn't allow me the brick the chip anymore. I have another question on this though. If I have the chip locked and OTA is the only way to get new firmware into the chip...