How to disconnect my project from the original SDK example?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disconnect my project from the original SDK example?

1,197 Views
stephenlangstaf
Contributor III

I started a project based on one of the KW36 BLE examples (frdmkw36_wireless_examples_bluetooth_lnc_freertos) and modified it to remove the lnc profile and add my own custom profile. Now when I update the SDK it pulls in header paths that I had manually removed during development (e.g. /bluetooth/profiles/time and /bluetooth/profiles/location_and_navigation)

I think the issue is that my .cproject still refers to the frdmkw36_wireless_examples_bluetooth_lnc_freertos example and the sdk components: middleware.wireless.ble_profiles.location_and_navigation.MKW36Z4;middleware.wireless.ble_profiles.time.MKW36Z4)

How do I break the link between my current project and the SDK example that I used to start my project?

My .cproject includes:

<code>

    <storageModule moduleId="cdtBuildSystem" version="4.0.0">
        <project id="frdmkw36_wireless_examples_bluetooth_lnc_freertos.null.825253508" name="frdmkw36_wireless_examples_bluetooth_lnc_freertos" projectType="com.crt.advproject.projecttype.exe"/>
    </storageModule>
    <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
    <storageModule moduleId="com.nxp.mcuxpresso.core.datamodels">
        <sdkName>SDK_2.x_FRDM-KW36</sdkName>
        <sdkExample>frdmkw36_wireless_examples_bluetooth_lnc_freertos</sdkExample>
        <sdkVersion>2.2.5</sdkVersion>
        <sdkComponents>middleware.freertos.heap_4.MKW36Z4;middleware.freertos.MKW36Z4;platform.drivers.common.MKW36Z4;platform.Include_common;platform.drivers.clock.MKW36Z4;platform.drivers.lpuart.MKW36Z4;platform.utilities.debug_console.MKW36Z4;platform.drivers.trng.MKW36Z4;platform.drivers.flash.MKW36Z4;platform.drivers.gpio.MKW36Z4;platform.drivers.port.MKW36Z4;platform.drivers.tpm.MKW36Z4;platform.drivers.dspi.MKW36Z4;platform.drivers.i2c.MKW36Z4;platform.drivers.lptmr.MKW36Z4;platform.drivers.rtc.MKW36Z4;platform.drivers.llwu.MKW36Z4;platform.drivers.ltc.MKW36Z4;platform.drivers.pmc.MKW36Z4;platform.drivers.adc16.MKW36Z4;platform.drivers.smc.MKW36Z4;CMSIS_Include;platform.devices.MKW36Z4_startup.MKW36Z4;frdmkw36_wireless_examples_bluetooth_lnc_freertos;middleware.template_application.freertos.MKW36Z4;platform.drivers.flexcan.MKW36Z4;middleware.wireless.framework.osa_freertos.MKW36Z4;middleware.wireless.framework.common.MKW36Z4;middleware.wireless.framework.osa.MKW36Z4;middleware.wireless.framework.flash.internal.MKW36Z4;middleware.wireless.framework.gpio_adapter.MKW36Z4;middleware.wireless.framework.keyboard.MKW36Z4;middleware.wireless.framework.tmr.MKW36Z4;middleware.wireless.framework.led.MKW36Z4;middleware.wireless.framework.reset.MKW36Z4;middleware.wireless.framework.mem_manager.MKW36Z4;middleware.framework.generic_lists.MKW36Z4;middleware.wireless.framework.messaging.MKW36Z4;middleware.wireless.framework.panic.MKW36Z4;middleware.wireless.framework.rng.MKW36Z4;middleware.wireless.framework.shell.MKW36Z4;middleware.wireless.framework.smgr.MKW36Z4;middleware.wireless.framework.smgr.i2c_adapter.MKW36Z4;middleware.wireless.framework.smgr.spi_adapter.MKW36Z4;middleware.wireless.framework.smgr.uart_adapter.MKW36Z4;middleware.wireless.framework.nvm.MKW36Z4;middleware.wireless.framework.module_info.MKW36Z4;middleware.wireless.framework.function_lib.MKW36Z4;middleware.wireless.framework.sec_lib.MKW36Z4;middleware.wireless.ble_host.MKW36Z4;middleware.wireless.ble_controller.MKW36Z4;middleware.wireless.ble_appl_main.MKW36Z4;middleware.wireless.ble_gatt_db.MKW36Z4;middleware.wireless.ble_gatt_service_discovery.MKW36Z4;middleware.wireless.ble_profiles.battery_service.MKW36Z4;middleware.wireless.ble_profiles.device_info_service.MKW36Z4;middleware.wireless.ble_profiles.location_and_navigation.MKW36Z4;middleware.wireless.ble_profiles.time.MKW36Z4;middleware.wireless.framework.coexistence.MKW36Z4;middleware.wireless.framework.linkscripts_KW36.MKW36Z4;middleware.wireless.framework.dcdc_MKW36Z.MKW36Z4;middleware.wireless.xcvr_kw36z.MKW36Z4;</sdkComponents>
        <boardId>frdmkw36</boardId>
        <package>MKW36Z512VHT4</package>
        <core>cm0plus</core>
        <coreId>core0_MKW36Z512xxx4</coreId>
    </storageModule>

</code>

Labels (1)
0 Kudos
Reply
3 Replies

1,075 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Stephen, I hope you're doing well!

 

MCUXpresso imports and configures SDK example projects in different ways depending on the configuration when importing the project.

 

