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

Install CMSIS to SES (on Mac)

I'm trying to enable the CMSIS Wizard on SES 4.42a.  I followed the instructions and pasted the required xml into tools.xml, saved the file and restarted SES.

This is my tools.xml file:

<tools>

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

  <if host_os="win">
    <item name="Tool.PClint">
      <menu>&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>
        "$(LINTDIR)/lint-nt" -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 "-format=%f:%l:%C:\s%t:\s%m [-e%n]" "$(InputPath)"
      </commands>
    </item>

    <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>
       java -jar "$(CMSIS_CONFIG_TOOL)" "$(InputPath)"
      </commands>
    </item>

  </if>
</tools>

However the CMSIS command does not appear in the context menu of sdk_config.h.

I do have java installed.  This is the response to executing "/usr/libexec/java_home" in a command window:
/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home

Java was recently installed from Oracle.

What could the problem be?  Does the path to Java need to be different on a Mac?  Or is this not the correct version of Java?

Parents
  • Problem solved.  I had put the definition of CMSIS_Config_Wizard in the <if host_os="win"> ... </if> section. 

    I tried creating an equivalent secion for Mac:   <if host_os="mac"> ... </if> but this did not work.

    However I will never work on this project on a Windows computer anway so I deleted the Windows section and moved the XML defining the CMSIS_Config_Wizard to the top level:

    <tools>
    
      <!-- PC-lint - http://www.gimpel.com/html/pcl.htm -->
    
      <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>
          java -jar "$(CMSIS_CONFIG_TOOL)" "$(InputPath)"
        </commands>
      </item>
    
    </tools>

    and now I have a "CMSIS Configuration Menu" on sdk_config.h.

Reply
  • Problem solved.  I had put the definition of CMSIS_Config_Wizard in the <if host_os="win"> ... </if> section. 

    I tried creating an equivalent secion for Mac:   <if host_os="mac"> ... </if> but this did not work.

    However I will never work on this project on a Windows computer anway so I deleted the Windows section and moved the XML defining the CMSIS_Config_Wizard to the top level:

    <tools>
    
      <!-- PC-lint - http://www.gimpel.com/html/pcl.htm -->
    
      <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>
          java -jar "$(CMSIS_CONFIG_TOOL)" "$(InputPath)"
        </commands>
      </item>
    
    </tools>

    and now I have a "CMSIS Configuration Menu" on sdk_config.h.

Children
No Data
Related