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

uart0 setting in device tree

Hi I am using the aws_iot example on the nrf9160 DK.

I have opened the zephyr.dts file and in the section uart0: it has the following 

I've reached this point trying to change the pins that the console outputs. But whatever change I may do at this point there is no effect.

I continue to get normal logging in the LTE Link monitor application. I even deleted the section and it still works as before.

It seems that it is taking this info from elsewhere but where?

Parents
  • Hello,

    I walked into this problem once.

    You can change the pins with an overlay by clicking the pen icon next to the pinnumbers in the devicetree. You also need uart1 instead of uart0 if I remember correctly.

  • Thanks for the quick answer, 

    by the "by clicking the pen icon next to the pinnumbers", it looks like you are referring to an editing tool which one is it?

  • If you're in vscode, you should go to the nordic environment, there you will see, above actions, the device tree. open the "busses" folder, then open the uart folder of the uart you desire to use. You can see a few settings there. If you click the pensil, you will be able to edit your desired setting.

  • Yes, this will create a devicetree overlay file for you containing the new values you set.

Reply Children