Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue _APP_TIMER_DEF(timer_id) #69

Open
iDoka opened this issue May 6, 2024 · 1 comment
Open

build issue _APP_TIMER_DEF(timer_id) #69

iDoka opened this issue May 6, 2024 · 1 comment

Comments

@iDoka
Copy link

iDoka commented May 6, 2024

Hi Vincent!
First of all thanks for this awesome project!

I have troubles with build your code.

I have installed NRF5_SDK_16.0.0, softdevices stack s340 and two versions of toolchain:

  • arm-none-eabi-6-2017-q2
  • arm-none-eabi-7-2018-q2

I have tried two branches:

  • develop
  • SDK16
  • (master branch doesn't have pca10056/s340/armgcc/Makefile at all )

And I get the same error for any mix of toolchains and branches.

My steps:

  1. cd pca10056/s340/armgcc
  2. Edit Makefile.local to setup proper path to NRF SDK
  3. Adding s340 stack into NRF SDK directiries hierarchy
  4. type make

Build Log:

Compiling file: main.cpp
In file included from ../../../main.cpp:24:0:
/opt/nRF5_SDK_16.0.0/components/libraries/timer/app_timer.h:162:5: sorry, unimplemented: non-trivial designated initializers not supported
     };                                                                                        \
     ^
/opt/nRF5_SDK_16.0.0/components/libraries/timer/app_timer.h:128:33: note: in expansion of macro '_APP_TIMER_DEF'
 #define APP_TIMER_DEF(timer_id) _APP_TIMER_DEF(timer_id)
                                 ^~~~~~~~~~~~~~
../../../main.cpp:65:1: note: in expansion of macro 'APP_TIMER_DEF'
 APP_TIMER_DEF(m_job_timer);
 ^~~~~~~~~~~~~
/opt/nRF5_SDK_16.0.0/components/toolchain/gcc/Makefile.common:276: recipe for target 'build/nrf52840_xxaa/main.cpp.o' failed

Screenshot from 2024-05-07 01-45-54

Could you hint me what's wrong?

@iDoka
Copy link
Author

iDoka commented May 6, 2024

BTW,
nothing suspicious in /opt/nRF5_SDK_16.0.0/components/libraries/timer/app_timer.h:

Screenshot from 2024-05-07 02-26-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant