Toshiba TB9M040 Password Protection
Jump to navigation
Jump to search
Toshiba TB9M040 password protection handling is implemented in the PCode_DevPro_Toshiba_TB9M040.pex script file.
Important notes
- Password words must not be all 1s or all 0s.
- 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_TB9M040.pex
| Operation | Parameters | Values | Description |
|---|---|---|---|
| SetPassword | Password | see below[1] | Password to be stored at FCKVDATx. |
| RemovePassword | Password | see below[1] | Password to be erased from FCKVDATx. |
| EnableDebug | Password | see below[1] | Password to be unlock debug and memory access. |
| CheckProtection | - | - | Prints status of the password protection. |
- ↑ 1.0 1.1 1.2 Passsword: AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEEFFFFFFFFGGGGGGGGHHHHHHHH
AAAAAAAA 8th hex word value
BBBBBBBB 7th hex word value
CCCCCCCC 6th hex word value
DDDDDDDD 5th hex word value
EEEEEEEE 4th hex word value
FFFFFFFF 3nd hex word value
GGGGGGGG 2nd hex word value
HHHHHHHH 1st hex word value
Detailed description
SetPassword
- Sets password key to FCKVDATx.
- Each word of the 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=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex SEGGER Device Provisioner V9.16 Compiled Feb 4 2026 12:56:44 Command line: -operation SetPassword -SetConfigVal Password=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex Firmware: J-Link V11 compiled Apr 1 2025 10:02:30 S/N: 601018362 J-Link log: DAP initialized successfully. J-Link log: Set new password key. J-Link log: FCKVDAT0: 0x89ABCDEF J-Link log: FCKVDAT1: 0x01234567 J-Link log: FCKVDAT2: 0xB9BBBDBF J-Link log: FCKVDAT3: 0xB1B3B5B7 J-Link log: FCKVDAT4: 0x8CACCCEC J-Link log: FCKVDAT5: 0x0C2C4C6C J-Link log: FCKVDAT6: 0xA9ABADAF J-Link log: FCKVDAT7: 0xA1A3A5A7 J-Link log: Successfully finished. J-Link log: Please re-power the device.
RemovePassword:
DevPro.exe -operation RemovePassword -SetConfigVal "Password=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex SEGGER Device Provisioner V9.16 Compiled Feb 4 2026 12:56:44 Command line: -operation RemovePassword -SetConfigVal Password=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex Firmware: J-Link V11 compiled Apr 1 2025 10:02:30 S/N: 601018362 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: FCKVDAT2: 0xFFFFFFFF J-Link log: FCKVDAT3: 0xFFFFFFFF J-Link log: FCKVDAT4: 0xFFFFFFFF J-Link log: FCKVDAT5: 0xFFFFFFFF J-Link log: FCKVDAT6: 0xFFFFFFFF J-Link log: FCKVDAT7: 0xFFFFFFFF J-Link log: Successfully finished. J-Link log: Please re-power the device.
EnableDebug:
DevPro.exe -operation EnableDebug -SetConfigVal "Password=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF" -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex SEGGER Device Provisioner V9.16 Compiled Feb 4 2026 12:56:44 Command line: -operation EnableDebug -SetConfigVal Password=A1A3A5A7A9ABADAF0C2C4C6C8CACCCECB1B3B5B7B9BBBDBF0123456789ABCDEF -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex Firmware: J-Link V11 compiled Apr 1 2025 10:02:30 S/N: 601018362 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_TB9M040.pex SEGGER Device Provisioner V9.16 Compiled Feb 4 2026 12:56:44 Command line: -operation CheckProtection -if swd -speed 1000 -ScriptFile PCode_DevPro_Toshiba_TB9M040.pex Firmware: J-Link V11 compiled Apr 1 2025 10:02:30 S/N: 601018362 J-Link log: DAP initialized successfully. J-Link log: Device is not protected.