This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sorry, unimplemented: non-trivial designated initializers not supported

i am working with Nrf52 + Visualgdb complier. nrf_drv_gpiote.h contains designated initializers which aren't supported by C++. I'm including all SDK headers inside an extern "C" {...} block but still get the following error when I use the GPIOTE_CONFIG_OUT_SIMPLE macro:

C:/Users/atif.shabbir/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/nRF5x/components/drivers_nrf/gpiote/nrf_drv_gpiote.h:89:5: sorry, unimplemented: non-trivial designated initializers not supported. 
LEDBlink.cpp(42,43): note :  in expansion of macro 'GPIOTE_CONFIG_OUT_SIMPLE' 
nrf_drv_gpiote_out_config_t out_config = GPIOTE_CONFIG_OUT_SIMPLE(false);

is there any solution without changing the sdk files.

Parents Reply Children
No Data
Related