1450 views|0 replies

3836

Posts

19

Resources
The OP
 

MSP430FR5969BOOT Programming and Application Programming [Copy link]

BOOT programming and application design Application design: (host computer software->RF upgrade file transfer->device reception) The device receives and stores it into the external EEPROM, Modify the interrupt vector to the BOOT vector table memcpy((ST_UINT16 *)0xFF80, (ST_UINT16 *)0xFF00, 0x80); /* Change the interrupt vector to the starting address of boot. FF00 is the vector backup of boot*/restart code, the program starts running from BOOT; BOOT program design: detect whether there is an upgrade file in the external EEPROM, if so, copy the data to the on-chip storage (), erase the external EEPROMmemcpy((ST_UINT16 *)0xFF00, (ST_UINT16 *)0xFF80, 0x80); /* Restore interrupt phasor*/memcpy((ST_UINT16 *)0xFF80, (ST_UINT16 *)0xFE80, 0x80); Back up the interrupt vector of BOOT to 0XFF00, copy the interrupt vector of the application 0XFE80 to FF80, restart the BOOT program (0xFF80), and the program starts executing the application from the location specified by the application (0xFE80). Burn the boot and application into the MCU at the same time. The boot program generates a TXT file, and the application generates a TXT file. Use the tool to splice the two files to generate .bin and .txt files. Use FET-Pro430 to burn into the 430 MCU. The first program runs from the default 0XFF80. Start to execute the BOOT program, detect that there is no upgrade file in the EEPROM, back up the BOOT interrupt vector to 0XFF00, change the interrupt vector to the application interrupt vector 0XFE80, restart the BOOT program, then the program points to the application interrupt vector and starts running the application; Receive the upgrade file .bin, store the data, copy the BOOT backup vector 0XFF00 to 0XFE80, restart the application, then the program points to the BOOT interrupt vector and starts to execute the BOOT program.


This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list