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

error compiling cyd #13

Open
liwajaya opened this issue Oct 7, 2024 · 4 comments
Open

error compiling cyd #13

liwajaya opened this issue Oct 7, 2024 · 4 comments

Comments

@liwajaya
Copy link

liwajaya commented Oct 7, 2024

please guide me i try to compile but always error

note: initializing argument 3 of 'esp_err_t nvs_get_i32(nvs_handle_t, const char*, int32_t*)' 375 | esp_err_t nvs_get_i32 (nvs_handle_t handle, const char* key, int32_t* out_value); | ~~~~~~~~~^~~~~~~~~ *** [.pio\build\cyd\src\Hardware2432.cpp.o] Error 1 ============================================ [FAILED] Took 36.20 seconds ============================================

thanks

@MitchBradley
Copy link
Collaborator

There is not nearly enough context in this report to solve the problem. The final fragment of the error message does not provide enough information.

@liwajaya
Copy link
Author

liwajaya commented Oct 9, 2024

mr @MitchBradley
Thank you for your quick response, this is the error code that I copied. Please help me where the error occurred.
`Executing task: C:\Users\liwajaya.platformio\penv\Scripts\platformio.exe run --environment cyd

Processing cyd (platform: espressif32; board: esp32dev; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (51.3.4) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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 @ 3.20017.0 (2.0.17)
  • framework-arduinoespressif32-libs @ 5.1.0+sha.b6b4727c58
  • tool-esptoolpy @ 4.7.5
  • tool-mklittlefs @ 3.2.0
  • tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
  • tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
  • toolchain-xtensa-esp32 @ 12.2.0+20230208
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 44 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- JsonStreamingParser @ 0.0.0+char-1.0.2.sha.846bc19
    |-- GrblParser @ 1.0.0+sha.9108f54
    |-- LovyanGFX @ 1.1.16
    |-- LittleFS @ 2.0.0
    Building in release mode
    Compiling .pio\build\cyd\src\Hardware2432.cpp.o
    Compiling .pio\build\cyd\src\Menu.cpp.o
    In file included from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51,
    from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63,
    from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
    from src/System.h:10,
    from src/Hardware2432.cpp:6:
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:613:48: warning: ignoring attribute 'section (".iram1.24")' because it conflicts with previous 'section (".iram1.22")' [-Wattributes]
    613 | static inline bool IRAM_ATTR xPortCanYield(void)
    | ^
    In file included from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51,
    from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63,
    from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
    from src/System.h:10,
    from src/Text.h:7,
    from src/Drawing.h:8,
    from src/Scene.h:7,
    from src/Menu.h:6,
    from src/Menu.cpp:4:
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:613:48: warning: ignoring attribute 'section (".iram1.24")' because it conflicts with previous 'section (".iram1.22")' [-Wattributes]
    613 | static inline bool IRAM_ATTR xPortCanYield(void)
    | ^
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:343:30: note: previous declaration here
    343 | static inline bool IRAM_ATTR xPortCanYield(void);
    | ^~~~~~~~~~~~~
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:632:55: warning: ignoring attribute 'section (".iram1.25")' because it conflicts with previous 'section (".iram1.23")' [-Wattributes]
    632 | static inline BaseType_t IRAM_ATTR xPortGetCoreID(void)
    | ^
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:385:36: note: previous declaration here
    385 | static inline BaseType_t IRAM_ATTR xPortGetCoreID(void);
    | ^~~~~~~~~~~~~~
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:343:30: note: previous declaration here
    343 | static inline bool IRAM_ATTR xPortCanYield(void);
    | ^~~~~~~~~~~~~
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:632:55: warning: ignoring attribute 'section (".iram1.25")' because it conflicts with previous 'section (".iram1.23")' [-Wattributes]
    632 | static inline BaseType_t IRAM_ATTR xPortGetCoreID(void)
    | ^
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:385:36: note: previous declaration here
    385 | static inline BaseType_t IRAM_ATTR xPortGetCoreID(void);
    | ^~~~~~~~~~~~~~
    src/Hardware2432.cpp: In function 'void init_hardware()':
    src/Hardware2432.cpp:67:35: error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]
    67 | nvs_get_i32(hw_nvs, "layout", &layout_num);
    | ^~~~~~~~~~~
    | |
    | int*
    In file included from C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/nvs_flash/include/nvs_flash.h:21,
    from src/nvs.h:2,
    from .pio/libdeps/cyd/LovyanGFX-1.1.16/src/lgfx/v1_autodetect/LGFX_AutoDetect_ESP32_all.hpp:23,
    from .pio/libdeps/cyd/LovyanGFX-1.1.16/src/lgfx/v1_autodetect/common.hpp:30,
    from .pio/libdeps/cyd/LovyanGFX-1.1.16/src/LGFX_AUTODETECT.hpp:20,
    from src/Hardware2432.cpp:7:
    C:/Users/liwajaya/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/nvs_flash/include/nvs.h:375:71: note: initializing argument 3 of 'esp_err_t nvs_get_i32(nvs_handle_t, const char*, int32_t*)'
    375 | esp_err_t nvs_get_i32 (nvs_handle_t handle, const char* key, int32_t* out_value);
    | ~~~~~~~~~^~~~~~~~~
    *** [.pio\build\cyd\src\Hardware2432.cpp.o] Error 1
    ================================================ [FAILED] Took 348.07 seconds ================================================
  • The terminal process "C:\Users\liwajaya.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'cyd'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it. `

@Golabstech
Copy link

Golabstech commented Nov 10, 2024

Hello, I had the same problem. As far as I understand, Platform io cannot install the necessary plugins and libraries properly.
For the solution, you can:

  1. Completely remove the Platformio plugin from Vs code and delete its local esp32lib files. If it doesn't work.

@MitchBradley
Copy link
Collaborator

The error output above shows:

toolchain-xtensa-esp32 @ 12.2.0+20230208

My compilation setup is using toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5, because of this clause in /.platformio/platforms/espressif32/platform.json, which is at version 6.9.0:

  "packages": {
    "toolchain-xtensa-esp32": {
      "type": "toolchain",
      "owner": "espressif",
      "version": "8.4.0+2021r2-patch5"
    },

I suspect that a different version of the espressif32 package somehow got installed on your system. It is possible to clear out existing package versions by executing

pio pkg uninstall --package espressif32

Then when you run the pio build again, it will reinstall the package, hopefully at the correct version. When I did that just now, it got the right version and the cyd compilation succeeded.

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

3 participants