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

Incorrect using of new ledc with core 3.0-alpha #457

Closed
PM04290 opened this issue Oct 16, 2023 · 5 comments
Closed

Incorrect using of new ledc with core 3.0-alpha #457

PM04290 opened this issue Oct 16, 2023 · 5 comments
Labels
stale Inactive issues

Comments

@PM04290
Copy link

PM04290 commented Oct 16, 2023

Carefully written Issues are more likely to be given priority.
丁寧に記述された報告は優先して対応される可能性が高くなります。

Environment ( 実行環境 )

  • MCU or Board name: all ESP
  • Panel Driver IC: *
  • Bus type: *
  • LovyanGFX version: last version
  • FrameWork version: ArduinoESP32 v3.0-alpha
  • Build Environment: ArduinoIDE
  • Operating System: Windows

Problem Description ( 問題の内容 )

compile error with new Espressif prototype with core 3.0-alpha

"C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-12.2.0_20230208/bin/xtensa-esp32s3-elf-g++" -MMD -c "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/cpp_flags" -Os -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32S3_DEV\"" "-DARDUINO_VARIANT=\"esp32s3\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/defines" "-ID:\\HomeAssistant\\DIY\\MesProjets\\SmartMonitor" -iprefix "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/include/" "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/includes" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/qio_qspi/include" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\cores\\esp32" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\variants\\esp32s3" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\WiFi\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\FS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\SPIFFS\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\HAintegration\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ArduinoJson\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ESPAsyncWebServer\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\AsyncTCP\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\ESPmDNS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\EEPROM\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\Update\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\PubSubClient\\src" "@C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901/build_opt.h" "D:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src\\lgfx\\v1\\platforms\\esp32\\Light_PWM.cpp" -o "C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901\\libraries\\LovyanGFX\\lgfx\\v1\\platforms\\esp32\\Light_PWM.cpp.o"
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\Light_PWM.cpp: In member function 'virtual bool lgfx::v1::Light_PWM::init(uint8_t)':
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\Light_PWM.cpp:43:5: error: 'ledcSetup' was not declared in this scope
   43 |     ledcSetup(_cfg.pwm_channel, _cfg.freq, PWM_BITS);
      |     ^~~~~~~~~
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\Light_PWM.cpp:44:5: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
   44 |     ledcAttachPin(_cfg.pin_bl, _cfg.pwm_channel);
      |     ^~~~~~~~~~~~~
      |     ledcAttach
"C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-12.2.0_20230208/bin/xtensa-esp32s3-elf-g++" -MMD -c "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/cpp_flags" -Os -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32S3_DEV\"" "-DARDUINO_VARIANT=\"esp32s3\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/defines" "-ID:\\HomeAssistant\\DIY\\MesProjets\\SmartMonitor" -iprefix "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/include/" "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/includes" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/qio_qspi/include" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\cores\\esp32" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\variants\\esp32s3" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\WiFi\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\FS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\SPIFFS\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\HAintegration\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ArduinoJson\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ESPAsyncWebServer\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\AsyncTCP\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\ESPmDNS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\EEPROM\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\Update\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\PubSubClient\\src" "@C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901/build_opt.h" "D:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src\\lgfx\\v1\\platforms\\esp32\\Panel_CVBS.cpp" -o "C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901\\libraries\\LovyanGFX\\lgfx\\v1\\platforms\\esp32\\Panel_CVBS.cpp.o"
"C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-12.2.0_20230208/bin/xtensa-esp32s3-elf-g++" -MMD -c "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/cpp_flags" -Os -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32S3_DEV\"" "-DARDUINO_VARIANT=\"esp32s3\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/defines" "-ID:\\HomeAssistant\\DIY\\MesProjets\\SmartMonitor" -iprefix "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/include/" "@C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/flags/includes" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-6b1f40b9bf/esp32s3/qio_qspi/include" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\cores\\esp32" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\variants\\esp32s3" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\WiFi\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\FS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\SPIFFS\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\HAintegration\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ArduinoJson\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\ESPAsyncWebServer\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\AsyncTCP\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\ESPmDNS\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\EEPROM\\src" "-IC:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.0-alpha2\\libraries\\Update\\src" "-ID:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\PubSubClient\\src" "@C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901/build_opt.h" "D:\\Users\\Philippe-ASUS\\Documents\\Arduino\\libraries\\LovyanGFX\\src\\lgfx\\v1\\platforms\\esp32\\common.cpp" -o "C:\\Users\\Admin\\AppData\\Local\\Temp\\arduino_build_771901\\libraries\\LovyanGFX\\lgfx\\v1\\platforms\\esp32\\common.cpp.o"
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\Bus_SPI.cpp: In function 'void lgfx::v1::gpio_reset(size_t)':
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\Bus_SPI.cpp:182:5: error: 'gpio_matrix_out' was not declared in this scope; did you mean 'gpio_iomux_out'?
  182 |     gpio_matrix_out((gpio_num_t)pin, SIG_GPIO_OUT_IDX, 0, 0);
      |     ^~~~~~~~~~~~~~~
      |     gpio_iomux_out
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\common.cpp: In function 'void lgfx::v1::i2c::i2c_set_cmd(i2c_dev_t*, uint8_t, uint8_t, uint8_t, bool)':
D:\Users\Philippe-ASUS\Documents\Arduino\libraries\LovyanGFX\src\lgfx\v1\platforms\esp32\common.cpp:812:14: error: 'struct i2c_dev_t' has no member named 'comd0'; did you mean 'comd'?
  812 |       (&dev->comd0)[index].val = cmd_val;
      |              ^~~~~
      |              comd

Expected Behavior ( 期待される動作 )

Actual Behavior ( 実際の動作 )

Steps to reproduce ( 再現のための前提条件 )

  1. step1
  2. ...

// If possible, attach a picture of your setup/wiring here.

Code to reproduce this issue ( 再現させるためのコード )

Please submit complete source code that can reproduce your problem.
あなたの問題を再現できる完全なソースコードを提示してください。

// the code should be wrapped in the ```cpp tag so that it will be displayed better.
#include "esp_log.h"

void app_main()
{

}

// If your code is longer than 30 lines, GIST is preferred.

@tobozo
Copy link
Collaborator

tobozo commented Oct 16, 2023

Hi,

please try this branch, it has a commit fixing issues with arduino core 3.x.x

f3ad7c4

@PM04290
Copy link
Author

PM04290 commented Oct 16, 2023

my remark was just to point out the error due to the ledc change, when testing the new core 3.0.
I've seen the code and it seems to fix the problem; I will wait for the release of the public version of the library.
For my projects I am currently staying in version 2.x of the core.
well seen the #define on SOC_DAC_SUPPORTED rather than ESP_ARDUINO_VERSION_MAJOR

@tobozo
Copy link
Collaborator

tobozo commented Oct 16, 2023

although it does the work, I'm not sure about adding SOC_DAC_SUPPORTED in the library, I believe it should inherit from esp32 core instead but haven't been able to find where it's declared from

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Inactive issues label Nov 15, 2023
Copy link

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

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

No branches or pull requests

2 participants