By default, the current MCUXpresso version (11.2.0) creates copies of the files used by the project and puts them in the corresponding workspace folder:

pastedImage_2.png

This should be creating copies of the source files instead of referencing the ones on the SDK.

 

Could you please try reimporting the project with this setting enabled and replacing the files with the ones you modified?

 

Please let me know if you have any further issues.

 

Best regards,

Sebastian

0 Kudos
Reply

1,075 Views
stephenlangstaf
Contributor III

I'm using IDE 11.0 and am mid-way through a development project so don't want to change it unless I have to!

I import the examples from a .zip version of the SDK, so the files are copied by default, e.g.:

Annotation 2020-08-21 122823.png

This results in a .cproject that includes the following references to the SDK components:

        <storageModule moduleId="com.nxp.mcuxpresso.core.datamodels">
        <sdkName>SDK_2.x_FRDM-KW36</sdkName>
        <sdkExample>frdmkw36_wireless_examples_bluetooth_lnc_freertos</sdkExample>
        <sdkVersion>2.2.5</sdkVersion>
        <sdkComponents>middleware.freertos.heap_4.MKW36Z4;middleware.wireless.framework.osa_freertos.MKW36Z4;middleware.wireless.framework.common.MKW36Z4;middleware.wireless.framework.osa.MKW36Z4;middleware.freertos.MKW36Z4;middleware.wireless.framework.flash.internal.MKW36Z4;middleware.wireless.framework.gpio_adapter.MKW36Z4;middleware.wireless.framework.keyboard.MKW36Z4;middleware.wireless.framework.tmr.MKW36Z4;middleware.wireless.framework.led.MKW36Z4;middleware.wireless.framework.reset.MKW36Z4;middleware.wireless.framework.mem_manager.MKW36Z4;middleware.framework.generic_lists.MKW36Z4;middleware.wireless.framework.messaging.MKW36Z4;middleware.wireless.framework.panic.MKW36Z4;middleware.wireless.framework.rng.MKW36Z4;middleware.wireless.framework.shell.MKW36Z4;middleware.wireless.framework.smgr.MKW36Z4;middleware.wireless.framework.smgr.i2c_adapter.MKW36Z4;middleware.wireless.framework.smgr.spi_adapter.MKW36Z4;middleware.wireless.framework.smgr.uart_adapter.MKW36Z4;middleware.wireless.framework.nvm.MKW36Z4;middleware.wireless.framework.module_info.MKW36Z4;middleware.wireless.framework.function_lib.MKW36Z4;middleware.wireless.framework.sec_lib.MKW36Z4;middleware.wireless.ble_host.MKW36Z4;middleware.wireless.ble_controller.MKW36Z4;middleware.wireless.ble_appl_main.MKW36Z4;middleware.wireless.ble_gatt_db.MKW36Z4;middleware.wireless.ble_gatt_service_discovery.MKW36Z4;middleware.wireless.ble_profiles.battery_service.MKW36Z4;middleware.wireless.ble_profiles.device_info_service.MKW36Z4;middleware.wireless.ble_profiles.location_and_navigation.MKW36Z4;middleware.wireless.ble_profiles.time.MKW36Z4;middleware.wireless.framework.coexistence.MKW36Z4;middleware.wireless.framework.linkscripts_KW36.MKW36Z4;platform.drivers.common.MKW36Z4;platform.Include_common;platform.drivers.clock.MKW36Z4;platform.drivers.lpuart.MKW36Z4;platform.utilities.debug_console.MKW36Z4;platform.drivers.trng.MKW36Z4;platform.drivers.flash.MKW36Z4;platform.drivers.gpio.MKW36Z4;platform.drivers.port.MKW36Z4;platform.drivers.tpm.MKW36Z4;platform.drivers.dspi.MKW36Z4;platform.drivers.i2c.MKW36Z4;platform.drivers.lptmr.MKW36Z4;platform.drivers.rtc.MKW36Z4;platform.drivers.llwu.MKW36Z4;platform.drivers.ltc.MKW36Z4;platform.drivers.pmc.MKW36Z4;platform.drivers.adc16.MKW36Z4;middleware.wireless.framework.dcdc_MKW36Z.MKW36Z4;middleware.wireless.xcvr_kw36z.MKW36Z4;platform.drivers.smc.MKW36Z4;CMSIS_Include;platform.devices.MKW36Z4_startup.MKW36Z4;frdmkw36_wireless_examples_bluetooth_lnc_freertos;</sdkComponents>
        <boardId>frdmkw36</boardId>
        <package>MKW36Z512VHT4</package>
        <core>cm0plus</core>
        <coreId>core0_MKW36Z512xxx4</coreId>
    </storageModule>

Which, as I said before, seems to be the root cause of my problem of the include paths being updated when I update the SDK.

Maybe this com.nxp.mcuxpresso.core.datamodels needs to be edited from within the IDE?

0 Kudos
Reply

1,075 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi  Stephen,

 

Could you please try the following process?

  1. Export the project to a ZIP file in the older MCUXpresso 11.0 version with the older SDK.
  2. Install the latest MCUXpresso version (11.2) with the newest SDK version for the KW36 (currently 2.2.5).
  3. Using the MCUXpresso project importer, import your existing project to MCUXpresso 11.2

 

If that doesn't work, unfortunately, you may have to re-import the new SDK example from the latest SDK version and perform the same changes you had done to your project.

 

Please let me know if you need any more information or have further issues.

 

Best regards,

Sebastian

0 Kudos
Reply