摘要: 官方说明:http://www.keil.com/support/man/docs/armlink/armlink_pge1401393372646.htm 阅读全文
posted @ 2015-05-03 20:17 冰鸮 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 参考资料:http://www.keil.com/support/man/docs/jlink/jlink_trace_itm_viewer.htm1.Target Options -> Debug -> Settings(JLink) -> Debug里ort选择SW模式2.在Target Opt... 阅读全文
posted @ 2015-04-23 14:55 冰鸮 阅读(2907) 评论(0) 推荐(0) 编辑
摘要: startup_LPC177x_8x.s启动代码分析。参考资料:Cortex-M3 (NXP LPC1788)之启动代码分析ARM启动过程(Cortex-M3 NXP LPC1768为例);/*****************************************************************************; * @file: startup_LPC177x_8x.s; * @purpose: CMSIS Cortex-M3 Core Device Startup File; * for the NXP LPC177x_8x De... 阅读全文
posted @ 2014-04-10 15:45 冰鸮 阅读(1516) 评论(0) 推荐(0) 编辑
摘要: 看资料里有一堆缩写,老是记不清楚,所以做个缩写对照表留底。CMSIS(Cortex Micro-controller Software Interface Standard)微控制器软件接口标准IAP (In Application Programming) 应用编程,IAP是用户自己的程序在运行过程中对User Flash的部分区域进行烧写,目的是为了在产品发布后可以方便地通过预留的通信口对产品中的固件程序进行更新升级。ISP (In-System Programming)在系统可编程,指电路板上的空白器件可以编程写入最终用户代码, 而不需要从电路板上取下器件,已经编程的器件也可以用ISP 阅读全文
posted @ 2014-04-10 13:54 冰鸮 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 博主是个还没入门的弱菜,老师让查资料所以我把自己找的资料整理一下搁在这里方便以后查阅用的,自己并没有试过。如有错误,欢迎指正。参考资料:《ARM体系结构与编程》keil .sct分散加载文件及其应用keil分散加载文件*.sctKeil下分散加载文件分散加载描述文件首先介绍几个概念:1.ARM映像文... 阅读全文
posted @ 2014-04-10 13:40 冰鸮 阅读(5266) 评论(0) 推荐(0) 编辑
摘要: 求出不使用P点时起点到终点的最短距离,求出起点到所有P点的最短距离,求出终点到所有P点的最短距离。答案=min( 不使用P点时起点到终点的最短距离, 起点到P的最短距离+终点到P的最短距离 )#include #include #include #include #include using namespace std;const int MAXN = 5100;const int INF = 1 = 0 && x = 0 && y Q; st.cost = 0; vis[ st.x ][ st.y ] = true; Q.push(st); while ( ! 阅读全文
posted @ 2014-03-08 18:51 冰鸮 阅读(513) 评论(2) 推荐(0) 编辑
摘要: PK3Err0040 The target device is not ready for debugging. Please check yourconfiguration bit settings and program the device before proceeding.(目标器件未准备好调试。请检查配置位设置并编程该器件,然后继续。)在配置位正确的前提下,晶振脱焊也会出现这个问题。重新连一下就好了。 阅读全文
posted @ 2014-03-05 20:31 冰鸮 阅读(1481) 评论(0) 推荐(0) 编辑
摘要: 题意:给你一个明文对密文的字母表,在给你一段截获信息,截获信息前半段是密文,后半段是明文,但不清楚它们的分界点在哪里,密文一定是完整的,明文可能是残缺的,求完整的信息串(即完整的密文+明文串)。题解:KMP next函数的应用。#include #include #include const int MAXN = 100010;char table[32];char extable[32];char ori[MAXN];char aft[MAXN];int next[MAXN];int len;void init(){ for ( int i = 0; i len/2 ) ans =... 阅读全文
posted @ 2014-03-05 08:53 冰鸮 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 题意:一个老鼠在一条长度为L的直线上跑,吃蛋糕,老鼠只能沿直线移动。开始时没有蛋糕,老鼠的初始位置是0.有两个操作,0 x 代表在位置x添加一个蛋糕; 1 代表老鼠想吃蛋糕。老鼠每次都会选择离自己最近的点,如果两边距离相同,老鼠优先选择与自己当前移动方向相同的点。求最终移动的总距离。题解:线段树单点修改+查询区间端点。设当前位置为pos,每次查询区间[0, pos]的最右端和区间[pos, L]的最左端,比较选择哪个更近。详细题解见代码注释。#include #include #include #include #include #define lson l, m, rt > 1; bu 阅读全文
posted @ 2014-03-05 08:43 冰鸮 阅读(218) 评论(0) 推荐(0) 编辑
摘要: public static String bytes2HexString(byte[] b){ String ret = ""; for (int i = 0; i > 4, 16)); sb.append(Character.forDigit(buffer[i] & 15, 16)); } return sb.toString();} 阅读全文
posted @ 2013-12-18 15:44 冰鸮 阅读(318) 评论(0) 推荐(0) 编辑