This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to `__device_dts_ord_45'

Hello,

I'm having an issue with setting up the I2C communications on the nRF9160. When trying to compile a program with an I2C bus but even when I attempt to compile the sample program "i2c_fujitsu_fram" I getthe error of undefined reference to `__device_dts_ord_45'

Full error of the sample program:

c:/nordic_sdk/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `read_bytes':
C:\nordic_SDK\programs\i2c_fujitsu_fram\src\main.c:69: undefined reference to `__device_dts_ord_45'
c:/nordic_sdk/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `write_bytes':
C:\nordic_SDK\programs\i2c_fujitsu_fram\src\main.c:42: undefined reference to `__device_dts_ord_45'
c:/nordic_sdk/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `main':
C:\nordic_SDK\programs\i2c_fujitsu_fram\src\main.c:156: undefined reference to `__device_dts_ord_45'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I've googled a bit and found a similar case with PWM where OP claimed to have fixed it by setting CONFIG_PWM=y in his prj.conf file. Unfortunately, I've already set CONFIG_I2C=y in the prj.conf file. I'm running out of ideas for things to try. Do any of you have any ideas?

Thanks in advance,
Sevn

Parents Reply Children
No Data
Related