How RTT works
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和一个环形缓冲区结构,
描述通道缓冲区及其状态。可用信道的最大数量
可以在编译时配置,并且可以通过配置和添加每个缓冲区
应用程序在运行时。上下缓冲可以单独处理。每个通道都可以
被配置为阻塞或非阻塞。在阻塞模式下应用程序会等待
当缓冲区满时,直到所有的内存都被写入,导致一个被阻塞的应用程序
状态但防止数据丢失。在非阻塞模式下,只适用于数据
缓冲区,或者根本没有,将被写入,其余的将被丢弃。这允许运行
在实时的情况下,即使没有调试器连接。开发人员不需要创建
一个特殊的调试版本和代码可以在一个发布应用程序中保持适当的位置。
How RTT works的更多相关文章
- [转]使用RTT(Real-Time Terminal)
转自http://siever.info/home/hello-world/ Bluetooth Low Energy Logging events with on Nordic’s nRF seri ...
- 等待 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 ...
- spring注解源码分析--how does autowired works?
1. 背景 注解可以减少代码的开发量,spring提供了丰富的注解功能.我们可能会被问到,spring的注解到底是什么触发的呢?今天以spring最常使用的一个注解autowired来跟踪代码,进行d ...
- [Unity][Heap sort]用Unity动态演示堆排序的过程(How Heap Sort Works)
[Unity][Heap sort]用Unity动态演示堆排序的过程 How Heap Sort Works 最近做了一个用Unity3D动态演示堆排序过程的程序. I've made this ap ...
- How PhoneGap & Titanium Works
转载自 http://www.appcelerator.com/blog/2012/05/comparing-titanium-and-phonegap/ How PhoneGap Works As ...
- 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 ...
- How Garbage Collection Really Works
Java Memory Management, with its built-in garbage collection, is one of the language's finest achiev ...
- 攻城狮在路上(肆)How tomcat works(零) 前言说明
最近几篇是关于How tomcat works一书的读书笔记. 通过数个章节逐渐实现一个tomcat的功能. 源码下载地址:http://zhidao.baidu.com/share/7007af0f ...
- 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 ...
随机推荐
- slider轮播插件的多种写法
slider轮播插件相信大家经常会用到,写法也是各种各样,大部分都是用的第三方提供的组件使用,如果想基于自己的业务特点封装个组件供自己使用的话就要自己封装组件了,网上看了大部分写法都是通过js控制do ...
- 用WebStorm开发TypeScript
为什么是TypeScript 最近在做H5的游戏,最终选定的TypeScript作为开发语言.主要是看重他有强类型和Class,作为习惯使用AS3,Java等强类型编程的人来说,还是习惯这种编程写法. ...
- ZooKeeper 典型应用场景
Zookeeper基础知识 1.zookeeper是一个类似hdfs的树形文件结构,zookeeper可以用来保证数据在(zk)集群之间的数据的事务性一致. 2.zookeeper有watch事件,是 ...
- Activiti实现会签功能
一个任务需要多个角色进行审批或者表决,根据这些审批结果来决定流程的走向.实现以上任务,activiti已经提供了支持,可以使用BPMN规范的多实例活动来实现. 1.Activiti多实例: 多实例节点 ...
- 理解JMeter聚合报告(Aggregate Report)
Aggregate Report 是 JMeter 常用的一个 Listener,中文被翻译为“聚合报告”.今天再次有同行问到这个报告中的各项数据表示什么意思,顺便在这里公布一下,以备大家查阅. 如果 ...
- Springmvc和Mybatis中常用的注解
使用注解来构造IoC容器 用注解来向Spring容器注册Bean.需要在applicationContext.xml中注册<context:component-scan base-package ...
- JAVA后台框架优化之日志篇
1.日志规范 各业务系统日志需要统一,以方便查看.收集日志, 日后统一ELK日志管理,以下为项目的日志配置, 这是兼容当前系统的日志,以后推行微服架构时会有变动,但日志存放方式不会改变,日后会推行sp ...
- 初识WCF2
参照: http://blog.csdn.net/songyefei/article/details/7371571 在上一篇中,我们在一个控制台应用程序中编写了一个简单的WCF服务并承载了它.先回顾 ...
- SQL捕捉blocking信息
场景: 客户抱怨数据库慢,但是回去看的时候,可能已经不慢了,为了查出当时到底是什么原因导致数据慢,制作了下面的存储过程,然后每隔3分钟运行一遍,把blocking信息插入一个数据库中. 主要就是查询s ...
- Linux 下Discuz论坛的搭建
Discuz论坛的搭建[基于LNMP环境搭建成功后] ##创建BBS数据库在本地/远程服务器 mysql -uroot -proot create database bbs; show databas ...