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 Reply
  • So, the root cause of this problem is that the SPM occupies the uart1. correct?

    and after all, I can change the spm\zephyr\zephyr.dts only if i add following script in my CmakeList.txt. 

    set(spm_DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")

    while the spm.conf doesn't need any scripts to add, i wonder where is the file to define the locations of these .conf .overlay files? 

Children
Related