UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts

I'm working on ncs 1.6.1 and nrf9160-DK.

I need to use SPI1, so i confirmed that UART1 is already disabled by default in  ncs\v1.6.1\zephyr\boards\arm\nrf9160dk_nrf9160\nrf9160dk_nrf9160ns.dts

and i also add a &uart1 status = "disabled" in my overlay files. however, the SPI1 didn't work , 

finally, the SPI1 works successfully only if i disable uart1 in ncs\v1.6.1\zephyr\boards\arm\nrf9160dk_nrf9160\nrf9160dk_nrf9160_common.dts

but i don't want to modify files in SDK like this, so, is there any way to  solve this in project files like overlay file?

Parents
  • Hello,

    Please try to add the DTS overlay for the SPM subimage as well by adding a overlay named "nrf9160dk_nrf9160.overlay" in <project directory>\child_image\spm\nrf9160dk_nrf9160.overlay".

    &uart1 {
    	    status = "disabled";
    };
    

    Then to confirm that UART1 is indeed disabled by opening the <build directory>\spm\zephyr\zephyr.dts file and confirm that UART1 status is set to disabled:

    Best regards,

    Vidar

  • Hi,

    I tried to add the <project directory>\child_imagespm\nrf9160dk_nrf9160.overlay, but the uart1's status is still "okay" in the <build directory>\spm\zephyr\zephyr.dts.

    however, i found that the application sample "serial lte modem" doesn't have this problem (even its uart1's status is "okay" in the \spm\zephyr\zephyr.dts). so, after analyzing the differences, i find that adding "<project directory>\child_image\spm.conf" and only "CONFIG_SERIAL=n" in the spm.conf file can solve this problem.

    do you know why?

Reply
  • Hi,

    I tried to add the <project directory>\child_imagespm\nrf9160dk_nrf9160.overlay, but the uart1's status is still "okay" in the <build directory>\spm\zephyr\zephyr.dts.

    however, i found that the application sample "serial lte modem" doesn't have this problem (even its uart1's status is "okay" in the \spm\zephyr\zephyr.dts). so, after analyzing the differences, i find that adding "<project directory>\child_image\spm.conf" and only "CONFIG_SERIAL=n" in the spm.conf file can solve this problem.

    do you know why?

Children
Related