Skip to content

Commit

Permalink
bugfixes for build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tsandmann committed Jun 2, 2022
1 parent 60a1242 commit 3ea23cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
}
2 changes: 1 addition & 1 deletion mcu_post_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

Import("env")

env.AddPostAction("$BUILD_DIR/${PROGNAME}.elf", env.VerboseAction(" ".join(["$OBJCOPY", "-j", ".eeprom --set-section-flags=.eeprom='alloc,load'",
env.AddPostAction("$BUILD_DIR/${PROGNAME}.elf", env.VerboseAction(" ".join(["$OBJCOPY", "-j", ".eeprom --set-section-flags=.eeprom=alloc,load",
"--change-section-lma", ".eeprom=0", "-O", "ihex", '"$BUILD_DIR/${PROGNAME}.elf"', '"$BUILD_DIR/${PROGNAME}.eep"']), "Building $BUILD_DIR/${PROGNAME}.eep")
)
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ board = 644pa16m
platform = ${mcu.platform}
board_build.f_cpu = ${mcu.board_build.f_cpu}
build_unflags = ${mcu.build_unflags}
build_flags = ${mcu.build_flags} -Wl,--section-start=.bootloader=0x1F800
build_flags = ${mcu.build_flags} -Wl,--section-start=.bootloader=0xF800
extra_scripts = ${mcu.extra_scripts}

upload_protocol = ${mcu.upload_protocol}
Expand Down Expand Up @@ -80,7 +80,7 @@ platform = ${mcu.platform}
board_build.f_cpu = ${mcu.board_build.f_cpu}
board_upload.maximum_size = 0 ; ignored for test configurations
build_unflags = ${mcu.build_unflags}
build_flags = ${mcu.build_flags} -Werror -Wno-error=conversion -DIN_TEST_RUN -Wl,--section-start=.bootloader=0x1F800
build_flags = ${mcu.build_flags} -Werror -Wno-error=conversion -DIN_TEST_RUN -Wl,--section-start=.bootloader=0xF800

upload_protocol = ${mcu.upload_protocol}
upload_flags = ${mcu.upload_flags}
Expand Down

0 comments on commit 3ea23cb

Please sign in to comment.