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

Build error when merging projects

I am doing rapid development for a project, using the nRF52840 DK. Two key features are USB and BLE central role.

I started with the usb_cdc_acm project and am merging in ble_app_blinky_c.

I added the following information from ble_app_blinky_c:

  1. Component files
  2. sdk_config.h entries
  3. preprocessor include folders
  4. preprocessor defines

I get build errors. It is complaining that NRF_SUCCESS is undefined, and I determined that there is more than one file named nrf_error.h and they are different!

Do I need to change the directory order in the preprocessor include folder list?

Is there something else I am missing?

Parents
  • Yes, the SDK development is getting a little unruly! Depending on how far back you started the development and how far you have ported forward things can get lost. There are two different systems nrf and nrfx. The latest SDK 15.3 the nrf structure point its defines to the defines of the nrfx. So, if you started development in 14 and port into 15.3 my guess is that your nrf sturcute is not new enough. And there is a whole other beast trying to get backward compatibility, wheesh!

    I would suggest starting in the 15.3 and reworking any code that has started earlier, but even this approach utilizes so much nrf structure, uh its a mess!

    your list of 4. seems like a fairly good start to merging your projects.

    Sorry, may not be helpful, but I was able to vent a little!

Reply
  • Yes, the SDK development is getting a little unruly! Depending on how far back you started the development and how far you have ported forward things can get lost. There are two different systems nrf and nrfx. The latest SDK 15.3 the nrf structure point its defines to the defines of the nrfx. So, if you started development in 14 and port into 15.3 my guess is that your nrf sturcute is not new enough. And there is a whole other beast trying to get backward compatibility, wheesh!

    I would suggest starting in the 15.3 and reworking any code that has started earlier, but even this approach utilizes so much nrf structure, uh its a mess!

    your list of 4. seems like a fairly good start to merging your projects.

    Sorry, may not be helpful, but I was able to vent a little!

Children
No Data
Related