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

How can I output log information on my nrf9160 board?

I have designed a nrf9160 debugging board, which uses 18 and 19 pin as the log output. Then I also configure the TX and Rx of UART0 in the overlay file, which are 18 and 19 respectively. However, when I connect to the PC with the serial port cable, I find that there is no log information output. How can I do this?
&uart0{
	status = "okay";
	current-speed = <115200>;
	tx-pin = <18>;
	rx-pin = <19>;
	#rts-pin = <14>;
	#cts-pin = <15>;
};
Parents
  • Now,I can modify the uart0 tx-pin and rx-pin in the nrf9160_pca10090_common.dts file directly , and now it can output log. However, all AT instructions are invalid, and from the monitor interface, many functions are limited. Why?
    &gpio0 {
    	status = "okay";
    };
    
    &uart0 {
    	status = "okay";
    	current-speed = <115200>;
    	tx-pin = <31>;
    	rx-pin = <30>;
    	rts-pin = <27>;
    	cts-pin = <26>;
    };
    
    &uart1 {
    	status = "okay";
    	current-speed = <115200>;
    	tx-pin = <1>;
    	rx-pin = <0>;
    	rts-pin = <14>;
    	cts-pin = <15>;
    };
Reply
  • Now,I can modify the uart0 tx-pin and rx-pin in the nrf9160_pca10090_common.dts file directly , and now it can output log. However, all AT instructions are invalid, and from the monitor interface, many functions are limited. Why?
    &gpio0 {
    	status = "okay";
    };
    
    &uart0 {
    	status = "okay";
    	current-speed = <115200>;
    	tx-pin = <31>;
    	rx-pin = <30>;
    	rts-pin = <27>;
    	cts-pin = <26>;
    };
    
    &uart1 {
    	status = "okay";
    	current-speed = <115200>;
    	tx-pin = <1>;
    	rx-pin = <0>;
    	rts-pin = <14>;
    	cts-pin = <15>;
    };
Children
Related