MSP432¶
Below are common example commands specific for Texas Instruments’ MSP432 devices
Reset After Flash¶
Reset the device after flashing
Python
>>> opts = {"ResetOnRestart" : True}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "ResetOnRestart" "True"
True
Flash Reset Type - Hard Reset¶
Set Flash Reset Type to Hard Reset when flashing device (default option)
Python
>>> opts = {"FlashResetType" : "Hard reset"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashResetType" "Hard reset"
True
Flash Reset Type - Soft Reset¶
Set Flash Reset Type to Soft Reset when flashing device
Python
>>> opts = {"FlashResetType" : "Soft reset"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashResetType" "Soft reset"
True
Flash Erase - Main Memory Only¶
Erase main memory only (default option)
Python
>>> opts = {"FlashEraseSelection" : "Erase main memory only"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashEraseSelection" "Erase main memory only"
True
Flash Erase - Main and Information Memory¶
Erase main and information memory
Python
>>> opts = {"FlashEraseSelection" : "Erase main and information memory"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashEraseSelection" "Erase main and information memory"
True
Flash Erase - Factory Reset¶
Reset device to Factory default
Python
>>> opts = {"FlashEraseSelection" : "Factory Reset"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashEraseSelection" "Factory Reset"
True
Flash Erase - Necessary Segments Only¶
Erase and download necessary segments only
Python
>>> opts = {"FlashEraseSelection" : "Erase and download necessary segments only"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashEraseSelection" "Erase and download necessary segments only"
True
Flash Erase - Do Not Erase Flash Memory¶
Do not erase Flash memory
Python
>>> opts = {"FlashEraseSelection" : "Do not erase Flash memory"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="M4321005")
True
CLI
$ tiflash -s M4321005 flash "/path/to/image.hex" -o "FlashEraseSelection" "Do not erase Flash memory"
True