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

Communication between nrf52840 and nrf9160 on thingy 91

Hei

I am trying to make SPI or UART communication between nrf9160 and nrf52840 on thingy 91....... i need to send data from nrf52840 to nrf9160(i will use and print the data)
what is the best way to do it? I tried connectivity bridge, but with no hope......


Another small question....i cannot get any thing out on putty when i write printk("hello world"); in the main function in connectivity bridge code ...how to fix it?

Parents
  • Hello Mohammad,

    configuring the LPUART in the asset tracker application is unfortunately not that straight forward. But I’m not sure if you need that, actually.

    UART0 and 1 are already pre-configured in the asset tracker, so you could use them as they are (and of course modify them via an overlay-file). You just replace the argument in the get binding function, eg.:

    uart0_dev = device_get_binding("UART_0");

    If you want to check the labels you can have a look at zephyr.dts in ../<your_build_folder>/zephyr.

    Let me know if you have any more questions!

    Regards,

    Markus

Reply
  • Hello Mohammad,

    configuring the LPUART in the asset tracker application is unfortunately not that straight forward. But I’m not sure if you need that, actually.

    UART0 and 1 are already pre-configured in the asset tracker, so you could use them as they are (and of course modify them via an overlay-file). You just replace the argument in the get binding function, eg.:

    uart0_dev = device_get_binding("UART_0");

    If you want to check the labels you can have a look at zephyr.dts in ../<your_build_folder>/zephyr.

    Let me know if you have any more questions!

    Regards,

    Markus

Children
No Data
Related