Menu

#82 Add "Manage Run-Time Environment" button for packs

Time Permitting
open-accepted
packs (1)
5
2015-01-02
2015-01-02
No

The Keil uVision IDE has a "Manage Run-Time Environment" button. This allows the user to select which software components (from the available packs) he or she wants for the present project. It also allows the user to select different variants of the same software component. For instance, with the Nordic Semiconductor packs, I can select nRF_Drivers/app_uart, and then specify that I want to use either the "default" or "Fifo" variant of that software component.

A similar button in the GNU ARM Eclipse plug-in would allow users to build one or more software component (from packs) into their project without symbolic-linking-in source files or adding links to source directories manually in the Eclipse project itself.

Discussion

  • Liviu Ionescu (ilg)

    • status: pending --> open-accepted
    • assigned_to: Liviu Ionescu (ilg)
     
  • Liviu Ionescu (ilg)

    more support for cmsis packs is planned, but it'll take a while to be functional.

    however, please be aware that currently the packs are very MDK centric, some features (like examples) are not defined in a portable way, and will probably not work with gcc.

     
  • Peter Watkins

    Peter Watkins - 2015-01-02

    In my case, I'm not using examples, rather I'm using the driver code provided by Nordic Semi. Presently, to accomplish this, I have a Makefile that copies files from the Packages directory that the GNU ARM Eclipse plugins maintain into my project itself. i.e.: here's the Makefile:

    PKG := ../../../../../GNU\ ARM\ Eclipse/Packages
    
    COPY_FILES = src/CMSIS/system_nrf51.c include/nrf51/system_nrf51.h include/CMSIS/nrf51.h
    
    all: $(COPY_FILES)
    
    src/CMSIS/system_nrf51.c : $(PKG)/NordicSemiconductor/nRF_DeviceFamilyPack/1.1.4/Device/Source/system_nrf51.c
    
    include/nrf51/system_nrf51.h : $(PKG)/NordicSemiconductor/nRF_DeviceFamilyPack/1.1.4/Device/Include/system_nrf51.h
    
    include/CMSIS/nrf51.h : $(PKG)/NordicSemiconductor/nRF_DeviceFamilyPack/1.1.4/Device/Include/nrf51.h
    
    src/%:
        cp -f '$<' $@
    
    include/%:
        cp -f '$<' $@
    

    Is this how I should I should be accessing package driver code from my projects? If not, I'll make a support ticket and we can discuss this there.

     
  • Liviu Ionescu (ilg)

    it is hard to say what is the best solution, but as long as it is functional, it should be fine for now.

    the CDT generated make files can include some custom files, probably you can adjust your files to integrate them with the managed build, in case you did not do it already.

    otherwise the cmsis packs support will be extended in steps, first it'll allow to copy cmsis core files to the project, during project creation; later it'll allow to refer drivers and other files present in the packs.

    work on this is scheduled for 2015Q2-Q3, after some more debugging support will be added.

    did you try the Peripherals view for your devices?

     
MongoDB Logo MongoDB