Hi Bob,
Thanks for this.
> I don't believe the KL27 and K32L are the same die due to the differences in memory layouts
I was just wondering based on the fact that the mask number in the errata is the same for both. Oout of curiosity I had a skim through but I couldn't see a difference in the memory layouts. No big deal.
I couldn't see any bootloader related stuff in the nxp github account.
Anyway.. looking more into the state of the bits in the RCM, after various ways for starting up/getting into/out of the bootloader, I'm assuming the bootloader must do a software reset itself to allow it to disable the watchdog.
So, I ended up using a similar logic as you (but rather looking at whether the watchdog was successfully enabled) and doing a software reset myself... seems to have done the trick.
Thanks also for the reference to the bootloader bug, turns out that I had inadvertently found and solved the same thing myself (after much head scratching).
Thanks again for your help.
Nick