Skip to content

'esp32_adc2gpio' was not declared while compiling for um_tinys3 #7516

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

Closed
1 task done
JPZV opened this issue Nov 26, 2022 · 2 comments · Fixed by #7526
Closed
1 task done

'esp32_adc2gpio' was not declared while compiling for um_tinys3 #7516

JPZV opened this issue Nov 26, 2022 · 2 comments · Fixed by #7526
Assignees

Comments

@JPZV
Copy link

JPZV commented Nov 26, 2022

Board

Unexpected Maker TinyS3 (AKA: TinyS3)

Device Description

N/A

Hardware Configuration

N/A

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

80Mhz

PSRAM enabled

yes

Upload speed

921600

Description

Everytime I try to compile for the TinyS3 using PlatformIO, it fails saying that error: 'esp32_adc2gpio' was not declared in this scope.

The only workaround for that is to edit manually variants/um_tinys3/pins_arduino.h commenting out the line 16 (#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)) and add #define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) just below of it

Please refer to wled/WLED#2905 (comment) for more info

Sketch

//sketch.ino:
#include <Arduino.h>

void setup() { }
void loop() { }

//platformio.ini:
[env:esp32s3dev_8MB_PSRAM]
;; ESP32-TinyS3 development board, with 8MB FLASH and 8MB PSRAM (memory_type = qspi_opi)
board = um_tinys3
platform = [email protected]
platform_packages =
upload_speed = 921600
build_unflags = ${common.build_unflags}
build_flags =  ${common.build_flags} ${esp32s3.build_flags} 
  -D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT=0 -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=0 -D ARDUINO_USB_MSC_ON_BOOT=0
  -D WLED_USE_PSRAM
lib_deps = ${esp32s3.lib_deps}
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_filters = esp32_exception_decoder

Debug Message

C:/Users/juanp/.platformio/packages/framework-arduinoespressif32/variants/um_tinys3/pins_arduino.h:16:48: error: 'esp32_adc2gpio' was not declared in this scope
 #define analogInputToDigitalPin(p)  (((p)<20)?(esp32_adc2gpio[(p)]):-1)
wled00/src/dependencies/blynk/Blynk/BlynkApiArduino.h:70:62: note: in expansion of macro 'analogInputToDigitalPin'
     #define BLYNK_DECODE_PIN(it) (((it).asStr()[0] == 'A') ? analogInputToDigitalPin(atoi((it).asStr()+1)) : (it).asInt())
                                                              ^~~~~~~~~~~~~~~~~~~~~~~
wled00/src/dependencies/blynk/Blynk/BlynkApiArduino.h:93:19: note: in expansion of macro 'BLYNK_DECODE_PIN'
     uint8_t pin = BLYNK_DECODE_PIN(it);

Other Steps to Reproduce

You can fork https://github.com/Aircoookie/WLED and replace the [env:esp32s3dev_8MB_PSRAM] from that project with the above one

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@JPZV JPZV added the Status: Awaiting triage Issue is waiting for triage label Nov 26, 2022
@softhack007
Copy link

softhack007 commented Nov 26, 2022

It seems that several -S3 variants are affected by the same problem, like esp32s3box, esp32s3camlcd, Bee_S3, um_feathers3, um_tinys3, and um_pros3.

@SuGlider SuGlider self-assigned this Nov 27, 2022
@SuGlider SuGlider added Type: Bug 🐛 All bugs and removed Status: Awaiting triage Issue is waiting for triage labels Nov 27, 2022
@SuGlider
Copy link
Collaborator

PR #7526 shall fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants