CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 嵌入式/单片机编程 单片机(51,AVR,MSP430等)

文件名称:1838072vugnqmqhqcthggm

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-12-18
  • 文件大小:
    26.87kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

特点: 升错文件不会变砖,app程序不需要知道boot的存在

方法: 38400波特率,板子复位后键盘敲“d”, 正常接收后串口会不停打印“C” 后把bin文件通过xmodem传送过去即可。



原理: 升级app时,把第一条jmp指令换成跳转到boot的jmp指令。 然后把app原来的跳转jmp指令放到0x1bfc的位置(就是boot区的前四个字节)。boot执行完了后执行存在0x1bfc位置的jmp指令即可跳转到app程序区。简单来说就是劫持app的第一条jmp指令。



因此流程是 起始的jmp > boot区第一个jmp > boot区代码 > jmp 0x1fbc > app 执行.



此方法适用于GCC编出来的程序,只要第一条指令是个jmp指令即可 (普通编译器都是,除非是汇编)-Features: l the wrong file will not brick, the app program does not need to know the existence of boot

Methods: 38400 baud rate, the board reset knock on the keyboard d , the normal after receiving the serial will not stop printing C after the bin file through XMODEM transmitted to the past.

Principle: when upgrading app, the first JMP instructions into the jump to the boot JMP instruction. Then put the original app jump JMP instructions into the position of the 0x1bfc (boot zone is the first four bytes). Implementation of the existence of the location of 0x1bfc JMP commands to jump to the app program area after boot implementation. The first JMP instruction is simply to hijack app.

So the process is starting the JMP > boot area of the first JMP- > boot- > JMP- > app 0x1fbc code execution.

This method is applicable to GCC out of the program, as long as the first instruction is a JMP commands
(系统自动生成,下载前可以参看下载内容)

下载文件列表

default/
default/build.bat
default/dep/
default/dep/LGT_main.o.d
default/LGT_main.o
default/LGT_Template.bin
default/LGT_Template.eep
default/LGT_Template.elf
default/LGT_Template.hex
default/LGT_Template.lss
default/LGT_Template.map
default/Makefile
default/Makefile.bak
default/rebuild.bat
iolgt8f0xa.h
LGT_main.c

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com