Flash connection to CPU and flash attribute description file
This article is excerpted from Wang honghui's book "Practical Guide for developing embedded Linux kernel (ARM platform )".
Here we will describe it with the FCD file on my own Development Board:
[Chain]; JTAG scan chain segments
Device = initi4510b. BSD; CPU boundary scan file, provided by Samsung, a processor of the processor.
[Read]; unused in the program
Beginbyte = 0
Endbyte = 0x10000
[Flash]; sst39vf160; description section of the flash chip. Sst39vf160 is a comment indicating the flash chip Model
Writecmd = 0x5555, 0xaa, 0x2aaa, 0x55, 0x5555, 0xa0; command sequence for writing flash chips, which can be obtained from the flash chip Manual
Erasecmd = 0x5555, 0xaa, 0x2aaa, 0x55, 0x5555, 0x80, 0x5555, 0xaa, 0x2aaa, 0x55, 0x0, 0x30; command sequence for flash chip erasure, available in flash chip Manual
Erasedelay = 25; the waiting time required to erase the chip, in MS
Block = 0x800,512; the size of a sector in the flash chip. If there are multiple sector, set it to the smallest sector size. Here, the minimum size of the flash chip sector is 512 bytes.
Addrwidth = 20; the data width that flash connects to the system, that is, the number of data lines. This indicates that the data line width is 20 bits;
Datawidth = 2; the address width that flash connects to the system, that is, the number of bytes of the address, which indicates that the address is 2 bytes in width;
Bigendian = 0; In the byte order mode, 0 indicates littleendian. The low-byte in a word is the low-byte. 1 indicates bigendian. The large-end, the low-byte in a word is the high-byte;
A0 = 110; the address of the flash chip 0 pin A0 connects to the 110th pin of the chip, and so on
A1 = 111
A2 = 112.
A3 = 113
A4 = 114
A5 = 115
A6 = 116
A7 = 117
A8 = 120
A9 = 121
A10 = 122
A11 = 123
A12 = 124
A13 = 125
A14 = 126
A15 = 127
A16 = 128
A17 = 129
A18 = 132
A19 = 133
D0 = 136; the flash chip's data bit 0 pin D0 connects to the 136th pin of the chip, and so on
D1 = 137.
D2. = 138
D3 = 139.
D4 = 140
D5 = 141
D6 = 1, 144
D7 = 145
D8 = 146
D9= 147
D10 = 148
D11 = 149.
D12 = 150
D 13 = 151
D 14 = 152
D 15 = 153
WR = 100; the flash chip's write signal pin WR connects to the 100th pin of the msp430f4510 Chip
RD = 72; the reading signal pin RD of the flash chip is connected to the 72nd pin of the chip
Cs = 75; flash Chip Pin CS connected to 75th of
Resetctrl = 0x00; flash chip Reset Control PIN not connected
High =
Low =
Safemode = 1; Security Mode settings, not used in the program