CMSIS: How to add a new User Code Template
Information in this knowledgebase article applies to:
When adding new item (source code etc.) to my existing project in µVision, I can select some pre-defined User Code Templates from a CMSIS Software packs like CMSIS-RTOS or Middleware, as shown in this screenshot:
Is it possible to define and add my own User Code Templates to be used in µVision?
Basically you have two options to define and add your own User Code Templates to be selected in µVision.
Add a User Code Template to an Existing CMSIS Software Pack
If you want to define and add a new User Code Template into an existing CMSIS-RTOS Software Pack:
You can use the same way to add your own User Code Template into other existing CMSIS Software Pack. The important thing here is that the corresponding *.pdsc file inside such a Software Pack is modified properly.
Add a User Code Template to a New CMSIS Software Pack
Follow this web page http://www.keil.com/appnotes/docs/apnt_251.asp to create your own CMSIS Software Pack, where you can define your own User Code Templates to be part of your CMSIS Pack, as described here http://www.keil.com/pack/doc/CMSIS/Pack/html/cp_SWComponents.html#cp_CodeTemplates
In this way you can easily populate and share your User Code Templates to other team members via such a CMSIS Software Pack.
Last Reviewed: Wednesday, June 28, 2017
of your data.