My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debug_extra_script.py 725B

123456789101112131415161718192021
  1. Import("env")
  2. env.AddPostAction(
  3. "$BUILD_DIR/firmware.hex",
  4. env.VerboseAction(" ".join([
  5. "sed", "-i.bak",
  6. "s/:10040000FFFFFFFFFFFFFFFFFFFFFFFFDEF9FFFF23/:10040000FFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFD/",
  7. "$BUILD_DIR/firmware.hex"
  8. ]), "Fixing $BUILD_DIR/firmware.hex secure flash flags"))
  9. env.AddPreAction(
  10. "upload",
  11. env.VerboseAction(" ".join([
  12. "echo",
  13. "'h\\nloadfile $BUILD_DIR/firmware.hex\\nr\\nq\\n'",
  14. ">$BUILD_DIR/aux.jlink"
  15. ]), "Creating auxiliary files"))
  16. env.Replace(
  17. UPLOADHEXCMD=
  18. 'JLinkExe -device MK20DX256xxx7 -speed 4000 -if swd -autoconnect 1 -CommanderScript $BUILD_DIR/aux.jlink -SkipProgOnCRCMatch = 1 -VerifyDownload = 1'
  19. )