esp32 guide error

cmitcham

New Member
View Badges
Joined
Feb 25, 2019
Messages
13
Reaction score
17
Rating - 0%
0   0   0
i tried following the new sral esp32 guide, but get this error when trying to compile the sketch...

In file included from C:\Users\c1a2l\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/Arduino.h:36,
from c:\Users\c1a2l\Documents\Arduino\libraries\OneWire\OneWire.cpp:142:
c:\Users\c1a2l\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeInput(uint32_t)':
c:\Users\c1a2l\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:191:38: error: 'esp32_gpioMux' was not declared in this scope
ESP_REG(DR_REG_IO_MUX_BASE + esp32_gpioMux[pin].reg) = pinFunction;
^~~~~~~~~~~~~
C:\Users\c1a2l\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/esp32-hal.h:73:47: note: in definition of macro 'ESP_REG'
#define ESP_REG(addr) *((volatile uint32_t *)(addr))
^~~~
c:\Users\c1a2l\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeOutput(uint32_t)':
c:\Users\c1a2l\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:232:38: error: 'esp32_gpioMux' was not declared in this scope
ESP_REG(DR_REG_IO_MUX_BASE + esp32_gpioMux[pin].reg) = pinFunction;
^~~~~~~~~~~~~
C:\Users\c1a2l\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/esp32-hal.h:73:47: note: in definition of macro 'ESP_REG'
#define ESP_REG(addr) *((volatile uint32_t *)(addr))
^~~~

exit status 1

Compilation error: exit status 1


anyone see what i missed?

thanks for any help!
 
Hmmm, I'm guessing that you possibly entered the wrong board. The board setting determines these kinds of "definitions" if I'm not mistaken.

What board setting did you use ?
 
thanks for looking. i have the same board selected as the guide shows, "DOIT ESP32 DEVKIT V1".

my board looks identical to your pictures and came from https://www.ebay.com/itm/201853283621

the blink example works on my board just fine.
 
As an eBay Associate we earn from qualifying purchases.
1671770981664.png


i think i had not correctly installed some libs. when i restarted the ide it said some libs had updates, so i let them install, and i think i now have a reef-pi.ino loaded on a esp32. getting excited now but must sleep, so tomorrow i'll see if my reef-pi can find this thing as a driver :)

thanks!!!
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top