I found a same question here
https://www.avrfreaks.net/forum/...
but they are talking strangely about programmers and not about the way how the production file can be created. It's clearly not possible to create such a file using microchip studio 'device programming' dialog. As the result one would have to flash the FW and then switch to Lock bits tab and set them.
They are also meantioning an 'atprogram' utility here https://ww1.microchip.com/downlo... This tool can set a security bit for arm and UC? devices, so not a match
avrdude can write lock bits but last time I checked it didn't support 'da' devices.
We are using atmel ICE debugger over UdPI
I could try to define a value in source code under 0x1040... where the lockbits are, but then I have to maintain 2 FW files which can be confusing for production people.
Well, I mean it should be easily done, am I missing something? (A solution with a batch file that does FW programming and setting Lock bits in several steps is also acceptable)
Thank you