I'm testing the transition between different debug access levels (DAL) of SAM L11 Xplained Pro. According to the datasheet, leveling up DAL requires executing the corresponding chip erase command with a specific chip erase key (CEKEY) defined in NVM BOCOR Row.
I succeeded in changing from DAL0 to DAL2 with the default CEKEY2 (all 1s) by using the Programming Device in Microchip Studio IDE (as shown in the below graph). In this case, I don't need to provide any CEKEY2 and the IDE will automatically do it.
However after I changed CEKEY2, for example, 0x22222222 22222222 22222222 22222222, chip erase failed. I am not very sure how to provide the new CEKEY2, but feel it might be the box right after the erase button. So I tried to provide CEKEY2 here but an error was jumped out saying "key too short". I guess I may provide the key in a wrong way.
(BTW, the DAL can still be recovered to DAL2 by executing CE0->CE1, so I can keep doing this test.)
Could anyone give me some insights of how to change the DAL with a modified CEKEY? Thanks.