Part Number: MSPM0G3519
I seem to not understand a concept correctly. I am implementing a custom bootloader OTA update application that streams the downloaded image to bank1 (0x00040000) and then does a bank swap to the newly downloaded image. The problem I am having is this requires a BCR/BSL configuration change to support bank swap which is where I keep locking out the MCU eventually. I must be missing a concept because I want to write the BCR/BSL config change once and then write protect this NONMAIN region to avoid locking out my processor.
However, once I write protect the NONMAIN, I can no longer flash the image again due to a "Error connecting to the target: Connection to MSPM0 core failed. Possible root causes: 1) Debug access within NONMAIN was disabled or enabled with password. 2) Peripheral mis-configuration (e.g improper watchdog or clock). To see a more detailed diagnostic of the issue, please press the 'Read boot diagnostic' button." error. All I can do at this point is a factory erase to flash again. I am obviously missing key step or concept as to how to properly modify NONMAIN BCR/BSL configuration. Below are the syscfg configuration changes I am attempting:



