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

Macro for CMSIS configuration wizard

Hello.

I want to use the CMSIS configuration wizard. 

It is work in the example but not in my project.

From looking at youtube I found what I need to add to tool.xml using tFile->Open studio files->external tool configuration.

This lines was added:

<item name="Tool.CMSIS_Config_Wizard" wait="no">
<menu>&amp;CMSIS Configuration Wizard</menu>
<text>CMSIS Configuration Wizard</text>
<tip>Open a configuration file in CMSIS Configuration Wizard</tip>
<key>Ctrl+Y</key>
<match>*config*.h</match>
<message>CMSIS Config</message>
<commands>
java -jar &quot;$(CMSIS_CONFIG_TOOL)&quot; &quot;$(InputPath)&quot;
</commands>

It still didn't see the wizard open when right click on the sdk_confige, but then I also read I need this file CMSIS_Configuration_Wizard.jar in the project  which place in the examples here external_tools\cmsisconfig\CMSIS_Configuration_Wizard.jar

But this is not enough, because need also macro for CMSIS_CONFIG_TOOL. SO I add the full path to CMSIS_Configuration_Wizard.jar  and only then I could open the wizard.

But I also it make the change in the Segger embedded itself so example project see also my new path. SO if I now delete the jar from my project I couldn't open the wizard even from new example. 
1.So I was thinking is there a globe CMSIS_Configuration_Wizard.jar in SES folder use by all (i all ready change it so I don't know if it is exist)?

2. Is there a way to build it locally so when I pass the project to new PC it still will find the jar? I try to start with $(ProjectDir) but it won't work.

3. Is there a good tutorial explain all from start ?

Regards

Bar.

Parents
  • Now I see that I can do it locally also from the option->build->Project macro .

    So this explain a lot.

    Still 1 question has no answer. When I place it relativly without the $(ProjectDir) it found the jar, like this \external_tools\cmsisconfig\CMSIS_Configuration_Wizard.jar

    But if I do 

    $(ProjectDir)\external_tools\cmsisconfig\CMSIS_Configuration_Wizard.jar

    don't find.

    Can't I use the macro $(ProjectDir)?

  • Hi. 

    Which SDK are you working with? 

    In nRF5 SDK v.14.1.0 and all later versions, this should be added by default. 

    You should only need to edit the tools.xml, like you did. 

    However, 

    Bar said:
    Can't I use the macro $(ProjectDir)

     The $(ProjectDir) macro points to the direct path of the project folder. So if using the ble_app_uart example, the $(Project) would for example point to: C:/Nordic_SDK_Folder/examples/ble_peripheral/ble_app_uart/pca_100xx/s1xx/ses. 

    The CMSIS_Configuration_Wizard.jar is located in the: 
    Nordic_SDK_Folder\external_tools\cmsisconfig\ folder. 

    I suggest that you add the Project Macro like this (Note: change the folder if the CMSIS_Configuration_Wizard.jar is located elsewhere): 

    CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar 

    Best regards, 
    Joakim

Reply
  • Hi. 

    Which SDK are you working with? 

    In nRF5 SDK v.14.1.0 and all later versions, this should be added by default. 

    You should only need to edit the tools.xml, like you did. 

    However, 

    Bar said:
    Can't I use the macro $(ProjectDir)

     The $(ProjectDir) macro points to the direct path of the project folder. So if using the ble_app_uart example, the $(Project) would for example point to: C:/Nordic_SDK_Folder/examples/ble_peripheral/ble_app_uart/pca_100xx/s1xx/ses. 

    The CMSIS_Configuration_Wizard.jar is located in the: 
    Nordic_SDK_Folder\external_tools\cmsisconfig\ folder. 

    I suggest that you add the Project Macro like this (Note: change the folder if the CMSIS_Configuration_Wizard.jar is located elsewhere): 

    CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar 

    Best regards, 
    Joakim

Children
No Data
Related