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 to read NRF52840 HW SOC Revision in application ?

Hello,

The part i am using is NRF52840 Rev 2 (Build Code Dx0)

How can i exact know what revision or build code the SOC has ?

I want to determine in application what revision of SOC my product has and perform different task. (Perform APPROTECT steps differently).

I know that by reading FICR register in application i can get the details of the SOC HW versions.

I dont see a Description of Dx0 or Fx0 in INFO.VARIANT register of FICR registers

Sample code if you can provide.

Thanks.

Parents
  • Hi there,

    You can read the FICR for example by:

    #include <zephyr.h>
    #include <inttypes.h>
    
    void main(void)
    {
    
    	uint32_t a = NRF_FICR->INFO.VARIANT;
    	printk("This board has the variant %" PRIu32 "\n", a);
    }
    

    Devices that return AAF0(0x41414530/1094796592) and AAFA(0x41414541/1094796609) has the latest app protect fix. 

    regards

    Jared 

Reply
  • Hi there,

    You can read the FICR for example by:

    #include <zephyr.h>
    #include <inttypes.h>
    
    void main(void)
    {
    
    	uint32_t a = NRF_FICR->INFO.VARIANT;
    	printk("This board has the variant %" PRIu32 "\n", a);
    }
    

    Devices that return AAF0(0x41414530/1094796592) and AAFA(0x41414541/1094796609) has the latest app protect fix. 

    regards

    Jared 

Children
Related