The new prepare_write method provides a Python interface to the P command. If only one sector needs to be prepared, the end sector number can be omitted.
In-system programming tool for LPC microcontrollers