ESP32 core 3.2.0 'gives many compile errors with 'By Arduino pin' setting

While experimenting with ESP32 core 3.2.0 I discovered that, even while compiling an empty sketch, the compiler report dozens of errors.
Compiling with the option "By GPIO number" compiles fine.

C:\Users\ednie\AppData\Local\Temp\.arduinoIDE-unsaved2025319-12856-2qp82c.4gpy5\Blink\Blink.ino: In function 'void loop()':
C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.2.0\cores\esp32/io_pin_remap.h:46:49: error: 'digitalWrite' was not declared in this scope
   46 | #define digitalWrite(pin, val)                  digitalWrite(digitalPinToGPIONumber(pin), val)
      |                                                 ^~~~~~~~~~~~
C:\Users\ednie\AppData\Local\Temp\.arduinoIDE-unsaved2025319-12856-2qp82c.4gpy5\Blink\Blink.ino:33:3: note: in expansion of macro 'digitalWrite'
   33 |   digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
      |   ^~~~~~~~~~~~
exit status 1

Compilation error: exit status 1
1 Like

Do you know the old joke about 'don't do that'? Also check the Migration document to see if the boards 3 project has broken something relevant.
Where do you see that option, I don't see it.

Try selecting Nano ESP32 as the board and you will see a Pin Numbering option

I know, but he didn't say Nano ESP32, I wanted him to realize it wasn't a normal esp32 board.

Not a single sketch compiles with Arduino Pin default. I have already determined that.

Thanks for pointing this out @ednieuw! Submitted PR #11315 to fix this in the upstream core repository.

While waiting for the fix to be included in the short future, if you wish to use the 3.x branch, you can use an older release. Or you can manually apply the patch if you feel adventurous! :slight_smile: