#include "inc/hw_types.h"#include "driverlib/debug.h"#include "driverlib/sysctl.h"__root unsigned long *p,*q;void main(){ SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_6MHZ);
p = (unsigned long *)0x20000010;
*p = 0x3355aacc;
q = (unsigned long *)0x22000200;
*q = 0;
q = (unsigned long *)0x22000204;
*q = 1;
while(1);}各位高手我用LM3S811学习bitband功能,可是指针p一直指向flash的0地址。程序也跑飞了。我用的IDE是IAR for ARM 6.10。请问是哪里出错了,还是IAR的问题。
此帖出自
小平头技术问答
一周热门 更多>