You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use pin based interruptions on a custom board and I am unable to make a simple hello_world to link when adding gpiote.
c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `main':
D:\wjabozzo\onedrive_wolke\proyectos\tests\gpiote\src\main.c:16: undefined reference to `__device_dts_ord_27'
collect2.exe: error: ld returned 1 exit status
Looking at the linker map, there is no mapping to the device.
The setup is simple: with nrf connect for visual studio code I made new freestanding project based on the hello_world sample. Added a new board to use with nrf52840 and configured the devicetree to activate gpio and gpiote and to alias gpiote:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The code reproducing the problem is uploaded here https://github.com/wjabozzo/zephyr_gpiote_problems/
I want to use pin based interruptions on a custom board and I am unable to make a simple hello_world to link when adding gpiote.
Looking at the linker map, there is no mapping to the device.
The setup is simple: with nrf connect for visual studio code I made new freestanding project based on the
hello_world
sample. Added a new board to use withnrf52840
and configured the devicetree to activate gpio and gpiote and to alias gpiote:The following Kconfig variables were set in proj.conf to activate gpiote:
And main.c the gpiote device is fetched and used once:
Is this a bug or I am just misusing the devicetree?
Beta Was this translation helpful? Give feedback.
All reactions