【原创出品§转载请注明出处】 出处:http://www.cnblogs.com/libra13179/p/6273415.html

我在这里就交大家怎样制作自己的Pack,(这里是我制作好的http://files.cnblogs.com/files/libra13179/KEIL5%E7%9A%84RTT%E4%B9%8Bpack.zip)

1、用的C:\Program Files (x86)\SEGGER\JLink_V512f\Samples\RTT\SEGGER_RTT_V512f这个压缩文件中程序。

2、添加文件rtt_log.C和rtt_log.H

3、新增一个Segger.Segger_RTT_Logger.pdsc

Segger.Segger_RTT_Logger.pdsc的具体内容如下

 <?xml version="1.0" encoding="utf-8"?>

 <package schemaVersion="1.2" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="PACK.xsd">
<vendor>Segger</vendor>
<name>Segger_RTT_Logger</name>
<description>Simple logging functionality for Segger's J-Link Real-Time Terminal</description>
<url></url>
<supportContact>404267906@qq.com</supportContact>
<!-- optional license file -->
<!--
<license>
</license>
--> <releases>
<release version="1.0.1">
2017/01/11 Initial Version (SEGGER_RTT_V512f)
2017/01/11 add rtt_log.c and rtt_log.h
</release>
</releases> <keywords>
<!-- keywords for indexing -->
<keyword>Debug</keyword>
<keyword>Log</keyword>
<keyword>Logging</keyword>
<keyword>J-Link</keyword>
<keyword>Segger</keyword>
</keywords> <!-- apis section (optional - for Application Programming Interface descriptions) -->
<!--
<apis>
</apis>
--> <!-- boards section (mandatory for Board Support Packs) -->
<!--
<boards>
</boards>
--> <!-- devices section (mandatory for Device Family Packs) -->
<!--
<devices>
</devices>
--> <!-- examples section (optional for all Software Packs)-->
<!--
<examples>
</examples>
--> <!-- conditions section (optional for all Software Packs)-->
<!--
<conditions>
</conditions>
--> <!-- component section (optional for all Software Packs)--> <components>
<component Cclass="Segger Tools" Cgroup="Segger RTT Tools Logger" Cversion="1.0.0">
<description>Routines to use the Segger Real-Time Terminal for logging</description>
<files>
<file category="header" name="SEGGER_RTT_V512f\RTT\SEGGER_RTT.h"/>
<file category="header" name="SEGGER_RTT_V512f\RTT\SEGGER_RTT_Conf.h" attr="config"/>
<file category="source" name="SEGGER_RTT_V512f\RTT\SEGGER_RTT.c"/>
<file category="source" name="SEGGER_RTT_V512f\RTT\SEGGER_RTT_printf.c"/>
<file category="header" name="SEGGER_RTT_V512f\rtt_log.h"/>
<file category="source" name="SEGGER_RTT_V512f\rtt_log.c"/>
</files>
</component> </components> <!-- optional taxonomy section for defining new component Class and Group names -->
<!--
<taxonomy>
</taxonomy>
--> </package>

> 参考KEIL的pack文档
http://files.cnblogs.com/files/libra13179/keil%E4%B9%8Bpack%E5%88%B6%E4%BD%9C%E6%96%87%E6%A1%A3.zip

4、将SEGGER_RTT_V512f文件夹和Segger.Segger_RTT_Logger.pdsc进行压缩文件命名为Segger.Segger_RTT_Logger.1.0.1.ZIP,.ZIP后缀修改.pack。

5、安装到keil中

测试我们生成PACK

编译工程下载后可以看到

制作keil5的pack的更多相关文章

  1. D:\Software\Keil5\ARM\PACK\Keil\STM32F1xx_DFP\2.1.0\Device\Include\stm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No such file or directory

    1. 错误提示信息: D:\Software\Keil5\ARM\PACK\Keil\STM32F1xx_DFP\2.1.0\Device\Include\stm32f10x.h(483): erro ...

  2. 第2章 如何安装KEIL5

    第2章     如何安装KEIL5 全套200集视频教程和1000页PDF教程请到秉火论坛下载:www.firebbs.cn 野火视频教程优酷观看网址:http://i.youku.com/fireg ...

  3. 第2章-如何安装KEIL5—零死角玩转STM32-F429系列

    第2章     如何安装KEIL5 集视频教程和1000页PDF教程请到秉火论坛下载:www.firebbs.cn 野火视频教程优酷观看网址:http://i.youku.com/firege 本章内 ...

  4. MDK5 and STM32Cube

    D:\Workspace\........\RTE\Device>STM32CubeMX.exe -s project.script -tpl_path C:\Keil5\ARM\Pack\Ke ...

  5. error:Flash Download failed-“Cortex-M3”,“Programming Algorithm”【转】

    本文转载自:http://www.yfrobot.com/thread-11763-1-1.html 最近安装了KEIL5,在使用KEIL5和JLIN实现在线调试功能时,一定会在Utilities选项 ...

  6. Visual Studio 2010 集成 SP1 补丁 制作 Visual Studio 2010 Service Pack 1 完整版安装光盘的方法

    Now that Visual Studio 2010 SP1 has been released, administrators and developers may wish to install ...

  7. 一个技术汪的开源梦 —— 基于 .Net Core 的组件 Nuget 包制作 & 发布

    一个技术汪的开源梦 —— 目录 微软的 ASP.Net Core 强化了 Nuget 的使用,所有的 .Net Core 组件均有 Nuget 管理,所以有必要探讨一下 .Net Core 组件制作 ...

  8. Adobe Audition音频制作

    Adobe Audition 同义词 AU(软件(Adobe Audition))一般指Adobe Audition Adobe Audition是一个专业音频编辑和混合环境,原名为Cool Edit ...

  9. 10个实用的 CSS3 按钮效果制作教程

    人们往往喜欢那些有更多互动元素的网站,因此现在很多设计师专注于他们的 CSS3 技能.这是因为 CSS3 技能可以帮助他们在很大的程度上实现所需的吸引力.这里分享的10个优秀的 CSS3 按钮效果制作 ...

随机推荐

  1. 前端css规范

    文章整理了Web前端开发中的各种CSS规范,包括文件规范.注释规范.命名规范.书写规范.测试规范等. 一.文件规范 1.文件均归档至约定的目录中(具体要求以豆瓣的CSS规范为例进行讲解): 所有的CS ...

  2. 移动端 元素外面使用伪类after加边框 导致其内部元素无法选中

    解决方法:给内部元素增加属性 position: relative; z-index: 3; 这样就能选中其内部元素了.

  3. gitlab使用笔记

    一.git环境搭建 1.百度gitlab,找到其官网,注册gitlab账号(需要打开FQ软件),登录. 2.点击Profile Settings,然后点击SSH Keys 3.虚拟机中执行:ssh-k ...

  4. day36 python学习gevent io 多路复用 socketserver *****

    ---恢复内容开始--- gevent 1.切换+保存状态 2.检测单线程下任务的IO,实现遇到IO自动切换 Gevent 是一个第三方库,可以轻松通过gevent实现并发同步或异步编程,在geven ...

  5. WINDOWS FTP命令详解

    FTP命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操作系统下使用FTP,都会遇到大量的FTP内部命令.熟悉并灵活应用FTP的内部命令,可以大大方便使用者,并收到事半功倍之 ...

  6. mac上安装nginx

    终端执行: brew install nginx nginx 默认安装在 /usr/local/Cellar/nginx/1.12.2 conf 文件默认安装在 /usr/local/etc/ngin ...

  7. SPA页面缓存再优化二

    部署到线上的步骤: 拿到打包之后的文件,删除服务器上的文件,再放上去的. 测试1: 更改js文件,删除并上传新包. 额外发现1:如果用户在上传期间,仍然在系统之内,此时即使将服务器上的包删除掉,用户不 ...

  8. Win7 搭建pptpvpn服务器方法

    打开网络与共享中心 选择更改适配器设置 选择菜单文件选项(若无菜单栏,可以按一下alt键就会显示出来的) 选择新建传入链接 选择需要哪些用户可以访问vpn服务器,把勾搭上,点击下一步 注意此处的通过i ...

  9. ASP.NET Web Pages:文件夹

    ylbtech-.Net-ASP.NET Web Pages:文件夹 1.返回顶部 1. ASP.NET Web Pages - 文件夹 本章介绍有关文件夹和文件夹路径的知识. 在本章中,您将学到: ...

  10. (转)手机的AP和BP是什么?

    AP:Application Processor,即应用芯片 BP:Baseband Processor,即基带芯片 搞什么嘛,双核就双核呗,怎么又搞出个AP和BP啊 原来,FCC(美国联邦通信委员会 ...