Go Down

Topic: Using the Security Bit Feature (Read 1 time) previous topic - next topic

st3fan

I am interested in protecting my Due after programming. The datasheet talks about the "Security Bit Feature" (section 9.1.3.5) that can be used for this.

Has anyone done this by any change? Does anyone have example code?

S.

st3fan


I am interested in protecting my Due after programming. The datasheet talks about the "Security Bit Feature" (section 9.1.3.5) that can be used for this.

Has anyone done this by any change? Does anyone have example code?


To answer my own question: I enabled the 'Verbose Uploading' feature in the IDE and I see that the 'bossac' tool is used for uploading. One of the parameters to this tool is the '-e' option, which enabled the flash security flag.

So I think I can simply manually execute this command after compiling the code.

aethaniel

Hi stefan,

Yes, you can use BOSSA for that.

For other people interested in doing that into their own code: you have to use the EEFC by sending a Set GPNVM bit command to set the GPNVM0 bit.
This will make the flash not readable from any external way and totally lock the JTAG/SWD debug functions.
The EEFC peripheral driver isn't yet available in the public GIT.

The only way to come back to a fully available SAM3X device is to process a chip erase using the ERASE pin through the atmegau serial protocol  or the ERASE button on the board. The board needs to be powered for this.

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview