forked from platformio/platformio-core
Fix ElfToHex builder for microchippic32
This commit is contained in:
@ -92,6 +92,7 @@ env.Replace(
|
||||
if int(env.get("BOARD_OPTIONS", {}).get(
|
||||
"upload", {}).get("maximum_ram_size", 0)) < 65535:
|
||||
env.Append(
|
||||
ASFLAGS=["-G1024"],
|
||||
CCFLAGS=["-G1024"]
|
||||
)
|
||||
|
||||
@ -115,15 +116,7 @@ env.Append(
|
||||
),
|
||||
|
||||
ElfToHex=Builder(
|
||||
action=" ".join([
|
||||
"$OBJCOPY",
|
||||
"-O",
|
||||
"ihex",
|
||||
"-R",
|
||||
".eeprom",
|
||||
"$SOURCES",
|
||||
"$TARGET"]),
|
||||
suffix=".hex"
|
||||
action=" ".join(["pic32-bin2hex", "-a", "$SOURCES"]), suffix=".hex"
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -161,7 +154,7 @@ env.Append(
|
||||
if "uploadlazy" in COMMAND_LINE_TARGETS:
|
||||
target_firm = join("$BUILD_DIR", "firmware.hex")
|
||||
else:
|
||||
target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)
|
||||
target_firm = env.ElfToHex(target_elf)
|
||||
|
||||
#
|
||||
# Target: Print binary size
|
||||
|
Reference in New Issue
Block a user