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

Making UART0 or UART1 externally accessible for serial_lte_modem

I am working on a custom board for the nRF9160 and currently have a DK and a thingy.

I need to make a serial interface available on the DK, thingy and a custom board I am working on for serial AT commands. I would prefer for it to be UART1 so I can still use the USB interface.

A few weird things I have run into, I tried to edit "nrf9160dk_nrf9160ns.overlay": (formatting gets screwed up if you try to insert as code)

&uart2 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <10>;
rx-pin = <11>;
rts-pin = <12>;
cts-pin = <13>;
hw-flow-control;
};

I have tried changing pins and buadrate to no effect, even after reloading the project in SEGGER, but if I do the same for UART1/0 but still nothing.

When I goto make my own custom board how do I actually go about selecting pins for the AT command UART?

Edit:

I tried this solution: https://devzone.nordicsemi.com/f/nordic-q-a/45941/nrf9160-asset-tracker-configure-uart but the project gets errors when I try to open it

There was another one I tried, but I can't find it right now. Was to do with some kind of Arduino flag.

Parents
  • Hello Markus,

    I am a little bit of a loss on how to change what pins are actually used for the UART0 or UART2, nothing I do seems to make the serial appear on accessible pins.

    Thanks,

    Kyle

    Edit: I have tried editing "C:\ncs\v1.5.1\zephyr\boards\arm\circuitdojo_feather_nrf9160\circuitdojo_feather_nrf9160_common.dts" to change the uart2 pins, but then i get "create_nordic_project.py failed(1)" when i try to open the project

    Edit: I am just going to create a new post and cut this down to hopefully get to an answer faster

Reply
  • Hello Markus,

    I am a little bit of a loss on how to change what pins are actually used for the UART0 or UART2, nothing I do seems to make the serial appear on accessible pins.

    Thanks,

    Kyle

    Edit: I have tried editing "C:\ncs\v1.5.1\zephyr\boards\arm\circuitdojo_feather_nrf9160\circuitdojo_feather_nrf9160_common.dts" to change the uart2 pins, but then i get "create_nordic_project.py failed(1)" when i try to open the project

    Edit: I am just going to create a new post and cut this down to hopefully get to an answer faster

Children
No Data
Related