Toshiba SmartMCD Series Password Protection

From SEGGER Knowledge Base
Jump to navigation Jump to search

Toshiba SmartMCD password protection handling is implemented in the PCode_DevPro_Toshiba_TB9M.pex script file.

Important notes

  1. Password must not be all 1s or all 0s.
  2. After password remove or setting operation, the target device must be power-cycled.

Usage

DevPro -operation [operation_name]-if SWD -speed 4000 -SetConfigVal [parameter_name=value] -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
Operation Parameters Values Description
SetPassword Password XXXXXXXXYYYYYYYY Password to be stored at FCKVDATx.
Where: XXXXXXXX - 1st hex word value,
YYYYYYYY - 2nd hex word value
RemovePassword Password XXXXXXXXYYYYYYYY Password to be erased from FCKVDATx.
Where: XXXXXXXX - 1st hex word value,
YYYYYYYY - 2nd hex word value
EnableDebug Password XXXXXXXXYYYYYYYY Password to be unlock debug and memory access.
Where: XXXXXXXX - 1st hex word value,
YYYYYYYY - 2nd hex word value
CheckProtection - - Prints status of the password protection.

Detailed description

SetPassword

  • Sets password key to FCKVDATx.
  • Password must not be all 1s or all 0s.

RemovePassword

  • Erases password key from FCKVDATx.

EnableDebug

  • Sets password key to MDEPWDx for unprotecting the device until next POR.

CheckProtection

  • Checks if device is protected.

Examples

SetPassword  :

DevPro.exe -operation SetPassword  -SetConfigVal "Password=123456789ABCDE0F" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
SEGGER Device Provisioner V8.18
Compiled Mar  5 2025 14:42:31
Command line: -operation SetPassword -SetConfigVal Password=123456789ABCDE0F -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex

J-Link log: DAP initialized successfully.
J-Link log: Set new password key.
J-Link log:   FCKVDAT0: 0x9ABCDE0F
J-Link log:   FCKVDAT1: 0x12345678
J-Link log: Successfully finished.
J-Link log: Please re-power the device.

RemovePassword:

DevPro.exe -operation RemovePassword  -SetConfigVal "Password=123456789ABCDE0F" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
SEGGER Device Provisioner V8.18
Compiled Mar  5 2025 14:42:31
Command line: -operation RemovePassword -SetConfigVal Password=123456789ABCDE0F -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
J-Link log: DAP initialized successfully.
J-Link log: Password key erase.
J-Link log:   FCKVDAT0: 0xFFFFFFFF
J-Link log:   FCKVDAT1: 0xFFFFFFFF
J-Link log: Successfully finished.
J-Link log: Please re-power the device.

EnableDebug:

DevPro.exe -operation EnableDebug  -SetConfigVal "Password=123456789ABCDE0F" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
SEGGER Device Provisioner V8.18
Compiled Mar  5 2025 14:42:31
Command line: -operation EnableDebug -SetConfigVal Password=123456789ABCDE0F -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex

J-Link log: DAP initialized successfully.
J-Link log: Debug enabled.

CheckProtection:

C:\DevPro.exe -operation CheckProtection -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex
SEGGER Device Provisioner V8.18
Compiled Mar  5 2025 14:42:31
Command line: -operation CheckProtection -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M.pex

J-Link log: DAP initialized successfully.
J-Link log: Device is not protected.