13.2 How RTT works

13.2.1 Target implementation
  

  Real Time Terminal uses a SEGGER RTT Control Block structure in the target’s memoryto manage data reads and writes.

  实时终端使用目标内存中的SEGGER RTT控制块结构管理数据读取和写入。

  The control block contains an ID to make it findable in memory by a connected J-Link and a ring buffer structure for each available channel,describing the channel buffer and its state.

  控制块包含一个ID,以使其可查找在内存中,每个可用通道都有一个连接的j-link和一个环形缓冲区结构,描述通道缓冲区及其状态。

  The maximum number of available channels can be configured at compile time and each buffer can be configured and added by the application at run time.

  

Up and down buffers can be handled separately. Each channel can

be configured to be blocking or non-blocking. In blocking mode the application will wait

when the buffer is full, until all memory could be written, resulting in a blocked application

state but preventing data from getting lost. In non-blocking mode only data which fits into

the buffer, or none at all, will be written and the rest will be discarded. This allows running

in real-time, even when no debugger is connected. The developer does not have to create

a special debug version and the code can stay in place in a release application.

控制块包含一个ID,以使其可查找

在内存中,每个可用通道都有一个连接的j-link和一个环形缓冲区结构,

描述通道缓冲区及其状态。可用信道的最大数量

可以在编译时配置,并且可以通过配置和添加每个缓冲区

应用程序在运行时。上下缓冲可以单独处理。每个通道都可以

被配置为阻塞或非阻塞。在阻塞模式下应用程序会等待

当缓冲区满时,直到所有的内存都被写入,导致一个被阻塞的应用程序

状态但防止数据丢失。在非阻塞模式下,只适用于数据

缓冲区,或者根本没有,将被写入,其余的将被丢弃。这允许运行

在实时的情况下,即使没有调试器连接。开发人员不需要创建

一个特殊的调试版本和代码可以在一个发布应用程序中保持适当的位置。

jlink-rtt相关介绍

How RTT works的更多相关文章

  1. [转]使用RTT(Real-Time Terminal)

    转自http://siever.info/home/hello-world/ Bluetooth Low Energy Logging events with on Nordic’s nRF seri ...

  2. 等待 Redis 应答 Redis pipeline It's not just a matter of RTT

    小结: 1.When pipelining is used, many commands are usually read with a single read() system call, and ...

  3. spring注解源码分析--how does autowired works?

    1. 背景 注解可以减少代码的开发量,spring提供了丰富的注解功能.我们可能会被问到,spring的注解到底是什么触发的呢?今天以spring最常使用的一个注解autowired来跟踪代码,进行d ...

  4. [Unity][Heap sort]用Unity动态演示堆排序的过程(How Heap Sort Works)

    [Unity][Heap sort]用Unity动态演示堆排序的过程 How Heap Sort Works 最近做了一个用Unity3D动态演示堆排序过程的程序. I've made this ap ...

  5. How PhoneGap & Titanium Works

    转载自 http://www.appcelerator.com/blog/2012/05/comparing-titanium-and-phonegap/ How PhoneGap Works As ...

  6. Saying that Java is nice because it works on every OS is like saying that anal sex is nice because it works on every gender.

    Saying that Java is nice because it works on every OS is like saying that anal sex is nice because i ...

  7. How Garbage Collection Really Works

    Java Memory Management, with its built-in garbage collection, is one of the language's finest achiev ...

  8. 攻城狮在路上(肆)How tomcat works(零) 前言说明

    最近几篇是关于How tomcat works一书的读书笔记. 通过数个章节逐渐实现一个tomcat的功能. 源码下载地址:http://zhidao.baidu.com/share/7007af0f ...

  9. The Magic only works with total devotion of one's heart

    The Magic only works with total devotion of one's heart All tools and equipments are useless without ...

随机推荐

  1. csharp: Double Convert To String

    /// <summary> /// /// </summary> /// <param name="fl"></param> /// ...

  2. 前端之body标签中相关标签(二)

    一 列表标签 列表标签分为三种. 1.无序列表<ul>,无序列表中的每一项是<li> 英文单词解释如下: a.ul:unordered list,“无序列表”的意思. b.li ...

  3. C#-创建并添加TXT文件

    public static void WriteToText(string txtContent, string txtPath) { using (FileStream fs = new FileS ...

  4. 使用PuTTy在CentOS下安装web.py与简单的文件传输

    两周前,出于帮朋友忙的目的,尝试了一下微信公众号的菜单自定义与自动回复功能的实现,成了. 两周后,需要将代码转移至朋友新购的服务器上,发现基本操作全忘记了,麻瓜!所以记一笔,希望也能对大家也有帮助. ...

  5. 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)

    问题描述: 有时候使用 apt-get 终端提示这样的错误信息: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) E: 无法锁定管理目录(/var/lib/ ...

  6. php 函数func_get_args()、func_get_arg()与func_num_args()之间的区别

    php经常会有一些看似相近的函数,然而区别很大.[func_get_arg(),func_get_args(),func_num_args()]的区别,我们先看一下,下面的实例代码 从上面的结果中我们 ...

  7. kernel update

    CentOS/RHEL更新包:https://rhn.redhat.com/errata/RHSA-2017-1382.html yum makecache --更新源 yum update sudo ...

  8. 爬虫入门之scrapy模拟登陆(十四)

    注意:模拟登陆时,必须保证settings.py里的COOKIES_ENABLED(Cookies中间件) 处于开启状态 COOKIES_ENABLED = True或# COOKIES_ENABLE ...

  9. December 14th 2016 Week 51st Wednesday

    Everything has its time and that time must be watched. 万物皆有时,时来不可失. Everything has its time, and I r ...

  10. codeforces 812E Sagheer and Apple Tree(思维、nim博弈)

    codeforces 812E Sagheer and Apple Tree 题意 一棵带点权有根树,保证所有叶子节点到根的距离同奇偶. 每次可以选择一个点,把它的点权删除x,它的某个儿子的点权增加x ...