Dear Narayanan,
I am trying to protect the flash memory of TI contriller(LM3S5791) as execute only. But its not hapaning.Through LM Flash utility it can upload the code. For downloading purpose used JTAG connector.
Code:
#define FLASH_FMPRE0 0x400FE200
#define FLASH_FMPPE0 0x400FE400
#define HWREG(x) \
(*((volatile unsigned long *)(x)))
BLDR_vEnExeProtection()
{
HWREG(
FLASH_
FMPRE0)= 0xFFFF FFF0 ;
FMPPE0)= 0xFFFF FFF0 ;
}
And also I am try with changing the Polocy combinations, with help of LM3S579_nu.pdf.
Regarding this kindly provide me some information.
Regards,
raju
see response at post:
http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/162057.aspx