0

The Erase Question about SST39VF6401B

preliminary 8 years ago in General 0

Good afternoon,everybody

I am using SST39VF6401B this FLASH to make a project. It can read and write. But it met troubles when I set it to make a order that sending erase instruction according the SST39VF6401B’s datasheet. It can’t erase successfully.Have anyone here use this one? Please give me some help. Thanks in advance.

The following is the erase programming code:

 [code]NOR-Status FSMC-NOR-EraseChip(void)

(

*(unsigned short *) (NOR-BANK-ADDR + (0*0555 << 1)) = (unsigned short)0*AA;

*(unsigned short *) (NOR-BANK-ADDR + (0*02AA << 1)) = (unsigned short)0*55;

*(unsigned short *) (NOR-BANK-ADDR + (0*0555 << 1)) = (unsigned short)0*80;

*(unsigned short *) (NOR-BANK-ADDR + (0*0555 << 1)) = (unsigned short)0*AA;

*(unsigned short *) (NOR-BANK-ADDR + (0*02AA << 1)) = (unsigned short)0*55;

*(unsigned short *) (NOR-BANK-ADDR + (0*0555 << 1)) = (unsigned short)0*10;

//  NOR-WRITE(ADDR-SHIFT(0*0555), 0*00AA);

//  NOR-WRITE(ADDR-SHIFT(0*02AA), 0*0055);

//  NOR-WRITE(ADDR-SHIFT(0*0555), 0*0080);

//  NOR-WRITE(ADDR-SHIFT(0*0555), 0*00AA);

//  NOR-WRITE(ADDR-SHIFT(0*02AA), 0*0055);

//  NOR-WRITE(ADDR-SHIFT(0*0555), 0*0010);

 //NOR-WRITE(ADDR-SHIFT(0*110000), 0*0030);[/code]


Best wishes~