This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can i Set CRP in LPC2148....what to do with write at location 0x000001FC.

I Know all the values and Location to Set desired CRP(CODE READ PROTECTION)...but doesn't know how can i set this in my program or is there any other way to SET CRP.....

Parents
  • There are a few times when getting the final solution quickly is the best alternative.

    But it is often better to _not_ get the solution directly but instead having to spend some own time looking for it. Why? Because of all the additional things people tend to learn while googling for something.

    The only way we can keep up with constantly progressing technologies is by keeping our eyes open for new things to learn.

    It really shouldn't take long time to manage to find some information about how to specify an absolute code area in the startup file, and how to there declare a 4-byte constant with one of the CPR values specified in the processor user manual.

    So one instruction line for the assembler to tell the address and that the constant should be read-only in a code segment.
    And one line to tell that it is a 32-bit value and what value it is.

Reply
  • There are a few times when getting the final solution quickly is the best alternative.

    But it is often better to _not_ get the solution directly but instead having to spend some own time looking for it. Why? Because of all the additional things people tend to learn while googling for something.

    The only way we can keep up with constantly progressing technologies is by keeping our eyes open for new things to learn.

    It really shouldn't take long time to manage to find some information about how to specify an absolute code area in the startup file, and how to there declare a 4-byte constant with one of the CPR values specified in the processor user manual.

    So one instruction line for the assembler to tell the address and that the constant should be read-only in a code segment.
    And one line to tell that it is a 32-bit value and what value it is.

Children