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

sdk 8.1.0 compilation fails due to redefinition

Hey Nordic--

I updated my Keil project from SDK v8.0.0 to v8.1.0 and immediately get some compilation errors due to redefinition of symbols.

In nrf_sd_def.h, I think you meant for:

#define NRF_PPI_RESTRICTED              0                        /**< 1 if PPI peripheral is restricted, 0 otherwise. */

to be:

#define SD_PPI_RESTRICTED              0                        /**< 1 if PPI peripheral is restricted, 0 otherwise. */

and similarly for the rest of the #defines in that file.

Then I run into another error about SD_PPI_CHANNELS_USED not being defined anywhere, and it's not, since in my project SOFTDEVICE_PRESENT is switched on and nrf_sd_def.h doesn't contain that symbol.

So what gives? Where should I put the missing SD_PPI_CHANNELS_USED definition? Why wasn't it included in the SDK release?

Parents
  • My code started out with the HID mouse example but has since morphed into a completely separate project.

    BTW, the issue is with the NordicSemiconductor Pack in Keil. The change I described above I made to nrf_sd_def.h, which on my system is located in C:\Keil_v5\ARM\Pack\NordicSemiconductor\nRF_Softdevice_S110\8.0.0\headers\nrf_sd_def.h.

    Perhaps the problem is that there should be an nrf_sd_def.h under an "8.1.0" directory, like \ARM\Pack\NordicSemiconductor\nRF_SoftDevice_S110*8.1.0*\headers? But when I go to the Keil Pack Installer and click the "Check for Updates" option, 8.0.0 is the latest version for the NordicSemiconductor::nRF_SoftDevice_S110 component.

Reply
  • My code started out with the HID mouse example but has since morphed into a completely separate project.

    BTW, the issue is with the NordicSemiconductor Pack in Keil. The change I described above I made to nrf_sd_def.h, which on my system is located in C:\Keil_v5\ARM\Pack\NordicSemiconductor\nRF_Softdevice_S110\8.0.0\headers\nrf_sd_def.h.

    Perhaps the problem is that there should be an nrf_sd_def.h under an "8.1.0" directory, like \ARM\Pack\NordicSemiconductor\nRF_SoftDevice_S110*8.1.0*\headers? But when I go to the Keil Pack Installer and click the "Check for Updates" option, 8.0.0 is the latest version for the NordicSemiconductor::nRF_SoftDevice_S110 component.

Children
No Data
Related