|
初学者,请教下430中的pringtf怎么调试呢
[复制链接]
我用的IAR,f5438开发板下面那个printf不知道打印到哪里去了?求指点;
#include "msp430x54x.h"
#include "stdio.h"
//*************************************************************
unsigned char *point;
void main( void )
{
unsigned char mm;
WDTCTL = WDTPW + WDTHOLD; //关看门狗
point = (unsigned char*)0x5b00; //指向 RAM 访问间
*point = 0x02; //写值给指向的 RAM 间
RCCTL0 = RCKEY + RCRS3OFF; //关闭 section 3
*point = 0x03; //写值给指向的 RAM 间
RCCTL0 = RCKEY ; //打开 RAM
*point = 0x04;
mm = *point;
printf("\n mm output:");
printf("\n mm =%d",mm); //输出先前指向的数据
while(1);
}
|
|