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
  • Hello

    nRF SDK 2.2.0

    Driver is based on a lot of samples, I used a lot of I2C temperature sensor samples as reference.

    Yes, it's compilable without my driver. It's even compilable if I delete below line from the tmp_nct218.c file

    #define DT_DRV_COMPAT onnn_nct218
    Are you able to compile a program using your driver if you build for the default nRF5340 DK?
    Do you mean by that if I will try to integrate my driver to the default nRF5340 firmware like e.g. Blinky? No I didn't try that but I can and I will tell you the result very soon, if so.
Children
Related