We have a product using the PIC32MX795F512L out in the field that has firmware in both the boot and program sections.
The boot flash is write protected using the BWP bit 24 = 0 in DEVCFG0. The firmware is not Code Protected (CP bit 28 in DEVFG0). The program section is also unprotected and writable.
We find ourselves in a situation where we need to update the boot flash. Since these units are overseas, we have no physical access to them, thus we cannot hook up a laptop and Microchip programmer like the ICD3 or RealICE and reprogram them (which would give us access to both the boot and program areas0.
We are able to update the program section via a firmware update through our cellular modem.
Is there any way to programmatically set the BWP bit in DEVCFG0, so we can overwrite the boot flash with new code?