AnsweredAssumed Answered

How to make a read-only segment in Flash

Question asked by mehdikarimibiuki on Feb 14, 2014
Latest reply on Feb 17, 2014 by mehdikarimibiuki

I would like to make a 1KB read-only memory segment in my Flash.

My chip is MK10DN512Z VLL10. It has PFLASH0 and PFLASH1 section, each having 256KB of data.

 

My lcf file looks like this:

lcf.PNG.png

and in my main file I did this:

main1.PNG.png

then I called that myTest() function in my main file. But when I read from that memory segment, I see nothing is written to it!!!

Now once I do all this, I the xMAP file, I cannot see that my_factory sector is created (the pointer to linker file is generated only):

# .para_config

#>00004000          __PARACFG (linker command file)

 

Why is that?

 

The goal is to specify a read-only sector in my FLASH memory that my code can write to it only. Once the FW is up, no one can write to that segment.

Outcomes