8000 fatal error: hwcrypto/aes.h: No such file or directory · Issue #3 · kind3r/esp32-ble-gateway · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fatal error: hwcrypto/aes.h: No such file or directory #3

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

Open
jjcl16 opened this issue Apr 29, 2021 · 11 comments
Open

fatal error: hwcrypto/aes.h: No such file or directory #3

jjcl16 opened this issue Apr 29, 2021 · 11 comments

Comments

@jjcl16
Copy link
jjcl16 commented Apr 29, 2021

Hi.

I'm presenting this error when I compile the code.

I only make a change in the lib_deps platformio.ini because platformio can't locate "git@github.com:h2zero/NimBLE-Arduino.git#refactor-advertised-device"

This how I do it:

lib_deps = 
	bblanchon/ArduinoJson@^6.17.2
	links2004/WebSockets@^2.3.3
	h2zero/NimBLE-Arduino@^1.1.0
	; https://github.com:h2zero/NimBLE-Arduino.git#refactor-advertised-device
	esp32_https_server@^1.0.0

I share the logs of the compile with you, hope can help.

> Executing task: C:\Users\DIEX\.platformio\penv\Scripts\platformio.exe run --target upload --target monitor --environment esp-wrover <

Processing esp-wrover (board: esp-wrover-ie-module; platform: espressif32; framework: arduino)
------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-ie-module.html
PLATFORM: Espressif 32 (3.2.0) > Espressif ESP32-WROVER-(I)EHARDWARE: ESP32 240MHz, 520KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)PACKAGES:
 - framework-arduinoespressif32 0.0.0+sha.82161be
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.17.3
|-- <WebSockets> 2.3.6
|   |-- <WiFi> 1.0
|   |-- <SPI> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFi> 1.0
|-- <NimBLE-Arduino> 1.2.0
|-- <esp32_https_server> 1.0.0
|-- <Preferences> 1.0
|-- <DNSServer> 1.1.0
|   |-- <WiFi> 1.0
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <WiFi> 1.0
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
Building in release mode
Compiling .pio\build\esp-wrover\src\ble_api.cpp.o
Compiling .pio\build\esp-wrover\src\gw_settings.cpp.o
Compiling .pio\build\esp-wrover\src\main.cpp.o
Compiling .pio\build\esp-wrover\src\noble_api.cpp.o
In file included from src/gw_settings.h:5:0,
                 from src/gw_settings.cpp:1:
src/security.h:4:26: fatal error: hwcrypto/aes.h: No such file or directory
compilation terminated.
*** [.pio\build\esp-wrover\src\gw_settings.cpp.o] Error 1
In file included from src/gw_settings.h:5:0,
                 from src/noble_api.h:12,
                 from src/noble_api.cpp:1:
src/security.h:4:26: fatal error: hwcrypto/aes.h: No such file or directory
compilation terminated.
In file included from src/gw_settings.h:5:0,
                 from src/main.cpp:7:
src/security.h:4:26: fatal error: hwcrypto/aes.h: No such file or directory
compilation terminated.
*** [.pio\build\esp-wrover\src\noble_api.cpp.o] Error 1
*** [.pio\build\esp-wrover\src\main.cpp.o] Error 1
=============== [FAILED] Took 14.24 seconds ===============

Environment    Status    Duration
-------------  --------  ------------
esp-wrover     FAILED    00:00:14.241
========== 1 failed, 0 succeeded in 00:00:14.241 ========== 
The terminal process "C:\Users\DIEX\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--target', 'monitor', '--environment', 'esp-wrover'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
@kind3r
Copy link
Owner
kind3r commented Apr 29, 2021

I've updated the NimBLE-Arduino dependency as indeed the branch I was using was merged into master and relesed in 1.2.0.
But that's not the reason for the missing file that should be in the arduino framework.

Could you delete the .pio folder, restart the IDE and try again ?

@jjcl16
Copy link
Author
jjcl16 commented Apr 29, 2021

Delete the .pio folder and reinstall PlatformIO and I still having the same error.

@JMacalinao
Copy link

