Diego Nunes

Flash driver in NE64

Discussion created by Diego Nunes on Jun 18, 2007
Latest reply on Jul 7, 2007 by Jim Donelson
Hi, I'm trying to write some configuration at Flash memory, but it's not working.
I implement a version of AN2720, with DoOnStack wirtten in C and/or assembler, but it's not work.
I've been using ethernet feature, my PLL is 2/10, so bus clock is at 5Mhz (xtal = 25Mhz)
It's attached my source file.
In debug step-by-step mode it's work, but in runtime it's not.
It breaks in   FSTAT = FSTAT_CBEIF_MASK; from DoOnStack function
In main, I call:
Flash_Erase_Sector(0x006000); // erase 512 bytes
Flash_Write_Word(0x006000, 0x0102);
Flash_Write_Word(0x006002, 0x0304);