Compile ERROR "undefined reference to `sys_clock_cycle_get_32'" with custom board

Earlier I was using nRFconnect SDK 2.1.2. Everything works perfectly fine with that. Many features were added in that project. Now I want to port my project to latest SDK 2.3.0. During the porting I am seeing a compile error "undefined reference to `sys_clock_cycle_get_32".


Issue is only observed with custom board. I have attached a sample project. Which compiles fine with nRF5340DK_nRF5340_cpuapp But it fails with following error with my custom board. The custom board is exact copy of nRF5340DK_nRF5340 just replaced the name with "Dial_Board".

Can you please help me find out what exactly going wrong in my case? Thanks.

b0\zephyr && C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ""
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: zephyr/libzephyr.a(soc.c.obj): in function `arch_k_cycle_get_32':
C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\misc.h:26: undefined reference to `sys_clock_cycle_get_32'
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: C:\ncs\v2.3.0\zephyr\include\zephyr\arch\arm\aarch32\misc.h:26: undefined reference to `sys_clock_cycle_get_32'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[245/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
nRF5340_Dial_Board_2.3.0.zip

Related