Winbond_WriteSecurityRegisters.jflash 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. AppVersion = 50306
  2. [GENERAL]
  3. ConnectMode = 0
  4. CurrentFile = ""
  5. DataFileSAddr = 0x00000000
  6. GUIMode = 0
  7. HostName = ""
  8. USBPort = 0
  9. USBSerialNo = 0x00000000
  10. [JTAG]
  11. Speed0 = 4000
  12. Speed1 = 4000
  13. [FLASH]
  14. AutoDetect = 0x00000001
  15. NumPages = 0x00002000
  16. PageSizeShift = 0x00000008
  17. SectorSizeShift = 0x0000000C
  18. [CPU]
  19. //
  20. // Set WE
  21. //
  22. ExitStep0_Action = "Activate CS"
  23. ExitStep0_Comment = "Activate CS"
  24. ExitStep0_Value0 = 0x00000000
  25. ExitStep0_Value1 = 0x00000000
  26. ExitStep1_Action = "Write Data"
  27. ExitStep1_Comment = "Set write enable"
  28. ExitStep1_Value0 = 1
  29. ExitStep1_Value1[1] = 0x06
  30. ExitStep2_Action = "Deactivate CS"
  31. ExitStep2_Comment = "Deactivate CS"
  32. ExitStep2_Value0 = 0x00000000
  33. ExitStep2_Value1 = 0x00000000
  34. //
  35. // Set Erase security register 1
  36. //
  37. ExitStep3_Action = "Activate CS"
  38. ExitStep3_Comment = "Activate CS"
  39. ExitStep3_Value0 = 0x00000000
  40. ExitStep3_Value1 = 0x00000000
  41. ExitStep4_Action = "Write Data"
  42. ExitStep4_Comment = "Erase sec reg 1"
  43. ExitStep4_Value0 = 4
  44. ExitStep4_Value1[4] = 0x44,0x00,0x10,0x00
  45. ExitStep5_Action = "Deactivate CS"
  46. ExitStep5_Comment = "Deactivate CS"
  47. ExitStep5_Value0 = 0x00000000
  48. ExitStep5_Value1 = 0x00000000
  49. ExitStep6_Action = "Delay"
  50. ExitStep6_Comment = "Wait until sec reg 1 has been erased"
  51. ExitStep6_Value0 = 200
  52. ExitStep6_Value1 = 0
  53. //
  54. // Set WE
  55. //
  56. ExitStep7_Action = "Activate CS"
  57. ExitStep7_Comment = "Activate CS"
  58. ExitStep7_Value0 = 0x00000000
  59. ExitStep7_Value1 = 0x00000000
  60. ExitStep8_Action = "Write Data"
  61. ExitStep8_Comment = "Set write enable"
  62. ExitStep8_Value0 = 1
  63. ExitStep8_Value1[1] = 0x06
  64. ExitStep9_Action = "Deactivate CS"
  65. ExitStep9_Comment = "Deactivate CS"
  66. ExitStep9_Value0 = 0x00000000
  67. ExitStep9_Value1 = 0x00000000
  68. //
  69. // Program security register
  70. //
  71. ExitStep10_Action = "Activate CS"
  72. ExitStep10_Comment = "Activate CS"
  73. ExitStep10_Value0 = 0x00000000
  74. ExitStep10_Value1 = 0x00000000
  75. ExitStep11_Action = "Write Data"
  76. ExitStep11_Comment = "Program sec reg 1"
  77. ExitStep11_Value0 = 4
  78. ExitStep11_Value1[4] = 0x42,0x00,0x10,0x00
  79. ExitStep12_Action = "Write Data"
  80. ExitStep12_Comment = "Program sec reg 1_1"
  81. ExitStep12_Value0 = 16
  82. ExitStep12_Value1[16] = 0x89,0x98,0x28,0x00,0x00,0x00,0x08,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  83. ExitStep13_Action = "Write Data"
  84. ExitStep13_Comment = "Program sec reg 1_2"
  85. ExitStep13_Value0 = 16
  86. ExitStep13_Value1[16] = 0x00,0x00,0x00,0x00,0x00,0x80,0x13,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  87. ExitStep14_Action = "Write Data"
  88. ExitStep14_Comment = "Program sec reg 1_3"
  89. ExitStep14_Value0 = 16
  90. ExitStep14_Value1[16] = 0x00,0x00,0x00,0x00,0xb8,0xbd,0xb9,0xbd,0x00,0x00,0x00,0x00,0xcf,0x88,0x00,0x00
  91. ExitStep15_Action = "Deactivate CS"
  92. ExitStep15_Comment = "Deactivate CS"
  93. ExitStep15_Value0 = 0x00000000
  94. ExitStep15_Value1 = 0x00000000
  95. ExitStep16_Action = "Delay"
  96. ExitStep16_Comment = "Wait until sec reg 1 has been programmed"
  97. ExitStep16_Value0 = 200
  98. ExitStep16_Value1 = 0
  99. NumExitSteps = 16
  100. [SPI]
  101. AddrBytesEraseSector = 0x03
  102. AddrBytesReadData = 0x03
  103. AddrBytesReadFast = 0x03
  104. AddrBytesWritePage = 0x03
  105. CmdEraseBulk = 0xC7
  106. CmdEraseSector = 0xD8
  107. CmdReadData = 0x03
  108. CmdReadFast = 0x0B
  109. CmdReadID = 0x9F
  110. CmdReadStatus = 0x05
  111. CmdWriteDisable = 0x04
  112. CmdWriteEnable = 0x06
  113. CmdWritePage = 0x02
  114. CmdWriteStatus = 0x01