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

MDK version check failing when running BLE examples on Keil uVision5

I  recently downloaded Keil uVision5 and am trying to run some of the examples that are found in nRF5_SDK_12.3.0 available from on Nordics website on my Nordic51 development kit. I have successfully gotten the blinky found in [nRF5_SDK_12.3.0_d7731ad\examples\peripheral\blinky\pca10028\blank\arm5_no_packs] to build target and run.

However, for examples that use BLE found in [nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral] whenever I try to build the target the following error occurs.

The following check seems to be failing and so everything after wont run:

/* Check MDK version to make sure we have the required macros */
NRF_MDK_VERSION_ASSERT_AT_LEAST(8,34,0);

Things to keep in mind:

  1. I have set up the soft device s130 before trying to build the target using nrfGo 
  2. I checked the software packs in Keil and the version from the DeviceFamilyPack I'm using and it shows 8.11. Whenever I try to tick 8.38 the target builds successfully but I get a Download Failed - "Cortex-M0" error when trying to run it:

    Run Error when I tick 8.38.0:


Related