46b2773e13
* fixed some include paths * LPC1768: Fix Serial API Add missing serial methods used if TX_BUFFER_SIZE is set Change return value of HalSerial:read to match Arduino API * LPC1768: add filters to ADC This is to try and compensate for hardware issue and oversensitivity to noise * LPC1768: remove the polling section of delayMicroseconds * LPC1768: lock usb mass storage device while device accesses it. Currently only applicable to persistent store, The device always has priority and will unmount the sd card from the host, Windows then tries to automount again so it can look like the explorer window freezes. Linux Mint, by default, just closes the Nemo window. * Add timeout to make sure if Serial never connects that Marlin still boots * Remove unneeded ifdef CPU_32_BIT In general the need for ifdef CPU_32_BIT blocks means that something is missing from the HAL API or a Platform, in this case HAL_TICKS_PER_US was missing from the AVR Platform * LPC1768: relocate RE-ARM debug_extra_script.py
21 lines
725 B
Python
21 lines
725 B
Python
Import("env")
|
|
|
|
env.AddPostAction(
|
|
"$BUILD_DIR/firmware.hex",
|
|
env.VerboseAction(" ".join([
|
|
"sed", "-i.bak",
|
|
"s/:10040000FFFFFFFFFFFFFFFFFFFFFFFFDEF9FFFF23/:10040000FFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFD/",
|
|
"$BUILD_DIR/firmware.hex"
|
|
]), "Fixing $BUILD_DIR/firmware.hex secure flash flags"))
|
|
env.AddPreAction(
|
|
"upload",
|
|
env.VerboseAction(" ".join([
|
|
"echo",
|
|
"'h\\nloadfile $BUILD_DIR/firmware.hex\\nr\\nq\\n'",
|
|
">$BUILD_DIR/aux.jlink"
|
|
]), "Creating auxiliary files"))
|
|
|
|
env.Replace(
|
|
UPLOADHEXCMD=
|
|
'JLinkExe -device MK20DX256xxx7 -speed 4000 -if swd -autoconnect 1 -CommanderScript $BUILD_DIR/aux.jlink -SkipProgOnCRCMatch = 1 -VerifyDownload = 1'
|
|
)
|