This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于2812FLASH烧写的问题

/* 烧写FLASH */
 for(i = 0; i<2000;i++)
 {
      a=(float)i/18000;    
     Buffer[i] = sin(a*PI)*32768;  

 } 
 Flash_ptr = (unsigned int *) 0x3dc000;//H段空间 16K*16
 Length = 2000; 
 status = Flash_Program(Flash_ptr,Buffer,Length,&ProgStatus);
 if(status != STATUS_SUCCESS)
 {
  while(1);
 }

以上是我的FLASH烧写自制正弦表的一段程序,此程序是没有问题的,当我将第四行语句的18000改成17999或18001或其他的数的时候,程序一直停留在倒数第二行,跑不到下面