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

Thingy91 UART External communication

Hi Dev Team,

I was working on the Nordic Thingy91 and had to establish an external communication of a sensor to the Thingy91 through a UART. 

For this, I was looking into the GPIO's to check which pins can be used for my Tx, Rx, CTS, RTS. 

I found this link : https://devzone.nordicsemi.com/f/nordic-q-a/64742/nordic-thingy-91-pin-name/264224#264224 that talked about using anything between P0.18-P0.25 (MCU_IF0-7).

https://github.com/nrfconnect/sdk-nrf/blob/master/boards/arm/thingy91_nrf9160/thingy91_nrf9160_common.dts#L165-L182

These are said to be connected to the nrf52840 interface. Can I just use these pins for my external UART connection ?

Also, I wanted to know the functions of these Test pads (TP). Can the test pads be also used for UART communication?

If so, how will it be defined in the thingy91_nrf9160_common.dts file. 

Regards,

Adeel.

Parents Reply
  • Hi Adeel,

    Do you have a eternal debugger? or do you plan to update the Thingy91 device with programmer app?

    another thing, it seems that you are in need of GPIO's so i would highly recommend using a nrf9160DK instead of a Thingy for development and testing external sensors. 


    The MCU_IF pins are used to communicate between the nrf9160 and the nrf52840 is the interface that connects the nrf9160 to usb. If you start cutting the SB7 to SB11 you wont have full uart 0 and 1 support.

    in the thingy91_nrf9160_common.dts file you can see that these pins are used to uart. if you can get away using only 1 then you can cut out uart1

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


    If you cut all or any of the SB 7 to 11 then you will have to edit the board files also.

    Regards,
    Jonathan

Children
Related