Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic INO with DS18B20 One-Wire Library will not compile in VS 2022 (Read 1616 times)
Craig Stephan
Junior Member
**
Offline


Posts: 13
Joined: Jun 10th, 2021
INO with DS18B20 One-Wire Library will not compile in VS 2022
Aug 18th, 2022 at 12:06am
Print Post  
I am including an Arduino library for the Dallas Semi DS18B20 temp sensor and the INO file does not compile.
My target device is the ESP32S3 Dev Module.

The error message is:

Arduino.h:36: In file included from
OneWire.cpp:142: from
 
OneWire_direct_gpio.h: In function void directModeInput(uint32_t)
 
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
   ^~~~~~~~~~~~~
esp32-hal.h:73: note  in definition of macro ESP_REG
   #define ESP_REG(addr) *((volatile uint32_t *)(addr))
   ^~~~
 
OneWire_direct_gpio.h: In function void directModeOutput(uint32_t)
 
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
   ^~~~~~~~~~~~~
esp32-hal.h:73: note  in definition of macro ESP_REG
Error compiling libraries
   #define ESP_REG(addr) *((volatile uint32_t *)(addr))
   ^~~~
Debug build failed for project 'test'
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: INO with DS18B20 One-Wire Library will not compile in VS 2022
Reply #1 - Aug 18th, 2022 at 9:36am
Print Post  
Thanks for the report.

The OneWire Library needs to be upgraded to v2.3.7 to add the ESP32 support:
https://github.com/PaulStoffregen/OneWire/releases/tag/v2.3.7
  
Back to top
 
IP Logged
 
Craig Stephan
Junior Member
**
Offline


Posts: 13
Joined: Jun 10th, 2021
Re: INO with DS18B20 One-Wire Library will not compile in VS 2022
Reply #2 - Aug 20th, 2022 at 3:27pm
Print Post  
That worked. Thanks, Simon.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint