Flash protection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User7688
Level 2
Level 2
My software updates via bootloader.

my question is, how can I keep them from reading the flash memory?
0 Likes
4 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi,

What do you mean? Do you want to do a Read protection for your flash?
0 Likes
User7688
Level 2
Level 2
Hi,
any product currently on the market, allows you to update the firmware with this processor I see no way to do , if I use the UCB to protect my code , but what I can do 2 times.

EXAMPLE:
FIRST TIME: FROM FACTORY
STEP 1. ERASE FLASH
STEP 2. PROGRAM FLASH
STEP 3. READ PROTECT (3 CYCLES UCB LEFT)

SECOND TIME: UPDATE FIRMWARE VIA BOOTLOADER BY USER
STEP 1. UNPROTECT (2 CYCLES UCB LEFT)
STEP 2. ERASE FLASH
STEP 3. PROGRAM FLASH
STEP 4. READ PROTECT (1 CYCLES UCB LEFT)

solutions:

1. not use firmware update on my product!.
2. not protect my code.
3. Another solution that you can give me ?.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi,

Well that might be a misunderstanding.

When you program a UCB with password and R/W sector protect, the UCB is considered operational. At this stage you can always temporary unprotect the flash for software update with the correct password. And the MCU will return to protect state after a reset. This process can be done more than 3 times.

However in any case you are not happy with the password or the selected sector protection and want to make changes, then you are allowed 3 times to erase the UCB and reprogram the UCB.
0 Likes
User7688
Level 2
Level 2
Ok, Thank you!
0 Likes