AnsweredAssumed Answered

S12XS-Family data flash operation

Question asked by Tomas jian on May 3, 2010
Latest reply on Dec 10, 2010 by nkgavali

void Write_Command(uchar index,uint fcmd,uint addr)
{
  FCCOBIX = index;

  FCCOB = (fcmd<<8) | addr;
 
}

      Write_Command(0x00,Program_Dflash,0x10);
       
        Write_Command(0x01,0x00,des_addr);  //0X00
   
        Write_Command(0x02,0x00,1);
         
        Write_Command(0x03,0x00,2);
      
        Write_Command(0x04,0x00,3);
       
        Write_Command(0x05,0x00,4);

 

I use this program to write the data in the data flash area(the global address is 0x10_0000),but I can not  write the read out program so I couldnot read the data I just write,which engieer can help me or write down the read out program! Thanks!

Outcomes