Had this issue as well. It was due to a change in the staging version of the Arduino framework that moves hwcrypto/* to esp32/*. It also affects esp32_https_server.

To get around this, I just removed/commented out the platform_packages line in platformio.ini.

@MrTheBarbarian
Copy link

Hello!
I had the some problem.
I installed NimBLE-Arduino by pio lib install "h2zero/NimBLE-Arduino" , but it was not enough. I commented platform_packages how JMacalinao said, and the project was builded.
But, in the instructions is written that CONFIG_ARDUINO_LOOP_STACK_SIZE have to be changed to 10240.
Where I can find it, when I do not use package platform_packages = ;platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git

Thanks!

@AskAlice
Copy link

I also can't build this. Can we either fix ths pio file to build without any aes issues, xtensa32 version mismatch, so that it makes reproducable builds OR bundle this with working libraries in the git repo

@Key1909
Copy link
Key1909 commented May 28, 2022

Today I tried to compile the firmware and got this problem every time. In the end I replaced platform_package from 4.3.0 on version 3.1.1 in С:/users/YOUR_USER_NAME/.platformio/packages /. After that, the firmware was compiled and everything worked
Also i changed code for this:

lib_deps = 
	bblanchon/ArduinoJson@^6.17.2
	links2004/WebSockets@^2.3.3
	h2zero/NimBLE-Arduino@^1.2.0
	esp32_https_server@^1.0.0
monitor_filters = esp32_exception_decoder
board_build.partitions = min_spiffs.csv

@DuPunk
Copy link
DuPunk commented Jul 10, 2022

@Key1909 can you point me in the direction to get the files for version 3.1.1? hoping this is still a viable solution.

@DuPunk
Copy link
DuPunk commented Jul 10, 2022

For anyone struggling with this i was able to get i to build by changing my security.h L:4 in src/ and my HTTPConnection.hpp L:9 in .pio/libdeps/esp-wrover/esp32_https_server/src

security.h
#include <esp32/aes.h>

HTTPConnection.hpp
#include <esp32/sha.h>

@ridham-parmar
Copy link
ridham-parmar commented Jan 30, 2024

In the end I replaced platform_package from 4.3.0 on version 3.1.1 in С:/users/YOUR_USER_NAME/.platformio/packages /.

@Key1909 Can you please tell me what you have done with this "In the end I replaced platform_package from 4.3.0 on version 3.1.1 in С:/users/YOUR_USER_NAME/.platformio/packages /." ?

@ridham-parmar
Copy link
ridham-parmar commented Jan 30, 2024

Had this issue as well. It was due to a change in the staging version of the Arduino framework that moves hwcrypto/* to esp32/*. It also affects esp32_https_server.

To get around this, I just removed/commented out the platform_packages line in platformio.ini.

@JMacalinao So after removing platform_packages did it worked ?

@ridham-parmar
Copy link
ridham-parmar commented Jan 31, 2024

Today I tried to compile the firmware and got this problem every time. In the end I replaced platform_package from 4.3.0 on version 3.1.1 in С:/users/YOUR_USER_NAME/.platformio/packages /. After that, the firmware was compiled and everything worked Also i changed code for this:

lib_deps = 
	bblanchon/ArduinoJson@^6.17.2
	links2004/WebSockets@^2.3.3
	h2zero/NimBLE-Arduino@^1.2.0
	esp32_https_server@^1.0.0
monitor_filters = esp32_exception_decoder
board_build.partitions = min_spiffs.csv

@Key1909
I have followed your code as below :-

lib_deps =
bblanchon/ArduinoJson@^6.17.2
links2004/WebSockets@^2.3.3
h2zero/NimBLE-Arduino@^1.2.0
; git@github.com:h2zero/NimBLE-Arduino.git#refactor-advertised-device
esp32_https_server@^1.0.0
monitor_filters = esp32_exception_decoder
platform_packages = framework-arduinoespressif32 @ >=3.0.0,<4
board_build.partitions = min_spiffs.csv

But when I compile code sdkconfig.h file is not generated in path mentioned in readme.md '.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config'.

@kind3r
Can you also look into this

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

8 participants
0