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

Thingy:91 nrf9160 to CDC UARTE0_NS comms setup

I've got a Thingy:91 plugged into my computer and can see its USB terminals (/dev/tty.usbmodem143101 and /dev/tty.usbmodem143104). I can also see the "ZEPHYR USB" volume and its contents. This indicates to me that the connectivity bridge running on the Thingy:91's nRF52840 is operational.

I'm attempting to write out to UARTE0_NS which has been configured as per the following Zephyr config:

&uart0 {
  compatible = "nordic,nrf-uarte";
  current-speed = <115200>;
  status = "okay";
  tx-pin = <18>;
  rx-pin = <19>;
  rts-pin = <20>;
  cts-pin = <21>;
};

I'm also flashing the SPM sample, which I *think* permits the use of UARTE0_NS.

My program loops on waiting for the transmission to end. Am I missing anything so far?

Thanks.

Parents
  • Hello, Christopher!

    The Thingy:91 board files (for the thingy91_nrf52840) shows that UART0 is configured as below. Could you try with that overlay instead and see if it improves?

    &uart0 {
    	compatible = "nordic,nrf-uarte";
    	current-speed = <115200>;
    	status = "okay";
    	tx-pin = <15>;
    	rx-pin = <11>;
    	rts-pin = <21>;
    	cts-pin = <20>;
    };


    SPM configures UARTE0 as non-secure, yes.

    Best regards,
    Carl Richard

  • Thanks, but are you sure? I'm trying to communicate from the nRF9160 to the nRF52840. Your config looks like its from the thingy91_nrf52840.dts file. I'm looking at the thingy91_nrf9160_common.dts. Neither settings are working for me though, but perhaps this is then something else... Any further thoughts?

    Also, I just built and flashed the sample connectivity bridge to the Thingy's nRF52840 just to see that all is well there. The volume now mounts as "NONAME", so this confirms that my flashing was correct at least.

Reply
  • Thanks, but are you sure? I'm trying to communicate from the nRF9160 to the nRF52840. Your config looks like its from the thingy91_nrf52840.dts file. I'm looking at the thingy91_nrf9160_common.dts. Neither settings are working for me though, but perhaps this is then something else... Any further thoughts?

    Also, I just built and flashed the sample connectivity bridge to the Thingy's nRF52840 just to see that all is well there. The volume now mounts as "NONAME", so this confirms that my flashing was correct at least.

Children
Related