Winbond_EraseSector0.jflash 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 write enable
  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. // Erase sector 0
  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 = "Set write enable"
  43. ExitStep4_Value0 = 4
  44. ExitStep4_Value1[4] = 0xD8,0x00,0x00,0x00
  45. ExitStep5_Action = "Deactivate CS"
  46. ExitStep5_Comment = "Deactivate CS"
  47. ExitStep5_Value0 = 0x00000000
  48. ExitStep5_Value1 = 0x00000000
  49. //
  50. // Wait until sector has been erased
  51. //
  52. ExitStep6_Action = "Delay"
  53. ExitStep6_Comment = "Wait until sector has been erased"
  54. ExitStep6_Value0 = 0x00000080
  55. ExitStep6_Value1 = 0x00000000
  56. NumExitSteps = 7
  57. [SPI]
  58. AddrBytesEraseSector = 0x03
  59. AddrBytesReadData = 0x03
  60. AddrBytesReadFast = 0x03
  61. AddrBytesWritePage = 0x03
  62. CmdEraseBulk = 0xC7
  63. CmdEraseSector = 0xD8
  64. CmdReadData = 0x03
  65. CmdReadFast = 0x0B
  66. CmdReadID = 0x9F
  67. CmdReadStatus = 0x05
  68. CmdWriteDisable = 0x04
  69. CmdWriteEnable = 0x06
  70. CmdWritePage = 0x02
  71. CmdWriteStatus = 0x01