Posted on May 17, 2011 at 13:55Good call. I turns out that those variables isn't even set when the code is running (works in debug stepping mode) witch means that the fault happens earlier than I thought. Maybe I still have a problem with interrupts...
Posted on May 17, 2011 at 13:55The NOR_WRITE stuff in the beginning is a bit of cargo cult programming... The library the came with the flash does this. I checked the specs and its a reset plain and simple. Makes sure that the flash is in read mode....