Post Go back to editing

Enabling write protection during runtime

Hello, I am having some issues implementing the write protection in the aducm3029. There are two different methods to enabling this, one writing the configuration to address 0x0000_019C (which works fine for me). However I want to use the other method of setting the protection during runtime. I write the configuration value to address 0x3FFF0 and confirm this is correct using gdb. I reset the device but the pages that should be protected are not. Is there an extra step required that I am missing. It seems that it just takes the configuration at  0x0000_019C and never looks at 0x3FFF0 after the reset. I have referenced a similar question asked before but this was of no help (aducm3029 write protection load address ) 

Top Replies

    •  Analog Employees 
    Jan 15, 2018 +1 suggested

    Hi ,

    Thank you for your query. You are right in that there are two methods to configure flash write protection in the ADuCM3027/ADuCM3029.

    The first method, is a static configuration method by…

Parents
  • Hi ,

    Thank you for your query. You are right in that there are two methods to configure flash write protection in the ADuCM3027/ADuCM3029.

    The first method, is a static configuration method by writing to the 32-bit word at address 0x19C in flash page 0. The value of this 32-bit word as written by the user, is used by the ADI kernel as part of a secure boot sequence to enforce flash write protection (refer Table 4. and accompanying description in the "USING THE ADuCM3029/ADuCM3027 PROCESSOR BOOT KERNEL" chapter of UG-1091 for a complete list of security parameters in flash page 0). The second method to configure flash write protection, is a runtime configuration method, by writing to the FLCC_WRPROT register. User key is required to modify this register. The reference to flash address '0x3FFF0' is a mistake in the Hardware Reference Manual and should be ignored.


    Best Regards,

    Narsimh

Reply
  • Hi ,

    Thank you for your query. You are right in that there are two methods to configure flash write protection in the ADuCM3027/ADuCM3029.

    The first method, is a static configuration method by writing to the 32-bit word at address 0x19C in flash page 0. The value of this 32-bit word as written by the user, is used by the ADI kernel as part of a secure boot sequence to enforce flash write protection (refer Table 4. and accompanying description in the "USING THE ADuCM3029/ADuCM3027 PROCESSOR BOOT KERNEL" chapter of UG-1091 for a complete list of security parameters in flash page 0). The second method to configure flash write protection, is a runtime configuration method, by writing to the FLCC_WRPROT register. User key is required to modify this register. The reference to flash address '0x3FFF0' is a mistake in the Hardware Reference Manual and should be ignored.


    Best Regards,

    Narsimh

Children
No Data