invalid suffix "_FULL_NAME" on integer constant

I'm trying to implement my own driver for our custm made board based onnRF5340-QKAA. Driver is for NCT218 I2C temperature sensor.

I'm implementing it based on the samples in the Zephyr project. I described api and trying to compile but during building it shows me error like below.

/Users/el314biig/biig-fw-ws/biig-fw/NCT218-driver/tmp_nct218.c: At top level:
/Users/el314biig/biig-fw-ws/biig-fw/build/zephyr/include/generated/devicetree_generated.h:15994:49: error: invalid suffix "_FULL_NAME" on integer constant
15994 | #define DT_FOREACH_OKAY_INST_onnn_nct218(fn) fn(0)

I am super newbie in programming especially Zephyr. I don't understand where to dig in. Can anybody help me? I can send any part  of code or even the whole project.

Parents Reply Children
  • Now the error about fn(0) is absent and there is no any indication of special error, only the overall conclusion in the end:

    collect2: error: ld returned 1 exit status

    ninja: build stopped: subcommand failed.

    FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/el314biig/biig-fw-ws/biig-fw/build

    Can you explain the difference between those two and why it doesn't point to any special error in the building?

Related