定义的数据前面加上关键字const如:const unsigned int a;const unsigned char buf[3]={0x01,0x02,0x03};则变量a和数组buf就放到Flash(即ROM)里面了。