january 25, 2005 s29ws-n_00_g0
35
进步 信息
这 下列的 是 一个 c 源 代号 例子 的使用 这 sector 擦掉 函数. 谈及 至 这
spansion 低 水平的 驱动器 用户’s 手册
(有 在 www.amd.com 和 www.fujitsu.com)
为 一般 信息 在 spansion flash 记忆 软件 开发 指导原则.
/* 例子: sector 擦掉 command */
*( (uint16 *)根基_地址 + 0x555 ) = 0x00aa; /* 写 unlock 循环 1 */
*( (uint16 *)根基_地址 + 0x2aa ) = 0x0055; /* 写 unlock 循环 2 */
*( (uint16 *)根基_地址 + 0x555 ) = 0x0080; /* 写 建制 command */
*( (uint16 *)根基_地址 + 0x555 ) = 0x00aa; /* 写 额外的 unlock 循环 1 */
*( (uint16 *)根基_地址 + 0x2aa ) = 0x0055; /* 写 额外的 unlock 循环 2 */
*( (uint16 *)sector_地址 ) = 0x0030; /* 写 sector 擦掉 command */
软件 功能 和 样本 代号
Ta bl e 7 . 1 4 . S e c t o r E r 一个 s e
(lld 函数 = lld_sectorerasecmd)
循环 描述 运作 字节 地址 文字 地址 数据
1 Unlock 写 根基 + aaah 根基 + 555h 00AAh
2 Unlock 写 根基 + 554h 根基 + 2aah 0055h
3 建制 command 写 根基 + aaah 根基 + 555h 0080h
4 Unlock 写 根基 + aaah 根基 + 555h 00AAh
5 Unlock 写 根基 + 554h 根基 + 2aah 0055h
6 sector 擦掉 command 写 秒tor 地址 sector 地址 0030h
unlimited 额外的 sectors 将 是 选择 为 擦掉; command(s) 必须 是 写 在里面 t
SEA
.