Skip to content

Unable to build ESP32forth v7.0.5.4 * Revision: c7474b756beb296dd1316d241a218cd4e4041b77 ESP32forth:225:32: error: 'ledcSetup' was not declared in this scope #72

@jemo07

Description

@jemo07

Hello Brad, hope you are well,

Strange, for what ever reason I can seem to build any of the versions available for a ERP32 Dev Kit, Wroom, M5, Ect. This is happening on both 1.8.19 and 2.x, on both linux and windows 11 and 7, all new install of the OS and the Arduino.

Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Disabled, No OTA (2MB APP/2MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled, Disabled"

/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino: In function 'cell_t* forth_run(cell_t*)':
ESP32forth:225:32: error: 'ledcSetup' was not declared in this scope
  225 |       n0 = (cell_t) (1000000 * ledcSetup(n2, n1 / 1000.0, n0)); NIPn(2)) \
      |                                ^~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:224:3: note: in expansion of macro 'Y'
  224 |   Y(ledcSetup, \
      |   ^
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:226:20: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
  226 |   Y(ledcAttachPin, ledcAttachPin(n1, n0); DROPn(2)) \
      |                    ^~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:226:3: note: in expansion of macro 'Y'
  226 |   Y(ledcAttachPin, ledcAttachPin(n1, n0); DROPn(2)) \
      |   ^
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:227:20: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
  227 |   Y(ledcDetachPin, ledcDetachPin(n0); DROP) \
      |                    ^~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:227:3: note: in expansion of macro 'Y'
  227 |   Y(ledcDetachPin, ledcDetachPin(n0); DROP) \
      |   ^
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:397:50: error: 'class TwoWire' has no member named 'lastError'
  397 |   X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError()) \
      |                                                  ^~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:271:3: note: in expansion of macro 'OPTIONAL_I2C_SUPPORT'
  271 |   OPTIONAL_I2C_SUPPORT \
      |   ^~~~~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:398:57: error: 'class TwoWire' has no member named 'getErrorText'
  398 |   X("Wire.getErrorText", WIRE_GET_ERROR_TEXT, PUSH Wire.getErrorText(n0)) \
      |                                                         ^~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:271:3: note: in expansion of macro 'OPTIONAL_I2C_SUPPORT'
  271 |   OPTIONAL_I2C_SUPPORT \
      |   ^~~~~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:403:17: error: 'class TwoWire' has no member named 'writeTransmission'; did you mean 'beginTransmission'?
  403 |       n0 = Wire.writeTransmission(n3, b2, n1, n0); NIPn(3)) \
      |                 ^~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:271:3: note: in expansion of macro 'OPTIONAL_I2C_SUPPORT'
  271 |   OPTIONAL_I2C_SUPPORT \
      |   ^~~~~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:405:17: error: 'class TwoWire' has no member named 'readTransmission'; did you mean 'endTransmission'?
  405 |       n0 = Wire.readTransmission(n4, b3, n2, n1, (uint32_t *) a0); NIPn(4)) \
      |                 ^~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:271:3: note: in expansion of macro 'OPTIONAL_I2C_SUPPORT'
  271 |   OPTIONAL_I2C_SUPPORT \
      |   ^~~~~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
ESP32forth:410:39: error: 'class TwoWire' has no member named 'busy'
  410 |   X("Wire.busy", WIRE_BUSY, PUSH Wire.busy()) \
      |                                       ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:744:40: note: in definition of macro 'X'
  744 | #define X(name, op, code) OP_ ## op: { code; } NEXT;
      |                                        ^~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:271:3: note: in expansion of macro 'OPTIONAL_I2C_SUPPORT'
  271 |   OPTIONAL_I2C_SUPPORT \
      |   ^~~~~~~~~~~~~~~~~~~~
/home/jemo/Documents/ESP32_Forth/ESP32forth-7.0.5.4/ESP32forth/ESP32forth.ino:745:3: note: in expansion of macro 'PLATFORM_OPCODE_LIST'
  745 |   PLATFORM_OPCODE_LIST
      |   ^~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for "WiFi.h"
 Used: /home/jemo/.arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/WiFi
 Not used: /app/Arduino/libraries/WiFi
exit status 1
'ledcSetup' was not declared in this scope


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions