当前位置:网站首页>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 .
边栏推荐
- 激光测距仪非接触式地表裂缝监测仪
- R语言ggplot2可视化绘制线图(line plot)、使用gghighlight包突出高亮线图中满足组合判断条件的线图(satisfies both condition A and B)
- flashfxp 530 User cannot log in. ftp
- 加速投资的小红书,“病急乱投医”?
- 分体式测斜探头安装要点及注意事项
- The deep displacement monitoring system wk813 is used to measure the deep displacement of slopes, dams, embankments, railways and building foundation pit excavation
- QT打包
- Voltage to current / current to voltage module
- 跳表的实现
- Stm32f103c8t6 + 0.96 "I2C OLED display 3d_cube
猜你喜欢

How to quickly access the unified authentication system

Detectron2 installation and testing

远距离串口服务器( 适配器)UART/I2C/1-Wire/SPI PS304常见问题及注意事项

js 链表 02

KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书

JS stack

MicTR01 Tester 开发套件(振弦采集读数仪)使用说明

Open light input / relay output rs485/232 remote data acquisition IO module ibf70

疫情红利消失,「居家健身」泡沫消散

2021 Kent interview question 2
随机推荐
A tour of grp:05 - GRP server streaming service end stream
Roson的Qt之旅#102 ListModel
R语言ggplot2可视化绘制线图(line plot)、使用gghighlight包突出高亮线图中满足组合判断条件的线图(satisfies both condition A and B)
2021 Kent interview question 2
JS linked list 02
Use py to automatically generate weekly reports based on log records
SDL2 简明教程(四):用 SDL_IMAGE 库导入图片
Installation points and precautions of split angle probe
Paging query in applet
Sudden! MSI CEO Jiang Shengchang fell to death
Basic structure and operation principle of solar street lamp
Deeply understand the fusing configuration of istio traffic management
Two special functions (arrow function and method)
五舅的思考
NTC, PT100 thermal resistance to 4-20mA temperature signal converter
Laser rangefinder non-contact surface crack monitor
Rust 入门指南(crate 管理)
2021-10-21 notes
Shell programming specifications and variables
Roson的Qt之旅#101 Qt Quick中的模型和视图