'RTC_IO_PAD_DAC2_REG' was not declared in this scope
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)
-
repo owner -
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.
-
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.
-
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
-
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!
-
reporter It works for me , thanks!
-
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.
-
repo owner - changed status to resolved
-
reporter 👍
- Log in to comment
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!