单步运行还是全部图标都灰了
将main函数断点去掉后 就一直running image
用的是0k6410的开发板 程序也是led的
init.s
IMPORT Main
AREA Init, CODE, READONLY
global start
start
bl Main
END
main.c
#define rGPMCON (*(volatile unsigned *)(0x7F008820))
#define rGPMDAT (*(volatile unsigned *)(0x7F008824))
#define rGPMPUD (*(volatile unsigned *)(0x7F008828))
void msDelay(int time)
{
volatile unsigned int i,j;
for(i = 0; i < 2000000; i++)
for(j=0; j<time; j++);
}
void GPIO_Init(void)
{
rGPMCON = 0x11111;
rGPMPUD = 0x00;
rGPMDAT = 0X1F;
}
void LedTest(void)
{
volatile unsigned int i;
while (1)
{
for(i=0; i<4; i++)
{
rGPMDAT = ~(1<<i);
msDelay(10);
}
}
}
void Main(void)
{
GPIO_Init();
LedTest();
while(1);
}
|