20 write data to user-flash – ADLINK CoreExpress-ECO2 User Manual

Page 27

Advertising
background image

4.20 Write Data to User-Flash

This command writes data to the selected address of the SMC-Flash. Up to 32 Bytes can be written
in a single block access. The number of bytes to write must be a multiple of 4. This command takes

up to 250ms of time (depends if the requested Flash-Area is clear or not). During this time the SMC
is not accessible. To detect if the SMC is busy use a single read with 0xFF as command (like Read

BIOS Flags, but use 0xFF instead of 0x35). If the SMC responds with 0xF0, the SMC is ready for next
steps.

START

SMC_addr ACK command ACK

length ACK Data0 ACK

ACK

Data_n ACK STOP

Table 4.20.1 SMC receiver format of the Write Data to User-Flash Command Code

ITEM

DESCRIPTION

START

SM-bus start condition

SMC_addr

0x50 (8-bit)

ACK

SM-bus acknowledge condition generated by receiver

command

0x41 = “Write Data to User-Flash” Command code

Length

Number of Data_Bytes to write (=n)

Data0..n

4-32 Data-Bytes to write

STOP

SM-bus stop condition

Table 4.20.2 Explanation of Table 4.20.1

Advertising