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

Problem using CMSIS in Segger Embedded Studio

Dear all,

   My team want to develop a innovative product. I am following this tutorial (www.youtube.com/watch

   to enable the CMSIS Configuration Wizard in Segger Embedded Studio. I did the following three steps:

   1. File->Open Studio Folder->External Tools Configuration.

   2. I paste the code below in the tools.xml. (Please see the image on attachment)
<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>
</item>

   3. Right click the file "sdk_config.h" and select "CMSIS Configuration Wizard".

   Unfortunately the "CMSIS Configuration Wizard" doesn´t appear!

 

   As alternative can i download the "CMSIS Configuration Wizard", run the program from the

   command line of windows and edit the file "sdk_config.h"?

 

  Regarding to the file "sdk_config.h" i have the following question:

  When i enable a specific module i need to include the directory where the files of the module are located? (User include Directories)

  I need to include the source files of the module in the project?


Any help will be very appreciated.

Best regards,

Rafael Santos Costa

  • Hi,

         Sorry, I thought the referred tutorial would also be valid for the nrf5 SDK for Mesh. In the tools.xml i have changed the following line of code, by the line below.


          java -jar &quot;$(CMSIS_CONFIG_TOOL)&quot; &quot;$(InputPath)&quot;

          java -jar C:\Users\rcosta\Documents\centi\wisen\codigo\nrf5_SDK_for_Mesh_v1.0.0_src\external_tools\cmsisconfig\CMSIS_Configuration_Wizard.jar

       Unfortunately nothing has happened. I will change the sdk_config.h typing "java -jar CMSIS_Configuration_Wizard file_location" in the command line of windows.

    Best regards,

    Rafael Santos Costa

  • Ok Rafael,

    Since you're innovating in other areas, we decided to get innovative for you on this CMSIS Wizard thing to get it working under a Mesh SDK build and managed to successfully launch the Config Wizard under SES. The image below shows all the settings that we utilized... we imported an sdk_config.h file into the project since the tool is set to match on *config*.h files only. In the bottom output window you can also see the log generated by the wizard. Additionally as you can see, we pointed directly to the jar file that comes with the NRF5 SDK.

    Hope this helps!

    Regards,

  • Dear leonwj,

       I have followed your suggestion, now i can launch CMSIS Configuration Wizard from the Segger Embedded Studio. Thank you very much for the help.

    Best regards,

    Rafael Costa

  • I was able to get it to work on MacOS by pasting in the following:

    <item name="Tool.CMSIS_Config_Wizard" wait="no">
        <menu>&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>
          "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java" -jar "$(CMSIS_CONFIG_TOOL)" "$(InputPath)"
        </commands>
    </item>

    After installing JAVA from Sun.
Related