就算是很简单的汇编程序,下载到mcu上后,运行起来会说: communications timeout, pls restart E8.
为什么?
简单程序如下:
;****************************************************
;* Definition of ROM *
;****************************************************
VRAMTOP .EQU 0400H ; Setting the starting point of the RAM
VROMTOP .EQU 0F0000H ; Setting the starting point of the ROM
VSB .EQU 0400H ; Setting the starting point of the SB
P0 .EQU 03E0H ; Setting p0 register
PD0 .EQU 03E2H ; Setting p0 direction register
;****************************************************
;* P0----- LED lighting output *
;* P0_0-------LED1 *
;* P0_1-------LED2 *
;* P0_2-------LED3 *
;* P0_3-------LED4 *
;* P0_4-------LED5 *
;* P0_5-------LED6 *
;* P0_6-------LED7 *
;* P0_7-------LED8 *
;****************************************************
.SECTION PROGRAM, CODE
.ORG VROMTOP ; This program will store from the VROMTOP
SETING:
MOV.B #0FFH, PD0 ; P0 are the output pins
MOV.B #081H, P0
.END
build的时候只有这个a30文件,没有其他任何文件
请高手解决