Winbond_ReadModifyWrite_SecurityRegisters.jflash 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. AppVersion = 54112
  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 = 12000
  12. [FLASH]
  13. AutoDetect = 0x00000001
  14. NumPages = 0x00010000
  15. PageSizeShift = 0x00000008
  16. SectorSizeShift = 0x00000010
  17. [CPU]
  18. NumInitSteps = 44
  19. InitStep0_Action = "Comment"
  20. InitStep0_Comment = "Set write enable"
  21. InitStep0_Value0 = 0x00000000
  22. InitStep0_Value1 = 0x00000000
  23. InitStep1_Action = "Activate CS"
  24. InitStep1_Comment = ""
  25. InitStep1_Value0 = 0x00000000
  26. InitStep1_Value1 = 0x00000000
  27. InitStep2_Action = "Write Data"
  28. InitStep2_Comment = "Send command: Write Enable"
  29. InitStep2_Value0 = 0x00000001
  30. InitStep2_Value1[1] = 0x06
  31. InitStep3_Action = "Deactivate CS"
  32. InitStep3_Comment = ""
  33. InitStep3_Value0 = 0x00000000
  34. InitStep3_Value1 = 0x00000000
  35. InitStep4_Action = "Comment"
  36. InitStep4_Comment = "Erase security register 1"
  37. InitStep4_Value0 = 0x00000000
  38. InitStep4_Value1 = 0x00000000
  39. InitStep5_Action = "Activate CS"
  40. InitStep5_Comment = ""
  41. InitStep5_Value0 = 0x00000000
  42. InitStep5_Value1 = 0x00000000
  43. InitStep6_Action = "Write Data"
  44. InitStep6_Comment = "Send command: Erase Security Register 1"
  45. InitStep6_Value0 = 0x00000004
  46. InitStep6_Value1[4] = 0x44,0x00,0x10,0x00
  47. InitStep7_Action = "Deactivate CS"
  48. InitStep7_Comment = ""
  49. InitStep7_Value0 = 0x00000000
  50. InitStep7_Value1 = 0x00000000
  51. InitStep8_Action = "Delay"
  52. InitStep8_Comment = "Wait until security register 1 has been erased"
  53. InitStep8_Value0 = 0x000000C8
  54. InitStep8_Value1 = 0x00000000
  55. InitStep9_Action = "Comment"
  56. InitStep9_Comment = "Read security register 1"
  57. InitStep9_Value0 = 0x00000000
  58. InitStep9_Value1 = 0x00000000
  59. InitStep10_Action = "Activate CS"
  60. InitStep10_Comment = ""
  61. InitStep10_Value0 = 0x00000000
  62. InitStep10_Value1 = 0x00000000
  63. InitStep11_Action = "Write Data"
  64. InitStep11_Comment = "Send Read Security Register: 1b command + 3b addr"
  65. InitStep11_Value0 = 0x00000004
  66. InitStep11_Value1[4] = 0x48,0x00,0x10,0x00
  67. InitStep12_Action = "Write Data"
  68. InitStep12_Comment = "8 dummy clocks"
  69. InitStep12_Value0 = 0x00000001
  70. InitStep12_Value1[1] = 0xFF
  71. InitStep13_Action = "Var Read Data"
  72. InitStep13_Comment = "Read actual security register data"
  73. InitStep13_Value0 = 0x00000000
  74. InitStep13_Value1 = 0x00000010
  75. InitStep14_Action = "Deactivate CS"
  76. InitStep14_Comment = ""
  77. InitStep14_Value0 = 0x00000000
  78. InitStep14_Value1 = 0x00000000
  79. InitStep15_Action = "Var AND"
  80. InitStep15_Comment = ""
  81. InitStep15_Value0 = 0x00000000
  82. InitStep15_Value1 = 0x00000000
  83. InitStep16_Action = "Var OR"
  84. InitStep16_Comment = ""
  85. InitStep16_Value0 = 0x00000000
  86. InitStep16_Value1 = 0x00000012
  87. InitStep17_Action = "Var AND"
  88. InitStep17_Comment = ""
  89. InitStep17_Value0 = 0x00000006
  90. InitStep17_Value1 = 0x00000000
  91. InitStep18_Action = "Var OR"
  92. InitStep18_Comment = ""
  93. InitStep18_Value0 = 0x00000006
  94. InitStep18_Value1 = 0x000000AB
  95. InitStep19_Action = "Var AND"
  96. InitStep19_Comment = ""
  97. InitStep19_Value0 = 0x0000000C
  98. InitStep19_Value1 = 0x00000000
  99. InitStep20_Action = "Var OR"
  100. InitStep20_Comment = ""
  101. InitStep20_Value0 = 0x0000000C
  102. InitStep20_Value1 = 0x000000CC
  103. InitStep21_Action = "Var AND"
  104. InitStep21_Comment = ""
  105. InitStep21_Value0 = 0x0000000F
  106. InitStep21_Value1 = 0x00000000
  107. InitStep22_Action = "Var OR"
  108. InitStep22_Comment = ""
  109. InitStep22_Value0 = 0x0000000F
  110. InitStep22_Value1 = 0x0000004E
  111. InitStep23_Action = "Comment"
  112. InitStep23_Comment = "Set write enable"
  113. InitStep23_Value0 = 0x00000000
  114. InitStep23_Value1 = 0x00000000
  115. InitStep24_Action = "Activate CS"
  116. InitStep24_Comment = ""
  117. InitStep24_Value0 = 0x00000000
  118. InitStep24_Value1 = 0x00000000
  119. InitStep25_Action = "Write Data"
  120. InitStep25_Comment = "Send command: Write Enable"
  121. InitStep25_Value0 = 0x00000001
  122. InitStep25_Value1[1] = 0x06
  123. InitStep26_Action = "Deactivate CS"
  124. InitStep26_Comment = ""
  125. InitStep26_Value0 = 0x00000000
  126. InitStep26_Value1 = 0x00000000
  127. InitStep27_Action = "Comment"
  128. InitStep27_Comment = "Program security register 1"
  129. InitStep27_Value0 = 0x00000000
  130. InitStep27_Value1 = 0x00000000
  131. InitStep28_Action = "Activate CS"
  132. InitStep28_Comment = ""
  133. InitStep28_Value0 = 0x00000000
  134. InitStep28_Value1 = 0x00000000
  135. InitStep29_Action = "Write Data"
  136. InitStep29_Comment = "Send command: Program Security Register 1"
  137. InitStep29_Value0 = 0x00000004
  138. InitStep29_Value1[4] = 0x42,0x00,0x10,0x00
  139. InitStep30_Action = "Var Write Data"
  140. InitStep30_Comment = "Send data: Program sec reg 1_1"
  141. InitStep30_Value0 = 0x00000000
  142. InitStep30_Value1 = 0x0000000F
  143. InitStep31_Action = "Deactivate CS"
  144. InitStep31_Comment = ""
  145. InitStep31_Value0 = 0x00000000
  146. InitStep31_Value1 = 0x00000000
  147. InitStep32_Action = "Delay"
  148. InitStep32_Comment = "Wait until security register 1 has been erased"
  149. InitStep32_Value0 = 0x000000C8
  150. InitStep32_Value1 = 0x00000000
  151. InitStep33_Action = "Comment"
  152. InitStep33_Comment = "Read security register"
  153. InitStep33_Value0 = 0x00000000
  154. InitStep33_Value1 = 0x00000000
  155. InitStep34_Action = "Activate CS"
  156. InitStep34_Comment = ""
  157. InitStep34_Value0 = 0x00000000
  158. InitStep34_Value1 = 0x00000000
  159. InitStep35_Action = "Write Data"
  160. InitStep35_Comment = "Send Read Security Register: 1b command + 3b addr"
  161. InitStep35_Value0 = 0x00000004
  162. InitStep35_Value1[4] = 0x48,0x00,0x10,0x00
  163. InitStep36_Action = "Write Data"
  164. InitStep36_Comment = "8 dummy clocks"
  165. InitStep36_Value0 = 0x00000001
  166. InitStep36_Value1[1] = 0xFF
  167. InitStep37_Action = "Var Read Data"
  168. InitStep37_Comment = "Read actual security register data"
  169. InitStep37_Value0 = 0x00000000
  170. InitStep37_Value1 = 0x0000000F
  171. InitStep38_Action = "Deactivate CS"
  172. InitStep38_Comment = ""
  173. InitStep38_Value0 = 0x00000000
  174. InitStep38_Value1 = 0x00000000
  175. InitStep39_Action = "Comment"
  176. InitStep39_Comment = "Verify security register"
  177. InitStep39_Value0 = 0x00000000
  178. InitStep39_Value1 = 0x00000000
  179. InitStep40_Action = "Var Verify Byte"
  180. InitStep40_Comment = "Verify VarBuffer[0] == 12"
  181. InitStep40_Value0 = 0x00000000
  182. InitStep40_Value1 = 0x00000012
  183. InitStep41_Action = "Var Verify Byte"
  184. InitStep41_Comment = "Verify VarBuffer[6] == 0xAB"
  185. InitStep41_Value0 = 0x00000006
  186. InitStep41_Value1 = 0x000000AB
  187. InitStep42_Action = "Var Verify Byte"
  188. InitStep42_Comment = "Verify VarBuffer[12] == 0xCC"
  189. InitStep42_Value0 = 0x0000000C
  190. InitStep42_Value1 = 0x000000CC
  191. InitStep43_Action = "Var Verify Byte"
  192. InitStep43_Comment = "Verify VarBuffer[15] == 0x4E"
  193. InitStep43_Value0 = 0x0000000F
  194. InitStep43_Value1 = 0x0000004E
  195. NumExitSteps = 0
  196. [SPI]
  197. AddrBytesEraseSector = 0x03
  198. AddrBytesReadData = 0x03
  199. AddrBytesReadFast = 0x03
  200. AddrBytesWritePage = 0x03
  201. CmdEraseBulk = 0xC7
  202. CmdEraseSector = 0xD8
  203. CmdReadData = 0x03
  204. CmdReadFast = 0x0B
  205. CmdReadID = 0x9F
  206. CmdReadStatus = 0x05
  207. CmdWriteDisable = 0x04
  208. CmdWriteEnable = 0x06
  209. CmdWritePage = 0x02
  210. CmdWriteStatus = 0x01
  211. [PRODUCTION]
  212. AutoPerformsErase = 1
  213. AutoPerformsProgram = 1
  214. AutoPerformsVerify = 1
  215. EnableTargetPower = 1
  216. EraseType = 2
  217. PerformCompare = 1
  218. TargetPowerDelay = 0x000000C8