I'm having a struggle with getting a block erase to work reliably on a=20 8Mbit sst spi flash part. This is a bootloader application where=20 erasing the flash is part of the function of the bootloader. I have reads working great, writes aren't needed (They're done by the=20 main program instead), but erasing the first block in the flash isn't=20 working very well at all. I get an occasional successful erase, but=20 usually not. I'm obviously doing something subtly wrong and/or violating some timing=20 spec, but I have no idea what that might be... I've been looking for=20 some sample assembly code to compare/decipher since I don't normally do=20 SPI flash stuff in .asm, but I don't seem to be able to find one -=20 probably not using the correct google searches. Can someone point me in the right direction? -forrest --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .