当前位置:网站首页>8051 series MCU firmware upgrade IAP
8051 series MCU firmware upgrade IAP
2022-07-28 16:21:00 【Chop Hua】
8051 Series MCU firmware upgrade iap
Statement :
#define UPGRADE_FLAG 0xaa // Upgrade flag bit
#define APP_START_ADDR 0x0000 //bootloader Initial address
#define APP_FLAG_ADDR 0x1800 // Upgrade flag bit address
#define APP_START_ADDR 0x2000 //app Run from address
Bootloader Environment settings :
1. find *.A51 file , take START_APPLICATION EQU 0 Rewrite into START_APPLICATION EQU 2000h, among 2000h By definition app Running address 
App Environment settings :
1. Set up app Operation address and range :Flash->configuer Flash Tools…->Target. modify app Run from address and size ;
2. Modify the interrupt vector offset address , Modified into app Run from address 2000, Note that the code optimization level cannot exceed 8;
notes :Interrupt vectors at adderss: Interrupt offset address
Level: Code optimization level 
3. Modify the program burning address :Flash->configuer Flash Tools…->LX51 Locate Remove the tick , stay User classes To write app Run burning address
CODE (C:0x2000-C:0x3FFE), CONST (C:0x2000-C:0x3FFE),
ECODE (C:0x2000-C:0x3FFE), HCONST (C:0x2000-C:0x3FFE)
My starting address is 2000H The size is 1FFFH So the scope is 0x2000-C:0x3FFE
Tips : If the option is Flash->configuer Flash Tools…->BL51 Locates when , Get rid of the hook , stay Code Range: Fill in as 0X2000-0X3FFF;
4. find *.a51 file , take CSEG AT 0 Change to CSEG AT 2000H;
Tips : stay bootloader Try not to interrupt ,8051 There is no interrupt mapping function .
边栏推荐
- How to measure the vibrating wire sensor by vibrating wire acquisition module?
- R language ggplot2 visually draws line plots, and uses gghighlight package to highlight the lines that meet the combination judgment conditions in the line graphs (satisfies both condition a and b)
- 关于标准IO缓冲区的问题
- Redis系列4:高可用之Sentinel(哨兵模式)
- JS linked list 01
- js 数组(总结)
- 2021 Kent interview question 3
- Rust 入门指南(crate 管理)
- Let's learn the game of beating hamsters
- 2021 肯特面试题1
猜你喜欢

I'll show you a little chat! Summary of single merchant function modules

js 优先级队列

js 链表 01

Basic structure and operation principle of solar street lamp

mysql查询 limit 1000,10 和limit 10 速度一样快吗?如果我要分页,我该怎么办?

Roson的Qt之旅#101 Qt Quick中的模型和视图

QT打包

MLX90640 红外热成像仪测温传感器模块开发笔记(八)

Duty cycle switch output high speed pulse counter rtumodbus module ibf63

Paging query in applet
随机推荐
Ask if you don't understand, and quickly become an advanced player of container service!
CoDeSys realizes bubble sorting
Data real-time feedback technology
MicTR01 Tester 开发套件(振弦采集读数仪)使用说明
c语言编程当中两个!!的作用
正大杯黑客马拉松数据解析竞赛
Installation points and precautions of split angle probe
Sudden! MSI CEO Jiang Shengchang fell to death
R language uses file of FS package_ Delete function deletes the specified file under the specified folder, draw inferences from one instance, dir_ Delete function, link_ The delete function can be use
Note: numerical accumulation animation
Set static IP in NAT mode of virtual machine
视频号找到金钥匙,抖音模仿后来人
2021 Kent interview question 3
Learning methods 123
光学雨量计应用降雨量检测
Pyqt5 rapid development and practice 5.2 container: load more controls
How to quickly access the unified authentication system
QT打包
js 链表 02
SDL2 简明教程(四):用 SDL_IMAGE 库导入图片