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

Exported a project from mbed, to the Keil uVision4 tool chain.

I have just exported a project from mbed, to the Keil uVision4 tool chain.

  1. Create New Project "BLE_Thermometer" on mbed. "BLE example for the Health-Thermometer service" on Nordic nRF51-DK

  2. Export Project to Keil uVsion4. Target:Nordic nRF51-DK

  3. Open this project on Keil uVison4, "BLE_Thermometer.uvproj".

  4. Rebuild.

But many error and worning as below. ".\build\BLE_Thermometer.axf" - 481 Error(s), 766 Warning(s).

Have I done something wrong in the export / import process, or in setting up the keil project?

devzone.nordicsemi.com/.../ I have see the Question and I tryed "--diag_suppress=1, but still many errors.

Parents
  • These erros are caused by the order of include paths. BLE relevant paths have to be attached to the rear of nRF51822 relevant paths.

    You should modify include paths of options for target like these:

    Before:

    BLE_API
    BLE_API/ble
    BLE_API/ble/services
    BLE_API/source
    BLE_API/source/services
    nRF51822
    nRF51822/source
    nRF51822/source/common
    nRF51822/source/nordic-sdk
    ...
    nRF51822/source/btle/custom
    nRF51822/bootloader
    

    After:

    nRF51822
    nRF51822/source
    nRF51822/source/common
    nRF51822/source/nordic-sdk
    ...
    nRF51822/source/btle/custom
    nRF51822/bootloader
    BLE_API
    BLE_API/ble
    BLE_API/ble/services
    BLE_API/source
    BLE_API/source/services
    

    Happy coding. :)

Reply
  • These erros are caused by the order of include paths. BLE relevant paths have to be attached to the rear of nRF51822 relevant paths.

    You should modify include paths of options for target like these:

    Before:

    BLE_API
    BLE_API/ble
    BLE_API/ble/services
    BLE_API/source
    BLE_API/source/services
    nRF51822
    nRF51822/source
    nRF51822/source/common
    nRF51822/source/nordic-sdk
    ...
    nRF51822/source/btle/custom
    nRF51822/bootloader
    

    After:

    nRF51822
    nRF51822/source
    nRF51822/source/common
    nRF51822/source/nordic-sdk
    ...
    nRF51822/source/btle/custom
    nRF51822/bootloader
    BLE_API
    BLE_API/ble
    BLE_API/ble/services
    BLE_API/source
    BLE_API/source/services
    

    Happy coding. :)

Children
No Data
Related