Search found 11 matches

by Jacek@dtm.pl
Mon Jul 11, 2022 3:43 pm
Forum: General Discussion
Topic: BLE and WIFI coexistence
Replies: 0
Views: 1088

BLE and WIFI coexistence

I tried 'bleprph_wifi_coex' example. There is BLE advertising implemented and wifi pings. I changed it for BLE scanning (like in 'blecent' example) because I need to have connection with wifi and scanning BLE advertiser (my other BLE device - sensor). Wifi is OK (pings works), but scanning is very p...
by Jacek@dtm.pl
Mon Jan 17, 2022 5:47 am
Forum: General Discussion
Topic: nvs_open_from_partition() gives ESP_ERR_NVS_NOT_FOUND
Replies: 2
Views: 3757

Re: nvs_open_from_partition() gives ESP_ERR_NVS_NOT_FOUND

WiFive wrote:
Sat Jan 15, 2022 2:29 pm
You should not double encrypt the nvs data partition.
That's right. Thank You WiFive. Now everything works.
Thank you WiFive for being on this forum.
by Jacek@dtm.pl
Sat Jan 15, 2022 12:21 pm
Forum: General Discussion
Topic: nvs_open_from_partition() gives ESP_ERR_NVS_NOT_FOUND
Replies: 2
Views: 3757

nvs_open_from_partition() gives ESP_ERR_NVS_NOT_FOUND

I have custom partition table with additional nvs type partition "nvs_times" and with nvs_keys type partition names "nvs_key". In startup code i have: //////////////////////////// //finding "nvs_key" partition printf("\n"); printf("Finding nvs_key partition... "); esp_partition_t* partition_nvs_key;...
by Jacek@dtm.pl
Thu Jan 13, 2022 10:21 am
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

Re: bootloader problem (encryption/signing)

The first flash you don't encrypt anything and it will encrypt itself when it boots. Or you have to manually enable the efuses if you want to flash encrypted binaries. Thank You WiFive for information. I didn't know it. I burned manually: espefuse.py burn_efuse ABS_DONE_0 espefuse.py burn_efuse FLA...
by Jacek@dtm.pl
Wed Jan 12, 2022 2:07 pm
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

Re: bootloader problem (encryption/signing)

I replaced module for new one and started again from the beginning. I want sign and encrypt app. I want share encryptet firmware for customers, that they can self updating device. 1. settings in menuconfig: Security features: - Enable hardware Secure Boot in bootloader - Secure Boot Version 1 - Secu...
by Jacek@dtm.pl
Mon Jan 10, 2022 1:23 pm
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

Re: bootloader problem (encryption/signing)

I incremented FLASH_CRYPT_CNT and now have: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0038,len:8468 load:0x40078000,len:23328 ho 0 tail 12 room 4 load:0x400...
by Jacek@dtm.pl
Mon Jan 10, 2022 6:58 am
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

Re: bootloader problem (encryption/signing)

Thank You WiFive for response. Indeed, I manually incremented FLASH_CRYPT_CNT when tried to disable encryption. So, should i use this one more time?: espefuse.py burn_efuse FLASH_CRYPT_CNT I found that it can be used for disabling flash encryption, but since it increment FLASH_CRYPT_CNT, it can be u...
by Jacek@dtm.pl
Fri Jan 07, 2022 8:29 pm
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

Re: bootloader problem (encryption/signing)

Still no luck. Please look at exactly steps: 1. I have generated "maxbt_key.bin" for encryption and "secure_boot_signing_key.pem" for signing. It's in "secure" folder in project. 2. Cleaning project F:\GitHub\ble_spp_server>idf.py fullclean Executing action: fullclean Done 2. I made bootloader F:\Gi...
by Jacek@dtm.pl
Wed Jan 05, 2022 2:12 pm
Forum: General Discussion
Topic: bootloader problem (encryption/signing)
Replies: 9
Views: 28577

bootloader problem (encryption/signing)

I bricked my module... secure boot check fail ets_main.c 371 ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:5660 ho 0 tail 1...
by Jacek@dtm.pl
Thu Dec 09, 2021 4:19 pm
Forum: ESP IoT Solution
Topic: ESP32 Bootloader - updating app
Replies: 0
Views: 6368

ESP32 Bootloader - updating app

I need firmware updating via BLE. I have main app, that can receive bin file via BLE. How and where i should save this file and what have to do after that, for updating and starting new app? Should i make two partitions (eg. ota_0 and ota_1) and program firstly main app in one of this ? I use comman...