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

Unable to run CMSIS configuration tool

I am new to Nordic and am using SES as my development environment along with the Nordic SDK v15.0.0.  I have followed the instructions for installing the CMSIS configuration tool and it works in the examples but cannot get it to work with a custom project directory.  The tools.xml file follows all the suggestions that I found on your website but still no luck.  When called, I get the CMSIS Config Completed and Finished CMSIS Config posts in the output window but the tool GUI never showed up on the monitor. I have tried directly coding the path for the tool in the java instruction contained in tools.xml and also tried modifying the "global macros" path in the build environment.  Any additional suggestions?

Parents
  • I finished testing this by taking a copy of the ble_app_blinky example located in sdk15/examples/ble_peripheral/ & renaming it. Then, I deleted all of the pca folders that I didn't need inside the renamed folder. The only files left for me were pca10040, ble_app_blinky.eww & the main.c file. Inside pca10040/s132/, I then deleted all of the folders except for config & ses. Lastly, I opened up the ble_app_blinky_pca10040_s132 EMPROJECT file & the CMSIS manager still worked. 

    I just used the ble_app_blinky example as an example, but you can base your code upon whichever Nordic example works best for you, make a copy of the example folder & then make changes to the code.

    I am not sure if this is a satisfactory answer regarding you wanting to use a "custom project directory", but at least this way you can make all the changes you want to the example code & still use CMSIS.

    These two links were useful for setting up the CMSIS wizard (link 1, link 2).

  • I provided incorrect information in my post.  The CMSIS configuration tool does not come up in the examples either; each time I try to open it I get the following in the output window but no GUI to make changes.

    CMSIS config - completed

    Finished CMSIS config - completed

  • Sorry for the long break, I was moved to a different project for a while but am now back.  I just updated to SES 3.40 today but problem still exists as previously described.  Below is my tools.xml file.  Looking back to the previous comment by Bjorn Kvaale, where do I find the macro settings?

    <tools>

      <!-- PC-lint - www.gimpel.com/.../pcl.htm -->

      <if host_os="win">
        <item name="Tool.PClint">
          <menu>&amp;PC-lint (Unit Check)</menu>
          <text>PC-lint (Unit Check)</text>
          <tip>Run a PC-lint unit checkout on the selected file or folder</tip>
          <key>Ctrl+L, Ctrl+P</key>
          <match>*.c;*.cpp</match>
          <message>Linting</message>
          <commands>
            &quot;$(LINTDIR)/lint-nt&quot; -v -incvar(__CW_ARM) -i$(LINTDIR)/lnt co-gcc.lnt $(DEFINES) $(INCLUDES) -D__GNUC__ -u -b +macros +macros -w2 -e537 +fie +ffn -width(0,4) -hF1 &quot;-format=%f:%l:%C:\s%t:\s%m [-e%n]&quot; &quot;$(InputPath)&quot;
          </commands>
        </item>
        <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)&quote;
          </commands>
        </item>
      </if>
    </tools>

  • You can find the Project Macros, by right clicking on your Project (e.g. Project 'ble_app_blinky_pca10040_s132') in the top left hand corner of SES -> Edit Options ... -> Code tab -> Build tab -> Choosing the Common Configuration -> click on Project Macros.

    See the picture below for more info:

    In your devzone post, you mention that you have "followed the instructions for installing the CMSIS configuration tool". Did you follow this youtube video?

  • The project MACRO's are correct.  I ran the video again and everything looks good.  Java is installed and I have been able to bring up the wizard GUI by invoking the command line from a console window (in Windows 7 Professional).  I do not get a GUI window after calling CMSIS configuration manager in SES using the right hand click on the "sdk_config.h" file in the project window.   The output window does show the following, which makes me believe it has run but was unable to open a new window:

    CMSIS Config
    CMSIS Config sdk_config.h
    Finished CMSIS Config

    Any idea how to resolve this?

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

    Hi,

    You are missing a space between the two parameters.
    It should be: java -jar &quot;$(CMSIS_CONFIG_TOOL)&quot; &quot;$(InputPath)&quote;

  • Could you double check this & let us know if it works? I also had a space between the &quot; &quot. I tested this quickly by removing the space, saving the tools.xml file, closing my SES project, reopening the project & then trying to open CMSIS Config Wizard. Then, the GUI popup did not appear. When I added the space again, saved the tools.xml file, closed the SES project, reopened the project & opened CMSIS Config Wizard, the GUI popped up.

    Thank you for all of the help. :)

Reply Children
Related