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

Upgrading a project from SDK8.1 to SDK 12.2

Hi!

I am in the process of upgrading a quite large project from SDK 8.1 to SDK 12.2. It uses the nRF52 DK, PCA10028. I still use the toolchain I stated with, including a Eclipse Kepler and GNU ARM Embedded 4.9 2015q1.

Nothing works. :-(

To make at least something work, I am trying to light a LED the first thing I do, but it will not work. Code:

int main(void)
{
	int r;
	int err_code;
    // More variable declarations...

	// Set LEDs as outputs
	LEDS_CONFIGURE(LEDS_MASK);
    LEDS_ON(LED_1);

    // ... and the code continues
}

Much changes were needed due to new locations of SDK header files and code.

Looking at example makefiles, I tweaked my Makefile.

I flashed the new S130 softdevice.

I use a lot of timers. I have not updated all timer identifiers using APP_TIMER_DEF() yet, but that should not affect the LEDs, I thought.

This sdk_config.h thingie is new to me. It seems like Keil has a tool for editing that file. I hava again cheated an created an own file containing all necessary definitions (I believe.)

I would like suggestions on how to proceed. Have I overlooked something? Any ideas appreciated.

regards, Elm

Related