I am using AT25DF041B SPI Serial Flash Memory with my application and I am confused about protection about sectors.
When I have read the datasheet it says there is a command for the global unprotect. Therefore I am calling this command in the beginning of the code(main file) and then execute my code which includes a few write command. However, then I noticed that one of the my write function cannot write to flash. After that I put the global unprotect function, just above this write function also and it worked. I am a bit perplexed about this, so do I need every time unprotect command before write something or clear sectors? Does flash protect itself after some time automatically?
Link of the datasheet.