Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

building error multilink_central for PCA10031

Hi,

I got the same error as the guy in this question: https://devzone.nordicsemi.com/f/nordic-q-a/26041/compiling-error-for-nrf51-development-dongle 

I use another example, the ble_app_multilink_central example. This example do not contain the same functions and can not be solved the same way as for the ble_app_hrs example. So I wounder if you can help me with figuring out what I should to to solve this error?

Thanks

Parents Reply Children
  • Great! It worked at first but then i tried to change some code, mainly add "m_target_periph_name_1[]" as one more periph name that i want. When I got the error I commented all the changes out and I still got the same error. 

    I inserted a picture of the error below.

    In the error list it says "fatal error: 'sdk_config.h' file not found. If I open "Manage Project Items" I find the file there. Added a picture of that ass well below. 

  • I followed your procedure & got the same error. I was surprised that the example compiled with so few changes, so I guess this is expected that button errors appear. To solve these compile issues, I did the following:

    It seems that once I removed the bsp_btn_ble.c file, Keil could not find bsp.c & bsp_nfc.c anymore for some reason. Not sure why this is happening, but do not think this is such a big issue. 

    I also commented out the button_event_handler() function in main.c, as well as the led_status_send_to_all() & the buttons_init() functions. I am assuming you are not going to use the button on the side of the dongle. I also commented out the #define LEDBUTTON_BUTTON_PIN      BSP_BUTTON_0 in main.c. 

    I also commented out the buttons_init() call in main(). After that, everything compiled (even when I added the m_target_periph_name_1[]. Again, I would test this to make sure everything works.

    Let me know if you got it working! Slight smile

  • Great! Now it works, also when I add the new code that I wanted! 

    Thank you :) 

  • Cool! Good luck with further development! :) Let me know if there's anthing else I can help with.

Related