boot

来自「Free 8051 asm compiler for linux new ho」· 代码 · 共 36 行

TXT
36
字号
#!/bin/sh## Assemble, Upload and Run an 8051 Program# ========================================## 1st (and only) parameter: assembler source file## This will (optionally) reset your 8051 target system, assemble# the specified source file, upload the generated Intel-HEX file# over a serial port, and finally start the program.# For this, a customized version of the bootstrap program BOOT-51# must be installed on the target, and the macro assembler ASEM-51# must be installed on the host system!## To get the shell script running, change the configuration# parameters below according to your local requirements:# Serial port for upload:uploaddevice=/dev/ttyS1# Baudrate:baudrate=9600# Program start address (hex):startaddress=8000# Port for resetting the target system:# (specify /dev/null, if not supported)resetdevice=/dev/lp0# Duration of the reset pulse (in ms):pulsewidth=50# The rest of the work is done by the upload script:upload $uploaddevice $baudrate $startaddress $resetdevice $pulsewidth $1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?