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

SDK V.12 Missing nrf_delay.c??

Hello,

So — in just trying to get the blink example working, I've come across all kinds of toolchain weirdness. I'm using CrossWorks, because it's on OSX and it's way cheaper than Keil. So..there's that.

In nRF5_SDK_12.2.0_f012efa there is an nrf_delay.h but no nrf_delay.c, causing an error in my build because, well — there's no code to compile for referenced functions.

In nRF5_SDK_11.0.0_89a8197 there is an nrf_delay.h AND nrf_delay.c, but no boards.c..although there is a boards.h.

I can find no mention of these changes — or why, or how to deal with them — in the release notes of any of the SDK's between 11.0 and 12.2.

I'm not sure how to fix this problem. It seems either that there is an inconsistency in the SDK or more likely I'm doing something terribly wrong.

Any helps or suggestions from other CrossWorks users or any one with special insight into the how and why-fors of the SDK would be greatly appreciated.

Julian

Parents
  • Hi,

    The content of nrf_delay.c, nrf_delay_ms(), is moved into nrf_delay.h in SDK 12.x. You should only need to remove the reference to nrf_delay.c in your project/Makefile and it should compile. I can't find any mention about this in the release notes, it might have been forgotten since it is a very small change.

    For the second change, it can be read from SDK 12.2 release notes:

    • Split up the files located in the examples\bsp folder to new locations: components\libraries\bsp and components\boards.

    You should only have to include the new paths and the files you require.

    Best regards, Jørgen

Reply
  • Hi,

    The content of nrf_delay.c, nrf_delay_ms(), is moved into nrf_delay.h in SDK 12.x. You should only need to remove the reference to nrf_delay.c in your project/Makefile and it should compile. I can't find any mention about this in the release notes, it might have been forgotten since it is a very small change.

    For the second change, it can be read from SDK 12.2 release notes:

    • Split up the files located in the examples\bsp folder to new locations: components\libraries\bsp and components\boards.

    You should only have to include the new paths and the files you require.

    Best regards, Jørgen

Children
Related