Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5878

General • Re: How to disable the BOOTSEL pin

$
0
0
To increase the difficulty of dump uf2 file.
Is it possible to disable the SWD pin in my application code?

Or is it possible to write the hash value of uid of the pico board into the a fixed flash address in my application code when power on the board.
The writing of hash code only happens for the first time when my application code. For the second time boot up, it will try to read the fixed flash address to get hash value and my application will also try to calculate the hash value. If the hash value are same, then it will go to normal code execution. Otherwise it will try to erase flash.

With this way, other person may copy the uf2 file but they can't run it on other pico boards.
The only issue is: How does my application can know itself is running for the first time ?

Statistics: Posted by ldw1984 — Thu Jun 13, 2024 6:06 am



Viewing all articles
Browse latest Browse all 5878

Trending Articles