I am using C8051f120 MCU. I want to put a read lock in so that no one can read the code memory using JTAG interface. I checked the flash Utility in UVision but found there is no option to set the read lock. Can someone help me as in how can I set the read lock
Err, something called processor "user manual" can help you.
Thanks for pointing out...I checked the manual and it said to set byte 0x1fbfe as 0. But I am not sure whether I need to set it using code or there is some utilities which do so after putting the code in the flash memory
"But I am not sure whether I need to set it using code or there is some utilities which do so after putting the code in the flash memory"
Did you find any text in the documentation saying that you need to do it using any special method?
Have you tried to create an assembler file that places the numeric constant 0 at that specific address, then linked and downloaded?
I am new to embedded coding and know only C lang...it would be gr8 help if u cud help me out as to how to add assembly code to my c application and linking it...I just need to put 0x00 in memory location 0x1FBFF which will put a read lock...
It would be even better for yourself, if you did spend some time on your own, trying to solve problems, before jumping on a web forum for help.
The only way you will learn, is by spending on time on problems.
well, one hint look at the SILabs flash loader documentation
Erik