• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Project 4 esp32 Data Monitoring and Logging compilation error

Q&A Forum › Category: ESP32 › Project 4 esp32 Data Monitoring and Logging compilation error
0 Vote Up Vote Down
Jack Douglas asked 3 years ago

I would appreciate help with the following errors while trying to verify and compile the code for the esp32 LoRa Sender.  It copied exactly from https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/LoRa_Project/LoRa_Sender/LoRa_Sender.ino.

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 115200, None”
In file included from C:\Users\jax20\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\cores\esp32/Arduino.h:36,
from C:\Users\jax20\OneDrive\Documents\Arduino\libraries\OneWire\OneWire.cpp:142:
C:\Users\jax20\OneDrive\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function ‘void directModeInput(uint32_t)’:
C:\Users\jax20\OneDrive\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\jax20\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\cores\esp32/esp32-hal.h:73:47: note: in definition of macro ‘ESP_REG’
#define ESP_REG(addr) *((volatile uint32_t *)(addr))
^~~~
C:\Users\jax20\OneDrive\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function ‘void directModeOutput(uint32_t)’:
C:\Users\jax20\OneDrive\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\jax20\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\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
Error compiling for board DOIT ESP32 DEVKIT V1.

Question Tags: esp32 LoRa Project 4
4 Answers
0 Vote Up Vote Down
Steve Mercer answered 3 years ago

This was brought up a few days ago. It appears the new version of ESP (2.0.3) breaks the current OneWire library. Three options: Wait for the library to be updated; Downgrade ESP to 2.0.2; Use a different OneWire library.

0 Vote Up Vote Down
Jack Douglas answered 3 years ago

Thanks Steve.

How does one downgrade esp?  Would that cause problems with other functionality?

Any ideas how to modifiy Rui’s Sender code using OneWireNg?

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Jack.

Go to Tools > Boards > Boards Manager search for ESP32 and downgrade to version 2.0.1 or earlier.

Let me know if that solves the issue.

Regards,
Sara

0 Vote Up Vote Down
Jack Douglas answered 3 years ago

It fixed it.  Thanks Sara.
Jack

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.