Closed zwim closed 10 months ago
Do You have git installed? Seems Your issue is similar to that one, which is discussed here.
Yes git is installed. And the link is of no help. I have deinstalled and reinstalled platformio in the recommended way, but the same error exists. I have found https://github.com/espressif/arduino-esp32/discussions/8572 which gives the same error as I have. But the solution proposed there does not help either. :(
OK, I believe I am one step further now:
Totally uninstalled platformio, removed .platformio
-Folder, reinstalled and changed in platform.ini
:
platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF5
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1643/framework-arduinoespressif32-release_v5.1-f45a4361b2.zip
and
lib_ignore =
ESP Async WebServer ; force the use of the esphome version
AsyncTCP ; force the use of the esphome version
LittleFS_esp32 ; force the use of the ESP32 built into the core version
and now I am getting only errors about a missing CAN.h
for the esp32dev
target.
Where does CAN.h
come from?
(For the BSC target, there are errors with
xtensa-esp32-elf-g++: error: unrecognized command line option '-std=gnu++2b'; did you mean '-std=gnu++2a'
)
I used the CAN library from sandeepmistry. But there were some issues depending on the revision of Your ESP32. The best is, if You modify the ESP32SJA1000.cpp:
< ... modifyRegister(REG_BTR1, 0x80, 0x80); // SAM = 1 // modified !!!!!!! //writeRegister(REG_IER, 0xff); // enable all interrupts //enable all interrupts (BUT NOT BIT 4 which has turned into a baud rate scalar!) writeRegister(REG_IER, 0xEF); ...
Next days I will try to update my respository with that.
Hmm. I think closing this might be a bit to early, as I still have issues in compiling the thing. :(
@zwim Can You give some details?
I get errors like
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:79:8: error: 'xQueueHandle' does not name a type; did you mean 'QueueHandle_t'?
Huawei R4850G2
.pio/libdeps/esp32dev/ESPAsyncWebSrv/src/AsyncWebSocket.cpp:1264:3: error: 'mbedtls_sha1_finish_ret' was not declared in this scope; did you mean 'mbedtls_sha1_finish'?
and so on.
Strange. I downloaded from github my repo as zip, unzipped. Than I renamed the secrets_dummy.h to secrets.h and copied the updated CAN library to .\lib\CAN. In vscode I use the platformio plugin. So I did not downloaded the library by hand, platformio did that for me. I attach the log. Can You compare with Yours? BTW: If You want a faster compilation, You can set to compile either the BSC or the esp32dev variant.
Thanks for the log.txt
It seems that I use some newer libraries than you: PLATFORM: Espressif 32 (6.4.0+sha.f6ec392) > NodeMCU-32S
, - framework-arduinoespressif32 @ 3.0.0+sha.4b3aebe
Pls. try to compile just the bsc variant or replace in the platformio.ini on line 57: platform = https://github.com/tasmota/platform-espressif32/releases/download/2022.12.0/platform-espressif32.zip
Is there any difference?
Can not be reproduced.
pio run
produces the following error(s).output.txt
Can you give me a hint to solve the problem?