Hi everyone,
I’m currently working on a project using a Bar02 Ultra High Resolution 10m Depth/Pressure Sensor with Arduino Giga R1 board .I tested the sensor with the Example code However, I’ve run into a compilation error that I’m having trouble resolving. I hope someone here can help me troubleshoot this issue.
Issue Description: I’m receiving the following compilation error message:
C:\Users\name\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:76:0,
from C:\Users\name\AppData\Local\Temp\arduino\sketches\90D53A60B39CA0C658F2351B46E514C4\sketch\MS5837_Example.ino.cpp:1:
C:\Users\name\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pins_arduino.h:71:14: error: expected unqualified-id before numeric constant
#define D1 (1u)
^
C:\Users\name\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pins_arduino.h:71:14: note: in definition of macro 'D1'
#define D1 (1u)
^~
C:\Users\name\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pins_arduino.h:71:14: error: expected ')' before numeric constant
#define D1 (1u)
^
C:\Users\name\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pins_arduino.h:71:14: note: in definition of macro 'D1'
#define D1 (1u)
^~
exit status 1
Compilation error: exit status 1
Additional Information:
- Arduino IDE Version: 2.2.1
- Arduino Board: Arduino GIGA R1 WiFi
- Board Package: Arduino Mbed OS Giga Boards version 4.0.8
- Libraries in Use: MS5837 Arduino Library.
Steps Taken :I’ve verified that my code was working on a different board package (Arduino Mega), so the issue seems to be specific to the “mbed_giga” package.
Thank you in advance for your assistance!
Sooraj R