The UNLOCK_CONFIG (0x03) command is used to unlock protected sections of the program memory (ex: configuration bit reprogramming, and on PIC18FxxJxx devices, reprogramming of the last page of program flash memory). The Lock/Unlock field allows the bootloader to either lock or unlock the configuration and other sensitive regions. A value of 0x00 unlocks the configuration range, and a value of 0x01 locks it.
This command will cause the QUERY_DEVICE results of the device to change. To re-discover the valid memory ranges, issue a second QUERY_DEVICE command.
This command does not directly have an associated response (although the host application is responsible for sending another QUERY_DEVICE request, which will have a response).
Table: UNLOCK_CONFIG command format
Packet Byte |
Content |
0 |
UNLOCK_CONFIG (0x03) |
1 |
Lock (0x01) / Unlock (0x00) |
2-63 |
(padding – init to 0x00) |
MLA - USB Library Help Version : 2.16
![]() |