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

[HELP] Making HTTPS calls using MBEDTLS #14010

Closed
1 task done
engdavidiogo opened this issue Oct 9, 2024 · 11 comments
Closed
1 task done

[HELP] Making HTTPS calls using MBEDTLS #14010

engdavidiogo opened this issue Oct 9, 2024 · 11 comments

Comments

@engdavidiogo
Copy link

Description

I need help understanding what is wrong with this implementation attempt.

I am trying to make HTTPS calls in my project using MBEDTLS, and for that, I am using the default Wi-Fi configuration for the ESP32C6.

$ ./tools/configure.sh esp32c6-devkitc:wifi

After that, I enable the following configurations in the menu:

CONFIG_CRYPTO_MBEDTLS
CONFIG_MBEDTLS_APPS
CONFIG_MBEDTLS_APP_BENCHMARK
CONFIG_MBEDTLS_APP_SELFTEST

With this configuration, when trying to build, I get the following output:

image

Please let me know if I skipped any necessary steps for success.

Verification

  • I have verified before submitting the report.
@engdavidiogo
Copy link
Author

Adding to what has already been said:

It seems like the issue is related to missing configurations in NuttX concerning the Espressif HAL for the ESP32C6.

As a validation, I enabled the MBEDTLS features using the following configuration for the STM32F746:

$ ./tools/configure.sh stm32f746g-disco:netnsh

image

I also applied the same configuration for the ESP32:

$ ./tools/configure.sh esp32-devkitc:wifi

image

@fdcavalcanti, @eren-terzioglu can you PTAL?

@fdcavalcanti
Copy link
Contributor

Checknuttx/arch/risc-v/src/esp32c6/esp-hal-3rdparty/nuttx/esp32c6/include/sdkconfig.h.
You will see some symbols are already defined there, maybe it will help you better understand what's going on.

@pkarashchenko
Copy link
Contributor

I was trying to deal with similar in the past in #11738
Seems like linking process is using CFLAGS with both app flags and flags from Wireless.mk

@FelipeMdeO
Copy link
Contributor

You are right @pkarashchenko , I did same thing than you and now we are able to compile.
@fdcavalcanti can you check whether a did right process here: espressif/esp-hal-3rdparty#5, please?

@fdcavalcanti
Copy link
Contributor

fdcavalcanti commented Oct 14, 2024

I'll take a look soon. Hold on a bit.
Did this solve your problems, any other issues after you added those changes on esp-hal?

@FelipeMdeO
Copy link
Contributor

@engdavidiogo is everything ok in your side ?

@engdavidiogo
Copy link
Author

Yes @FelipeMdeO , I can reproduce the build without any errors.

@fdcavalcanti I continue testing and have no apparent problems

@FelipeMdeO
Copy link
Contributor

@fdcavalcanti We are able to update firmware using secure link, please lets update 3rdparty in nuttx master.

@tmedicci
Copy link
Contributor

Reference

We are testing the changes internally. As soon as our CI finishes, we can merge it. Thanks!

@tmedicci
Copy link
Contributor

Hi @engdavidiogo and @FelipeMdeO ,

We merged it on release/v5.1.c branch:espressif/esp-hal-3rdparty@26d4d1b

Can you please test it setting ESP_HAL_3RDPARTY_VERSION=26d4d1b57d54b63384b4e466b9e644ff0fe702b5 before the make command to build NuttX? (we'd still need to update the hash for the HAL on NuttX)

@engdavidiogo
Copy link
Author

Hi @tmedicci thanks for the support with this!

Closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants