Can I modify the value of ucir in my application? If yes, How to do it?
Can I modify the value of ucir in my application? If yes, How to do it?
Yes you can, simply write to UICR->xxx
address (must be 32-bit aligned and better not overwrite some significant registers;)
Hi Endnode, Thanks for your feedback I have tried the code below: #define UICR_CUSTOM_ADDRESS 0x10001080
*((uint32_t *)UICR_CUSTOM_ADDRESS) = 0x12345678;
printf("UICR:%8x ",(*(uint32_t *)UICR_CUSTOM_ADDRESS));
But I still get "UICR:ffffffff". Can you tell me what is the right way to modify UICR->CUSTOMER ? Thanks Frank
Hi Endnode, Thanks for your feedback I have tried the code below: #define UICR_CUSTOM_ADDRESS 0x10001080
*((uint32_t *)UICR_CUSTOM_ADDRESS) = 0x12345678;
printf("UICR:%8x ",(*(uint32_t *)UICR_CUSTOM_ADDRESS));
But I still get "UICR:ffffffff". Can you tell me what is the right way to modify UICR->CUSTOMER ? Thanks Frank