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

Keil 4 to Kiel 5 upgrade

I am rebuilding my computer after experiencing a corrupt boot sector and am reinstalling all my apps.  I am moving from Kiel 4 to Kiel 5.  My project loads, but it says that it needs the ARM Tool chain which is not installed. I installed the Toolchain on WIN 10 and it seemed to install smoothly, however in the Project menu, the Options menu item and those below it are all disabled.  Can you guide me through this? 

I notice in the readme.txt in * Architecture options usage * there is a considerable amount ot config options, is this a necessary requirement for the nRF51422 ?  

Thanks,

Brian Fleming

  • I can build the project now. I reinstalled Kiel and loaded all the packs.

    However, when I build it, I get the following error at the bottom.

    I can do a search for core_cm0.h and I find it on my computer, but I can't find where to put it so that the build process finds it.

    *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    compiling main.c...
    ..\..\..\..\..\..\components\device\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\main.c: 0 warnings, 1 error
    "..\..\..\main.c" - 1 Error(s), 0 Warning(s).

  • I have the example program compiling now, but the soft device has problems.  More to come.

  • Here is where I am at this moment, the problem is compiling the soft device.

    Here is where I am at with nRF5_SDK_12.3.0_D7731ad.
    
    Rebuild all target modules:
    
    ".\_build\nrf51422_xxac.axf" - 0 Error(s), 0 Warning(s).
    
    
    Rebuild all target files for soft device:
    
    Rebuild started: Project: ble_app_uart_pca10028_s130
    *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Rebuild target 'flash_s130_nrf51_2.0.1_softdevice'
    compiling main.c...
    C:\Keil_v5\ARM\BIN\nrf.h(64): error:  #5: cannot open source input file "nrf51_deprecated.h": No such file or directory
              #include "nrf51_deprecated.h"
    ..\..\..\main.c: 0 warnings, 1 error
    "..\..\..\..\..\..\components\softdevice\s130\hex\s130_nrf51_2.0.1_softdevice.hex" - 1 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:01
    
    
    If I use the nRF5_SDK_15.0.0_a53641a, it only supports the nrf52832.
    Rebuild all target modules:
    
    	".\_build\nrf52832_xxaa.axf" - 0 Error(s), 0 Warning(s).
    
    
    Rebuild the soft device:
          	#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
    
    Important question, is the nRF5_SDK_15.0.0_a53641a compatable with the nRF51 Development Kit?
    
    At this point the holdup is the Soft Device, it will not compile either with the newly downloaded SDK or with the older version which I was using previously.
    
    Thanks for your support!

  • Hi Brian, 

    Please refer to Compiling the application and select the target as nrf51422_xxac.

     >>Important question, is the nRF5_SDK_15.0.0_a53641a compatable with the nRF51 Development Kit?

    No, please refer to nRF5 SDK v15.0.0 SDK Release Notes:

    Supported boards:
    - PCA10040
    - PCA10040E (nRF52810 emulation on PCA10040)
    - PCA10056
    - PCA10059 (support in selected examples)
    - Dynastream's D52DK1 (only for ANT examples)

     

    -Amanda H. 

  • Thanks again, here is an update.

    The only way I can select the nRF51422 is by selecting the original SDK   nRF5_SDK_12.3.0_D7731ad  so that is what I will use.  I was using it before on my old hard drive with no problems.
    
    If I rebuild all target files for my example app, ble_app_uart_pc it compiles with no error.
    
    If I attempt to rebuild the soft device, ble_app_uart_pca10028_s130, I get the following error:
    
    C:\Keil_v5\ARM\BIN\nrf.h(64): error:  #5: cannot open source input file "nrf51_deprecated.h": No such file or directory
    
    I can not find that file anywhere on my new or old hard drive.  We nees to get the soft device compiling.
    
    Also whenever I open Keil 5, I get an error message:
    
    The project references devices, files or libraries that are not installed. Download and install:
     Third party device support for Nordic Semiconductor nRF51422_xxAC (device not included in legacy database)
    I can not seem to resolve the above error.
    
    Thanks as always for your expert support!

Related