No bugs at all.
Just coding...
read_flag must be declared volatile
to reach if() iner code.
~d


> while(1)                              
>   {
>      if(read_flag == 1)
>      {
>        read_flag = 0;           <-- can not reach 
>          TXBUF0 = *Flash_ptrA;  
>      }
>      else if(flash_flag ==1)
>      {
>         flash_flag =0;
>           
>      }
> }
> if I rewrite the following, 
> while(1)                              
>   {
>      if(read_flag == 1)
>      {
>        read_flag = 0;          <--- can reach
>          TXBUF0 = *Flash_ptrA;  
>      }
>      if(flash_flag ==1)
>      {
>         flash_flag =0;
>           
>      }
> }


Reply via email to