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

using UART3 and disabled uart0,alway have log information

i use ncs1.5.0 and nrf5340dk_nrf5340_cpuapp, i disabled uart0 ,enabled uart3,  disabled hci_rpmsg out ,and connect uart3 rx pin p0.32 ,tx pin p0.33 to  a 232-usb connecting my pc , but still have hci_rpmsg out from uart3  , and make uart3 can not used by my favorite work.

Parents Reply Children
  • hi

     I follow your step but have no effect .still from UART3 tx pin p0.33 out : Received message...... .but in my code uart3 do not output this .

  • I see what the issue is.

    You are using pin 32 and 33 for Uart3, but these are already in use by the network core.

    zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts :

    &uart0 {
    	status = "okay";
    	current-speed = <115200>;
    	tx-pin = <33>;
    	rx-pin = <32>;
    	rts-pin = <11>;
    	cts-pin = <10>;
    };

    You must either change these pins, in the board file or by adding an overlay file to the hci_rpmsg sample,
    or you must use different pins for uart3.

  • hi!!

      nrf5340 app core has uart0-3 four uart module , network core has uart0 one uart module . in project folder,thers are prj.overlay  ,prj.conf about uart0 configuration ,are these uart0 configurations setting for network core uart0 ? or for appliction core uart0? .whose uart0 do these log configurations use  to print?

     how can i re-write .overlay for different core uart in a project? 

  • They are for the network core. The network core uses pins P1.01, P1.00, P0.11 and P0.10 for its uart0. It may be simpler to use different pins for uart3, rather than trying to change this.

    If you are certain that you want to change the network core uart0, make a folder called "child_image" in the peripheral_uart folder, then add a hci_rpmsg.overlay file with your desired changes.

    You will also have to change line 25 and 26 in zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.c
    pin 32 and 33 (P1.00 and P1.01) are used here, and can't be changed with overlays.

Related