关于MSP430
There are three options for programming an MSP430 flash device. All options support in-system programming:
Program via JTAG
Program via the Bootstrap Loader
Program via a custom solution
S9000使用msp430V325的BSL向触摸屏下载firmware
其内存分区:
MSP430V325 | ||
---|---|---|
Memory Main: interrupt vector Main: code memory | Size flash flash | 32KB Flash 0FFFFh-0FFC0h 0FFFFh-08000h |
Information memory | size flash | 256 Byte 010FFh-01000h |
Boot memory | Size Rom | 1KB 0FFFh-0C00h |
RAM | Size | 1KB 05FFh-0200h |
Peripherals | 16-bit 8-bit 8-bit SFR | 01FFh-0100h 0FFh-010h 0Fh-00h |
见文档: Media:MSP430V325.pdf
[编辑]program folw:
1.是否解密
2.Check, if specified range is erased
3.写如数据
4.verify写入的数据
[编辑]下载工具:
msp430dl
usage:
msp430dl [OPTION]...
DESCRIPTION
-f, --fw_file {FirmwareFile}
download firmware and exit.
-d, --dump {addr} {len} [filepath]
dump flash memory from address addr to addr+len(byte) to filepath default
-e, --erase {addr/"main"/"info"/"all"}
erase flash memory segment
-s, --serial [serial_file_path]
set the serial path if not set it's /dev/tty0
-h, --help
Display this help and exit.
-v, --version
Output version information and exit.
[编辑]项目代码
模块名 | 模块说明 | 获取方法 |
---|---|---|
msp430dl | msp430dl |
进入bsl模式: echo 1 > /sys/class/input/input2/irda_download_mode