This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAR with SDK9.0; files broken

Hello,

I am using SDK9.0 and softdevice 8.0 and I have worked on keil tool. Now I want to use IAR toolchain for the same project. So I started first with example projects and it is giving error Project files are broken. Still when I tried to open, it is not having pre-processor to link to the header files.

I am using IAR ARM workbench 7.10.1 and also installed MDK for IAR from nordic. Kindly help me.

Regards,
Sowmya

Parents
  • I have image description

    I just changed Project_settings->Target->Device and added Nordicsemiconductor there. After that it builds ok in SDK9.0 and S110_8.0 image description

    I am attaching my project for you just for reference. ble_app_hrs.rar extract this to nRF51_SDK_9.0.0_2e23562\examples\

    The project I tried will then be nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_hrs\pca10028\s110\iar

    I do not see any of the errors you mentioned :(

  • Well I was able to fix issue for setting the breakpoint :). But the following code is not executing:

        SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, NULL);
    
        #if defined(S110) || defined(S130) || defined(S310)
        // Enable BLE stack.
        ble_enable_params_t ble_enable_params;
        memset(&ble_enable_params, 0, sizeof(ble_enable_params));
      #if defined(S130) || defined(S310)
       ble_enable_params.gatts_enable_params.attr_tab_size   = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;
      #endif
       ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
       err_code = sd_ble_enable(&ble_enable_params);
       APP_ERROR_CHECK(err_code);
      #endif
    

    sd_ble_enable() function is not getting called. I have defined the symbol S110. Do I am missing any settings?

Reply
  • Well I was able to fix issue for setting the breakpoint :). But the following code is not executing:

        SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, NULL);
    
        #if defined(S110) || defined(S130) || defined(S310)
        // Enable BLE stack.
        ble_enable_params_t ble_enable_params;
        memset(&ble_enable_params, 0, sizeof(ble_enable_params));
      #if defined(S130) || defined(S310)
       ble_enable_params.gatts_enable_params.attr_tab_size   = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;
      #endif
       ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
       err_code = sd_ble_enable(&ble_enable_params);
       APP_ERROR_CHECK(err_code);
      #endif
    

    sd_ble_enable() function is not getting called. I have defined the symbol S110. Do I am missing any settings?

Children
No Data
Related