Dev_Inf.c 1.2 KB

1234567891011121314151617181920212223242526272829
  1. #include "Dev_Inf.h"
  2. /* This structure containes information used by ST-LINK Utility to program and erase the device */
  3. #if defined (__ICCARM__)
  4. __root struct StorageInfo const StorageInfo = {
  5. #else
  6. struct StorageInfo const StorageInfo = {
  7. #endif
  8. "M25P64_STM3210E-EVAL", // Device Name + version number
  9. SPI_FLASH, // Device Type
  10. 0x00000000, // Device Start Address
  11. 0x00800000, // Device Size in Bytes (8MBytes/64Mbits)
  12. 0x00000100, // Programming Page Size 16Bytes
  13. 0xFF, // Initial Content of Erased Memory
  14. // Specify Size and Address of Sectors (view example below)
  15. 0x00000080, 0x00010000, // Sector Num : 128 ,Sector Size: 64KBytes
  16. 0x00000000, 0x00000000,
  17. };
  18. /* Sector coding example
  19. A device with succives 16 Sectors of 1KBytes, 128 Sectors of 16 KBytes,
  20. 8 Sectors of 2KBytes and 16384 Sectors of 8KBytes
  21. 0x00000010, 0x00000400, // 16 Sectors of 1KBytes
  22. 0x00000080, 0x00004000, // 128 Sectors of 16 KBytes
  23. 0x00000008, 0x00000800, // 8 Sectors of 2KBytes
  24. 0x00004000, 0x00002000, // 16384 Sectors of 8KBytes
  25. 0x00000000, 0x00000000, // end
  26. */