-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
LOLIN D32 ESP32 WROOM
Device Description
LOLIN D32 V1.0.0 (WEMOS) WiFi,BT ESP-32 ESP-WROOM-32 4MB FLASH
Hardware Configuration
Nothing connected
Version
latest stable Release (if not listed below)
Type
Task
IDE Name
Eclipse / VS / Notepad++ / Shell
Operating System
W11pro / Dell Xps13 /
Flash frequency
40
PSRAM enabled
yes
Upload speed
460800 <-> 921600
Description
Hi i install (try) to deploy a new platform esp-idf v5 / arduino v3 to restart a project which turn on esp-idf v4 / arduino v2. I work only on shell (cmd) to stabilize the environent before switch project to eclipse / vs. I experience some build error with some version, so thank's for helping.
Target is set to "esp32"
-
Matrix tests acted
================
ESP-IDF v5.5.1 / Arduino 3.3.0-alpha1 or 3.2.X or 3.1.X
ESP-IDF v5.5 / Arduino 3.3.0-alpha1 or 3.2.X or 3.1.X
ESP-IDF v5.5.-rc1 / Arduino 3.3.0-alpha1 or 3.2.X or 3.1.X -
Results
==========
After executing idf.py fullclean + build
Test 5.5.1 / origin/release/v3.3.0-alpha1
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:340:3: error: implicit declaration of function 'i2c_ll_slave_init'; did you mean 'i2c_ll_slave_rw'? [-Wimplicit-function-declaration]
340 | i2c_ll_slave_init(i2c->dev);
| ^~~~~~~~~~~~~~~~~
| i2c_ll_slave_rw
Test 5.5.1 / origin/release/v3.2.x
ERROR: Because project depends on idf (>=5.3,<5.5)
Test 5.5.1 / origin/release/v3.1.x
ERROR: Because project depends on idf (>=5.3,<5.4)
Test 5.5 / origin/release/v3.3.0-alpha1
set ARDUINO_SKIP_IDF_VERSION_CHECK=0
CMake Error at
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/managed_components/espressif__arduino-esp32/CMakeLists.txt:19
(message):
Arduino-esp32 can be used with ESP-IDF versions between 5.1.0 and 5.1.99, but a newer version is detected: 5.5.0.
***** Why V3.3 is in comptability matrix with ESP-IDF v5.5 ******
set ARDUINO_SKIP_IDF_VERSION_CHECK=1
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveInit':
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:340:3: error: implicit declaration of function 'i2c_ll_slave_init'; did you mean 'i2c_ll_slave_rw'? [-Wimplicit-function-declaration]
340 | i2c_ll_slave_init(i2c->dev);
| ^~~~~~~~~~~~~~~~~
| i2c_ll_slave_rw
Test 5.5 / origin/release/v3.2.x
CMake Error at C:/_DEV/Espressif-IDE/frameworks/esp-idf-v5.5/tools/cmake/build.cmake:629 (message):
ERROR: Because project depends on idf (>=5.3,<5.5)
Test 5.5 / origin/release/v3.1.x
CMake Error at C:/_DEV/Espressif-IDE/frameworks/esp-idf-v5.5.1/tools/cmake/build.cmake:629 (message):
ERROR: Because project depends on idf (>=5.3,<5.4)
Test 5.5-rc1 / origin/release/v3.3.0-alpha1
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveInit':
C:/_DEV/eclipse-workspace_ESP-IDE/hello_world_02/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:340:3: error: implicit declaration of function 'i2c_ll_slave_init'; did you mean 'i2c_ll_slave_rw'? [-Wimplicit-function-declaration]
340 | i2c_ll_slave_init(i2c->dev);
| ^~~~~~~~~~~~~~~~~
| i2c_ll_slave_rw
Test 5.5-rc1 / origin/release/v3.2.x
CMake Error at C:/_DEV/Espressif-IDE/frameworks/esp-idf-v5.5/tools/cmake/build.cmake:629 (message):
ERROR: Because project depends on idf (>=5.3,<5.5)
-
Set arduino-esp 32 test version
===========================
git checkout and check esp_arduino_version.h file
ex for 3.3.0 : git checkout remotes/origin/release/v3.3.0-alpha1 -
Set esp-idf test version
=====================
Example for 5.5
git clone -b v5.5 --recursive https://github.com/espressif/esp-idf.git esp-idf-v5.5
cd esp-idf-v5.5\tools
idf_tools.py install-python-env
idf_tools.py install
idf_tools.py check
exit & launch new shell cmd
cd /d esp-idf-v5.5
export.bat
set ARDUINO_SKIP_IDF_VERSION_CHECK=1
Sketch
//basic hello code + arduino
#include "Arduino.h"
#include <stdio.h>
#include <inttypes.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_chip_info.h"
#include "esp_flash.h"
#include "esp_system.h"
extern "C" void app_main() //extern .. is mandatory for .cpp
{
initArduino();
printf("Hello world + arduino!\n");
for (int i = 10; i >= 0; i--) {
printf("Restarting in %d seconds...\n", i);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
printf("Restarting now.\n");
fflush(stdout);
esp_restart();
}
Debug Message
No debug, compile error.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.