谢谢,后来又遇到这样的问题
程序如下
void write(int16_t value_2,int16_t value_3)
{
int i;
char buf[512];
int *Data_location_ptr;
int *Segment_location_ptr;
char *Flash_ptr;
int16_t Segment_location=0;
int16_t Data_location=0;
Segment_location_ptr=(int *)0x1000;
Data_location_ptr=(int *)0x1080;
Segment_location=*Segment_location_ptr;
Data_location=*Data_location_ptr;
int16_t x= Segment_location*0x200;
// Flash pointer
Flash_ptr = (char *)(0x8000+x);
for(i=0;i