Unverified Commit 4509e6cf authored by Scott Smith's avatar Scott Smith Committed by GitHub

Fix debug level "Wire" compile error (#151)

* add missing character for debug level "Wire"

if Debug Level "Wire" is chosen, the compiler posts error
> arm-none-eabi-g++: error: DDEBUG_RP2040_WIRE: No such file or directory

Add the missing '-' to correct the issue.

* change must be made via makeboards.py

The generator script needs to be fixed and rerun. If we just update the boards.txt, changes will be lost on a rebuild.

* Update boards.txt

boards.txt as generated by revised makeboards.py

* correct spelling issue for CI tool
parent 69876c7d
......@@ -106,7 +106,7 @@ rpipico.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
rpipico.menu.dbglvl.SPI=SPI
rpipico.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
rpipico.menu.dbglvl.Wire=Wire
rpipico.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
rpipico.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
rpipico.menu.dbglvl.All=All
rpipico.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
rpipico.menu.dbglvl.NDEBUG=NDEBUG
......@@ -216,7 +216,7 @@ rpipicopicoprobe.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
rpipicopicoprobe.menu.dbglvl.SPI=SPI
rpipicopicoprobe.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
rpipicopicoprobe.menu.dbglvl.Wire=Wire
rpipicopicoprobe.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
rpipicopicoprobe.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
rpipicopicoprobe.menu.dbglvl.All=All
rpipicopicoprobe.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
rpipicopicoprobe.menu.dbglvl.NDEBUG=NDEBUG
......@@ -362,7 +362,7 @@ adafruit_feather.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
adafruit_feather.menu.dbglvl.SPI=SPI
adafruit_feather.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_feather.menu.dbglvl.Wire=Wire
adafruit_feather.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_feather.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_feather.menu.dbglvl.All=All
adafruit_feather.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_feather.menu.dbglvl.NDEBUG=NDEBUG
......@@ -508,7 +508,7 @@ adafruit_featherpicoprobe.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
adafruit_featherpicoprobe.menu.dbglvl.SPI=SPI
adafruit_featherpicoprobe.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_featherpicoprobe.menu.dbglvl.Wire=Wire
adafruit_featherpicoprobe.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_featherpicoprobe.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_featherpicoprobe.menu.dbglvl.All=All
adafruit_featherpicoprobe.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_featherpicoprobe.menu.dbglvl.NDEBUG=NDEBUG
......@@ -654,7 +654,7 @@ adafruit_itsybitsy.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
adafruit_itsybitsy.menu.dbglvl.SPI=SPI
adafruit_itsybitsy.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_itsybitsy.menu.dbglvl.Wire=Wire
adafruit_itsybitsy.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_itsybitsy.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_itsybitsy.menu.dbglvl.All=All
adafruit_itsybitsy.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_itsybitsy.menu.dbglvl.NDEBUG=NDEBUG
......@@ -800,7 +800,7 @@ adafruit_itsybitsypicoprobe.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CO
adafruit_itsybitsypicoprobe.menu.dbglvl.SPI=SPI
adafruit_itsybitsypicoprobe.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_itsybitsypicoprobe.menu.dbglvl.Wire=Wire
adafruit_itsybitsypicoprobe.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_itsybitsypicoprobe.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_itsybitsypicoprobe.menu.dbglvl.All=All
adafruit_itsybitsypicoprobe.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_itsybitsypicoprobe.menu.dbglvl.NDEBUG=NDEBUG
......@@ -946,7 +946,7 @@ adafruit_qtpy.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
adafruit_qtpy.menu.dbglvl.SPI=SPI
adafruit_qtpy.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_qtpy.menu.dbglvl.Wire=Wire
adafruit_qtpy.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_qtpy.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_qtpy.menu.dbglvl.All=All
adafruit_qtpy.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_qtpy.menu.dbglvl.NDEBUG=NDEBUG
......@@ -1092,7 +1092,7 @@ adafruit_qtpypicoprobe.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
adafruit_qtpypicoprobe.menu.dbglvl.SPI=SPI
adafruit_qtpypicoprobe.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
adafruit_qtpypicoprobe.menu.dbglvl.Wire=Wire
adafruit_qtpypicoprobe.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
adafruit_qtpypicoprobe.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
adafruit_qtpypicoprobe.menu.dbglvl.All=All
adafruit_qtpypicoprobe.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
adafruit_qtpypicoprobe.menu.dbglvl.NDEBUG=NDEBUG
......@@ -1214,7 +1214,7 @@ generic.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
generic.menu.dbglvl.SPI=SPI
generic.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
generic.menu.dbglvl.Wire=Wire
generic.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
generic.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
generic.menu.dbglvl.All=All
generic.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
generic.menu.dbglvl.NDEBUG=NDEBUG
......@@ -1352,7 +1352,7 @@ genericpicoprobe.menu.dbglvl.Core.build.debug_level=-DDEBUG_RP2040_CORE
genericpicoprobe.menu.dbglvl.SPI=SPI
genericpicoprobe.menu.dbglvl.SPI.build.debug_level=-DDEBUG_RP2040_SPI
genericpicoprobe.menu.dbglvl.Wire=Wire
genericpicoprobe.menu.dbglvl.Wire.build.debug_level=DDEBUG_RP2040_WIRE
genericpicoprobe.menu.dbglvl.Wire.build.debug_level=-DDEBUG_RP2040_WIRE
genericpicoprobe.menu.dbglvl.All=All
genericpicoprobe.menu.dbglvl.All.build.debug_level=-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE
genericpicoprobe.menu.dbglvl.NDEBUG=NDEBUG
......
......@@ -65,7 +65,7 @@ compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
compiler.readelf.cmd=arm-none-eabi-readelf
# this can be overriden in boards.txt
# this can be overridden in boards.txt
build.extra_flags=
# These can be overridden in platform.local.txt
......
......@@ -24,7 +24,7 @@ def BuildDebugPort(name):
print("%s.menu.dbgport.%s.build.debug_port=-DDEBUG_RP2040_PORT=%s" % (name, p, p))
def BuildDebugLevel(name):
for l in [ ("None", ""), ("Core", "-DDEBUG_RP2040_CORE"), ("SPI", "-DDEBUG_RP2040_SPI"), ("Wire", "DDEBUG_RP2040_WIRE"),
for l in [ ("None", ""), ("Core", "-DDEBUG_RP2040_CORE"), ("SPI", "-DDEBUG_RP2040_SPI"), ("Wire", "-DDEBUG_RP2040_WIRE"),
("All", "-DDEBUG_RP2040_WIRE -DDEBUG_RP2040_SPI -DDEBUG_RP2040_CORE"), ("NDEBUG", "-DNDEBUG") ]:
print("%s.menu.dbglvl.%s=%s" % (name, l[0], l[0]))
print("%s.menu.dbglvl.%s.build.debug_level=%s" % (name, l[0], l[1]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment