memory write 0x48000008 0x12DC24D8 ; MSC0 = 0x26F226F2
memory read 0x48000008 ; read MSC0
memory write 0x4800000C 0x7FF07FF0 ; MSC1 = 0x3FF4A441
wait 10
memory write 0x48000010 0x7FF07FF0 ; MSC2 = 0x00007FF0
wait 10
memory write 0x48000004 0x00000018 ; MDREFR = 0x00000018
memory write 0x4800001C 0x00000000 ; SXCNFG = 0x00000000
memory write 0x48000004 0x00010018 ; MDREFR = 0x00010018
wait 10
memory write 0x48000004 0x0009C030 ; MDREFR = 0x000BC018
memory write 0x48000000 0x00000AA8 ; MDCNFG = 0x00000AA8
wait 100
memory write 0x48000000 0x00000AAD ; MDCNFG = 0x00000AA9
memory write 0x48000040 0x00220032 ; MDMRS = 0x00220032
[FLASH_28F128J3A]
; auto detect 28F128J3(A) or 28F128P30B
CHIP = 28F128J3(A) ; flash chip
CHIP = 28F128P30B ; flash chip
ACCESS_METHOD = AUTO ; program method auto
CHECK_ID = YES ; check chip ID
CHIP_WIDTH = 16 ; chip is in 16 bit configuration
CHIP_COUNT = 1 ; one chip is used
BASE_ADDR = 0 ; chip is mapped at 0x0000000
FILE = "myfile.bin", BIN, 0 ; file to program
AUTO_ERASE = NO ; erase before program
AUTO_LOCK = NO ; lock after program