Hi Everybody
I have big problem with MSP430FR5972, Problems are given by electrostatic discharges,
when happen that one electrostatic discharges,is applied on the body of the machine
some times the Fram of main program, is changed on some location, so the instraction
code is modified and the system goes in block. In this case need to reprogram the board with firmware.
This is a very big problem.
to avoid this I tried to protect the program memory range by the MPU register
I program only in assembler.
FLASH_Block:
MOV.B #0A5H,MPUCTHIGH
MOV.W #0400H,MPUSEGB1
MOV.W #01300H,MPUSEGB2
MOV.W #0FFFFH,MPUSAM /
BIC.W #(MPUSEGIXE+MPUSEG3WE+MPUSEG2WE+MPUSEG1WE),MPUSAM /
MOV.B #(MPUENA+MPULOCK),MPUCTL0W
MOV.B #010H,MPUCTHIGH
JMP $
after this I tried to write the protect sector and this cause a reset, this can be acceptable compromise
but if apply the electrostatic discharge the situation it seems even worse.
so I don't know how I can fix this problem, for me is unbielivable that the program memory can be
modified like a ram, and that the program memory section is not protect from default.
have you some solution to really protect the program memory from undesiderable changing
regards
Luigi