Part Number:MSP430FR6989
Hello
Looking at the current user's guide (slau 367 o), I divide the FRAM segment and write and protect it.
FRAM area can be divided / written by the following program.
WDTCTL = WDTPW | WDTHOLD;
PM5CTL0 & = ~ LOCKLPM5;
MPUCTL0H = 0xA5;
MPUCTL0 = MPUPW;
MPUSEGB1 = 0x0F80;
MPUSEGB2 = 0x1A00;
MPUSAM & = ~MPUSEGIWE;
MPUSAM = MPUSEG1RE | MPUSEG1XE | MPUSEG1WE |
MPUSEG2RE | MPUSEG2XE | MPUSEG2WE |
MPUSEG3RE | MPUSEG3XE | MPUSEG3WE |
MPUSEGIRE | MPUSEGIXE | MPUSEGIWE;
After that, although it tried to take a protot with the following setting, the register value on CCS is invalid but it is written.
MPUSAM & = ~ MPUSEG1XE; // Disable execution
MPUSAM & = ~ MPUSEG1WE; // Disable writing
MPUSAM & = ~ MPUSEG2XE; // Disable execution
MPUSAM & = ~ MPUSEG2WE; // Disable writing
Which register can be set to disable writing?
Regards.