Wireless timer synchronization nRF5340 (build error).

Hello

I want to make an application that will be sending data from 3 peripheral BLE devices to the central device which wil be connected to PC and transmitting data (from all 3 peripheral devices) to it.
Sensor data will be received and sent 100 times per second from each device to the central device. Data from sensors must be collected and sent at the same time to prevent the receiver (central device) to receiving data from different moments in time. The measurement should last even 3 hours and clocks of peripheral devices cannot differ so much that the data received by the central device will be shifted relative to each other in time by more than 1 ms during the entire measurement.

I saw this time synchronization project:
Wireless timer synchronization among nRF5 devices
https://github.com/nordic-auko/nRF5-ble-timesync-demo

but I have problem with building it on nRF5340.
I am using NRF Connect SDK 2.5.0 and toolchain 2.5.0


This my build configuration:


this is what I have on my terminal:


I don't know why this error occurred. I just try to build code from github without any modyfication.
Can you help me resolve this problem?

I also have a question whether this is the only example of wireless clock synchronization or are there others (which might be better suited for my application) ?


Best Regards

Parents
  • Hi,

    I have replicated the error using nrf5340-dk. Is there any specific reason why you would want to use this sample on nrf5340-dk?

    The sample should build fine on nrf52840-dk. Have you tried it?

    Best regards,
    Dejan

  • HI,

    I want to make my project on nRF5340, so I want to build this sample on it and I thought that this sample is compatible with nRF5340dk because there are 5340 board configurations



    I also tried to build this sample for nRF52840 but I had an error.

    build configuration;


    error:




    Best Regards

  • Hi,

    I have tested this myself on nrf52840-dk and build was successful.
    On nrf5340-dk there seems to be an error in the overlay file. You could try to change nrf5340dk_nrf5340_cpuapp.overlay file

    / {
    gpio_fwd: nrf-gpio-forwarder {
        compatible = "nordic,nrf-gpio-forwarder";
        status = "okay";
        sync-pin {
            gpios = <&gpio1 14 0>;
        };
        buttons {
            gpios = <&gpio0 23 0>, <&gpio0 24 0>, <&gpio0 8 0>, <&gpio0 9 0>;
        };
        leds {
            gpios = <&gpio0 28 0>, <&gpio0 29 0>, <&gpio0 30 0>, <&gpio0 31 0>;
        };
    };
    };

    Best regards,
    Dejan

Reply
  • Hi,

    I have tested this myself on nrf52840-dk and build was successful.
    On nrf5340-dk there seems to be an error in the overlay file. You could try to change nrf5340dk_nrf5340_cpuapp.overlay file

    / {
    gpio_fwd: nrf-gpio-forwarder {
        compatible = "nordic,nrf-gpio-forwarder";
        status = "okay";
        sync-pin {
            gpios = <&gpio1 14 0>;
        };
        buttons {
            gpios = <&gpio0 23 0>, <&gpio0 24 0>, <&gpio0 8 0>, <&gpio0 9 0>;
        };
        leds {
            gpios = <&gpio0 28 0>, <&gpio0 29 0>, <&gpio0 30 0>, <&gpio0 31 0>;
        };
    };
    };

    Best regards,
    Dejan

Children
Related