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
  • Got it the solutions...thank you.....

    just few lines and got best result

    
    ;//   <h> Code Read Protection level (CRP)
    ;//     <o>    CRP_Level:
    ;//                     <0xFFFFFFFF=> Disabled
    ;//                     <0x12345678=> CRP1
    ;//                     <0x87654321=> CRP2
    ;//                     <0x43218765=> CRP3 (Are you sure?)
    ;//   </h>
    CRP_Level               EQU     0x12345678
    
    
                    IF      :LNOT::DEF:NO_CRP
                    AREA    |.ARM.__at_0x01FC|, CODE, READONLY
    CRP_Key         DCD     CRP_Level
                    ENDIF
    
    
                    AREA    |.text|, CODE, READONLY
    
    
    

Reply
  • Got it the solutions...thank you.....

    just few lines and got best result

    
    ;//   <h> Code Read Protection level (CRP)
    ;//     <o>    CRP_Level:
    ;//                     <0xFFFFFFFF=> Disabled
    ;//                     <0x12345678=> CRP1
    ;//                     <0x87654321=> CRP2
    ;//                     <0x43218765=> CRP3 (Are you sure?)
    ;//   </h>
    CRP_Level               EQU     0x12345678
    
    
                    IF      :LNOT::DEF:NO_CRP
                    AREA    |.ARM.__at_0x01FC|, CODE, READONLY
    CRP_Key         DCD     CRP_Level
                    ENDIF
    
    
                    AREA    |.text|, CODE, READONLY
    
    
    

Children