Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blufi Check Sum Error in IDF 5.0 (IDFGH-7977) #9488

Closed
Nick-tecpal opened this issue Aug 3, 2022 · 1 comment
Closed

Blufi Check Sum Error in IDF 5.0 (IDFGH-7977) #9488

Nick-tecpal opened this issue Aug 3, 2022 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@Nick-tecpal
Copy link

Nick-tecpal commented Aug 3, 2022

Environment

  • Development Kit: ESP32-S3-DevKitC-1
  • Kit version:v1
  • Module or chip used:  ESP32-S3
  • IDF version :master/v5.0-dev-4547-gfde4afc67a
  • Build System:         [Make|CMake|idf.py]
  • Compiler version:xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
  • Operating System:Linux
  • Using an IDE?:No
  • Power Supply: USB

Problem Description

We’re using the IDF4.4, and we plan to upgrade to 5.0. But we get a check sum error when use the Blufi example to test the IDF 5.0

https://github.com/espressif/esp-idf/tree/release/v5.0/examples/bluetooth/blufi

Expected Behavior

Pass the test with Blufi example

Actual Behavior

Check sum error with Blufi example

Steps to reproduce

Download and run the Blufi example.

Debug Logs

WechatIMG130

Other items if possible

@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 3, 2022
@github-actions github-actions bot changed the title Blufi Check Sum Error in IDF 5.0 Blufi Check Sum Error in IDF 5.0 (IDFGH-7977) Aug 3, 2022
@esp-cjh
Copy link
Contributor

esp-cjh commented Aug 15, 2022

Hi, @Nick-tecpal.
We have found the reason of this problem. API usage for mbedtls_dhm_calc_secret was incorrect in IDF 5.0. We will fix it ASAP.

@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Resolution: NA Issue resolution is unavailable labels Aug 17, 2022
espressif-bot pushed a commit that referenced this issue Sep 2, 2022
API usage for `mbedtls_dhm_calc_secret` was incorrect, fixed by
providing correct RNG function pointer. This behavior was changed in
mbedTLS-3.x update.

Tested BluFi provisioning with this fix.

Closes IDF-5796
Closes #9488
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants