摘要
传统嵌入式应用中,不便于对微处理器芯片固件进行升级,影响产品后期的维护。通过对ARM嵌入式核调试功能与串行调试(Serial Wire Debug,SWD)协议的研究,实现了芯片ARM内核控制与访问。然后经过对芯片Flash算法文件FLM的研究解析,将提取的Flash相关二进制可执行码在ARM核内部静态随机存储寄存器(Static Random Access Memory,SRAM)中恢复,利用ARM核心寄存器实现参数与Flash函数调用,完成主设备对芯片固件的在线系统编程(In-System Programing,ISP)烧录更新,并通过编程验证了SWD协议时序并实现了应用。
In traditional embedded applications,it is inconvenient to upgrade the microprocessor chip firmware,which affects the later maintenance of the product.With the study of ARM embedded core debugging function and SWD(Serial Wire Debug)protocol,the control and access of ARM core registers are realized.Then,through the research and analysis of the chip Flash algorithm file FLM,this article restores the extracted Flash-related binary executable code in the SRAM(Static Random Access Memory)inside the ARM core.It uses ARM core registers to implement parameters and Flash function calls,completes the insystem programming(ISP)burning and updating of the chip firmware by the host device,and verifies the SWD protocol timing through programming and realizes the application.
作者
王宇
刘浪华
WANG Yu;LIU Langhua(No.30 Institute of CETC,Chengdu Sichuan 610041,China)
出处
《通信技术》
2021年第7期1800-1806,共7页
Communications Technology