UART0, UART1 and I2C0 utilization and Initialization

Hi, I need to use UART0, UART1 and I2C0 in my application. I initialized these in overlay file (attached). When, debug is run, it is observed that the I2C binding is not successful see attached image file. I am using UART0 and UART1 in asynchrounous mode.  The zypher.dts fie also is attached. 

8176.bms_nrf5340_cpuapp.overlay5023.zephyr.dts   

Parents
  • Dear Hellesvik, you pointed through the links that TWIM and UARTE have same ID and address space. Therefore, how to do instantiaiton of such Peripherals ? Should instantiaiton be done in Kernel or Programitacally ? If say UART0 has been instantiated in Kernel, then how to disable it and enable I2C0 programitically ? After completiotion of I2C0 transmit/ receive task, how to enabke UART0 again ? I2C0 is to be used as TWIM.

Reply
  • Dear Hellesvik, you pointed through the links that TWIM and UARTE have same ID and address space. Therefore, how to do instantiaiton of such Peripherals ? Should instantiaiton be done in Kernel or Programitacally ? If say UART0 has been instantiated in Kernel, then how to disable it and enable I2C0 programitically ? After completiotion of I2C0 transmit/ receive task, how to enabke UART0 again ? I2C0 is to be used as TWIM.

Children
No Data
Related