'RTC_IO_PAD_DAC2_REG' was not declared in this scope

Issue #266 resolved
Wenjie Wu created an issue

hi,

I use a new computer recently (MacOS 12.3.1 M1) . When I build esp32 :`pio run -e esp32`

I encountered this problem:

'RTC_IO_PAD_DAC2_REG' was not declared in this scope

Here are the details:

PLATFORM: Espressif 32 (4.2.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, 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.20002.220503 (2.0.2)
 - tool-esptoolpy 1.30300.0 (3.3.0)
 - toolchain-xtensa-esp32 8.4.0+2021r2-patch3
Converting vm.ino

Did I do something wrong?

Comments (9)

  1. John Maloney repo owner

    You didn't do anything wrong; a recent ESP32 package update introduced this issue.

    I am still using 3.10006.210326, which does not give this error. It looks like a recent update to the Platformio Espressif 32 package introduced the compile error. Kathy reported a problem compiling MicroBlocks for the ESP32 a few days ago, probably this same issue.

    I'm guessing we just need to include an extra header file. In fact, I think someone reported that fix but I've been traveling so I am behind on issue tracking.

    I will sort this out soon. Thanks for reporting it!

  2. John Maloney repo owner

    P.S. You can still install a working ESP32 VM from the MicroBlocks IDE. Of course, that won't help if you are working on the VM code.

  3. John Maloney repo owner

    Markus Gälli reported this:

    Needed to add #include "soc/rtc_io_reg.h" otherwise it wasn’t building.

    Looks like you need to add that header file (inside an ESP32 ifdef) to ioPrims.cpp.

    See Markus' PR to see where he added it.

  4. Wenjie Wu reporter

    Thanks John !

    have a good trip! Looking forward to your good news!

    P.S. You can still install a working ESP32 VM from the MicroBlocks IDE. Of course, that won't help if you are working on the VM code.

    I am writing a library for a pixel pack, the current NeoPixel library still have some burrs on ESP32 (but much better than before), I want to try some adafruit NeoPixel drivers

    https://doc-04-2k-docs.googleusercontent.com/docs/securesc/d07scdrtjknvpthntaa5t385ni57h173/2l4kfhcv7jg9841c46r6lng7gpq46f2o/1652701650000/16231988588669840603/16231988588669840603/1dJFXFhdDmXgIrC4nnMNcHIfmTM8CAXog?e=download&authuser=0

  5. Wenjie Wu reporter

    Looks like you need to add that header file (inside an ESP32 ifdef) to ioPrims.cpp.

    See Markus' PR to see where he added it.

    Thank you for the tip!

  6. John Maloney repo owner

    I've added the header file to the dev branch of the repository. Also fixed some new compiler warnings introduced by the updated ESP32 compiler.

  7. Log in to comment