Search found 11 matches

by kristaps_r
Tue Mar 16, 2021 1:54 pm
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Re: Problem with Secure Boot V2 enabling

I saw this but this seemed as problem with espsecure.py digest_rsa_public_key writing reverse order bytes but I observed that byte order was ok for me.
Just tried that patch and it worked on esp32 where i burned BLOCK2 previously.

Thanks for help
by kristaps_r
Tue Mar 16, 2021 7:55 am
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Re: Problem with Secure Boot V2 enabling

Turns out it isn't read protected but bootloader isn't responding to UART after SecureBoot V2 and Flash encryption enabling. Can't read any efuses or upload anything using bootloader. I took next module and flashed with software that reads BLOCK2 and it is exactly the same as on those 2 modules wher...
by kristaps_r
Fri Mar 12, 2021 3:26 pm
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Re: Problem with Secure Boot V2 enabling

OK i successfully enabled SecureBoot V2 by alowing bootloader to burn secure boot digest to BLOCK2
This is kind of OK, but I don't understand why manual digest burning didn't work. I can't see the values burned by bootloader now after Secure Boot and encryption are enabled.
by kristaps_r
Fri Mar 12, 2021 7:38 am
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Re: Problem with Secure Boot V2 enabling

@WiFive Using ESP-IDF v4.2-0-gc40f2590b I noticed reading SB2 documentation is that there is no word about when and how SB2 key is burned in efuses: https://docs.espressif.com/projects/esp-idf/en/v4.2/esp32/security/secure-boot-v2.html#secure-boot-v2-generate-key Can it be that bootloader contains d...
by kristaps_r
Thu Mar 11, 2021 8:21 am
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Re: Problem with Secure Boot V2 enabling

Can anyone help?
Did same thing with next ESP32-WROOM-32E module. This time only efuses changed are BLOCK2 and it's write protect, nothing else touched and still getting "Application not signed with a valid private key"
Any advices what to try?
Am I generating or writing key incorrectly?
@ESP_Angus ?
by kristaps_r
Mon Mar 08, 2021 9:21 am
Forum: ESP-IDF
Topic: Problem with Secure Boot V2 enabling
Replies: 12
Views: 14297

Problem with Secure Boot V2 enabling

Hello! I have problems with enabling Secure Boot V2 on my ESP32-­WROOM­-32E module. I am developing firmware in PlatformIO and using commandline tools fo flash and enable SB2. [*]I have generated SB2 keys espsecure.py generate_signing_key --version 2 sb2.pem espsecure.py digest_rsa_public_key --keyf...
by kristaps_r
Sun Feb 28, 2021 6:00 pm
Forum: ESP-IDF
Topic: ESP32 Secure Bootloader
Replies: 5
Views: 7557

Re: ESP32 Secure Bootloader

I am havin problems with extracting public key from Secure Boot V2 pem file. Mys steps : espsecure.py generate_signing_key --version 2 key.pem espsecure.py extract_public_key --version 2 --keyfile key.pem key.bin espsecure.py v3.1-dev Traceback (most recent call last): File "...\esp-idf\components\e...
by kristaps_r
Fri Jan 22, 2021 10:31 am
Forum: ESP-IDF
Topic: WiFi Modem Sleep without connection to AP
Replies: 1
Views: 5148

WiFi Modem Sleep without connection to AP

Hi! I want to realize periodic transmission using esp_wifi_80211_tx() and between transmissions go to low power mode. As far as my experiments show that modem sleep is not working in AP mode and STA mode when not connected. Can you suggest if there is a way to enable modem sleep in unconnected STA o...
by kristaps_r
Mon Jul 16, 2018 9:35 pm
Forum: ESP-IDF
Topic: BLE custom profiles with security
Replies: 3
Views: 6077

Re: BLE custom profiles with security

Thanks @chegewara! I will look closer at links you gave but at first look I see that attribute handle is read in ESP_GATTS_ADD_CHAR_EVT event. But if I use esp_ble_gatts_create_attr_tab() i get ESP_GATTS_CREAT_ATTR_TAB_EVT event and I am not sure how to extract handle for each attribute because i ge...
by kristaps_r
Sun Jul 15, 2018 5:51 pm
Forum: ESP-IDF
Topic: BLE custom profiles with security
Replies: 3
Views: 6077

BLE custom profiles with security

Hi! I am new to BLE and trying to make client - server ESP32 system that has custom BLE services and use security. So I am looking in way of combining examples from IDF folder: gatt_security_server, gatt_security_client, gatt_server, gatt_client, because security_server/client applications are made ...