I have a project that reads and writes to the Atmel AT45DB041B flash IC. When run in the debuger everything works correctly. If I power up the project out side the debugger it locks up at the part of the code related to reading from the AT45DB041B. The communication with the AT45DB041B is using SPI. I have tried different prescaler values and it does not help.
What is different with running in and out of the debuger that would cause this problem ?