B
B
Borys Latysh2021-09-29 22:10:21
Arduino
Borys Latysh, 2021-09-29 22:10:21

SAMD21 Arduino Zero - how to activate the protection bit?

There is a Chinese clone of Arduino Zero /
6154b6f928213828822940.jpeg
You need to protect it from copying. The documentation shows the presence of "Set Security Bit (SSB)".
Using Microchip Studio 7 and the "J-link" programmer, I open the corresponding section:
6154b839eb3f7597824337.jpeg
I press the button and receive confirmation.
I turn off the power of the controller and after turning it on I try to copy the memory.
And everything is perfectly copied. No security features appear.
Against the backdrop of a convenient and simple copy protection mechanism available in the AVR family of controllers, this situation is somewhat discouraging.

Question:
How does protection work for the ATSAMD21G18A controller and what is needed to activate it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Borys Latysh, 2021-09-30
@nava2002

The solution (itself) was found, maybe someone will need it.
https://forum.arduino.cc/t/code-protection-for-sam...
The principle is this:
Apparently ... Arduino bootloader for some reason to edit Fuse at the time of startup. There are C commands with which we can also return everything as it should.
The method is simple. We always force the security bit to be set at startup.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question