Memory Protection for WIO Terminal

Has anbody already protected the program memory of a WIO Terminal against read-out using the Arduino IDE? How can I do that?

I have found in the family data sheet SAM D5x/E5x Family Data Sheet of the WIO terminal’s controller ATSAMD51P19 that the NVMCTRL Security Bit does the job. How can I set the security bit, preferably using the Arduino IDE?

Any help is highly appreciated.