This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_TWI1->POWER no number named Power in NRF_TWI_Type

I'm tring to run my first twi program using nrf52. but I got complilation error no number named Power in NRF_TWI_Type

it's strange because NRF_TWI1 called from twi_master_write for example doent have power attribute. I looked in the NRF_TWI_Type in rnf52.h file and couldnt find the attribute POWER !!

Parents
  • There is no POWER register available for the customer, see here. Where did you find information about this?

    There is mentioned a POWER register in this errata. This register is normally not available for customers and hence not mentioned in the PS or nrf52.h. The address is specified however, so to toggle the POWER register for TWI0 (base at 0x40000000) you can execute this line of code:

    *(volatile uint32_t *)0x40003FFC = 0; 
    *(volatile uint32_t *)0x40003FFC; 
    *(volatile uint32_t *)0x40003FFC = 1; 
    
Reply
  • There is no POWER register available for the customer, see here. Where did you find information about this?

    There is mentioned a POWER register in this errata. This register is normally not available for customers and hence not mentioned in the PS or nrf52.h. The address is specified however, so to toggle the POWER register for TWI0 (base at 0x40000000) you can execute this line of code:

    *(volatile uint32_t *)0x40003FFC = 0; 
    *(volatile uint32_t *)0x40003FFC; 
    *(volatile uint32_t *)0x40003FFC = 1; 
    
Children
Related