这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » arm9 操作 flash 问题

共4条 1/1 1 跳转至

arm9 操作 flash 问题

菜鸟
2007-03-07 18:47:24     打赏

在uboot1.1中, at91rm9200 操作flash 的 flash.c :
#define MEM_FLASH_ADDR1 (*(volatile u16 *)(CFG_FLASH_BASE + (0x00005555<<1)))
#define MEM_FLASH_ADDR2 (*(volatile u16 *)(CFG_FLASH_BASE + (0x00002AAA<<1)))

#define IDENT_FLASH_ADDR1 (*(volatile u16 *)(CFG_FLASH_BASE + (0x0000555<<1)))
#define IDENT_FLASH_ADDR2 (*(volatile u16 *)(CFG_FLASH_BASE + (0x0000AAA<<1)))

IDENT_FLASH_ADDR 检查 flash ID ,MEM_FLASH_ADDR erase/write flash.
am29lv160db 的 datasheet 上的命令: 0x 555 /0x2aa

我是问题:

1) 什么时候addr 要<<1,为什么在一些烧写的例子是不用的?
(2) 什么时候 要用MEM_FLASH_ADDR 为什么它与datasheet 上的不一样?




关键词: 操作     flash     问题     FLASH    

菜鸟
2007-03-07 23:24:00     打赏
2楼

这与flash芯片与ARM总线的接法有关,不能死看datasheet。


菜鸟
2007-03-08 16:41:00     打赏
3楼

能说一下清楚吧

对于 <<1,我还能理解一下,可能flash 是16bits的原因,但我用JTAG erase/write flash 时,是不用<<1,但这样也能正常操作的.

所以不懂的地方在这里.


菜鸟
2007-03-11 06:47:00     打赏
4楼

http://www.yuchengic.com/zd.asp?page1=1&id=

http://www.yuchengic.com/zd.asp?page1=2&id=

http://www.yuchengic.com/zd.asp?page1=3&id=

http://www.yuchengic.com/zd.asp?page1=4&id=

http://www.yuchengic.com/zd.asp?page1=5&id=

http://www.yuchengic.com/zd.asp?page1=5&id=

http://www.yuchengic.com/zd.asp?page1=6&id=

http://www.yuchengic.com/qy.asp

http://www.yuchengic.com/cx.asp?page1=1&id=104

http://www.yuchengic.com/cx.asp?page1=2&id=104

http://www.yuchengic.com/cx.asp?page1=3&id=104

http://www.yuchengic.com/cx.asp?page1=1&id=105

http://www.yuchengic.com/cx.asp?page1=2&id=105

http://www.yuchengic.com/cx.asp?page1=3&id=105

http://www.yuchengic.com/cx.asp?page1=4&id=105

http://www.yuchengic.com/cx.asp?page1=5&id=105

http://www.yuchengic.com/kci2.asp

http://www.yuchengic.com/kci3.asp

http://www.yuchengic.com/kci4.asp

http://www.yuchengic.com/kci5.asp

http://www.yuchengic.com/kci6.asp

http://www.yuchengic.com/kci7.asp

http://www.yuchengic.com/kci8.asp

http://www.yuchengic.com/kci9.asp

http://www.yuchengic.com/kci10.asp

http://www.yuchengic.com/cx.asp?page1=2&id=108

http://www.yuchengic.com/cx.asp?page1=1&id=112

http://www.yuchengic.com/cx.asp?page1=2&id=112

http://www.yuchengic.com/cx.asp?page1=3&id=112

http://www.yuchengic.com/cx.asp?page1=4&id=112

http://www.yuchengic.com/cx.asp?page1=1&id=113

http://www.yuchengic.com/cx.asp?page1=2&id=113

http://www.yuchengic.com/cx.asp?page1=3&id=113

http://www.yuchengic.com/cx.asp?page1=1&id=114

http://www.yuchengic.com/cx.asp?page1=1&id=116

http://www.yuchengic.com/cx.asp?page1=2&id=116

http://www.yuchengic.com/cp1.asp?page1=1&id=26

http://www.yuchengic.com/cp1.asp?page1=2&id=26

http://www.yuchengic.com/cp1.asp?page1=3&id=26

http://www.yuchengic.com/cp1.asp?page1=1&id=27

http://www.yuchengic.com/cp1.asp?page1=2&id=27

http://www.yuchengic.com/cp1.asp?page1=3&id=27

http://www.yuchengic.com/cp1.asp?page1=4&id=27

http://www.yuchengic.com/cp1.asp?page1=5&id=27

http://www.yuchengic.com/cp1.asp?page1=6&id=27

http://www.yuchengic.com/cp1.asp?page1=1&id=28

http://www.yuchengic.com/cp1.asp?page1=2&id=28

http://www.yuchengic.com/cp1.asp?page1=3&id=28

http://www.yuchengic.com/cp1.asp?page1=4&id=28

http://www.yuchengic.com/cp1.asp?page1=5&id=28

http://www.yuchengic.com/cp1.asp?page1=1&id=30

http://www.yuchengic.com/cp1.asp?page1=2&id=30

http://www.yuchengic.com/cp1.asp?page1=1&id=31

http://www.yuchengic.com/cp1.asp?page1=1&id=32

http://www.yuchengic.com/cp1.asp?page1=1&id=33

http://www.yuchengic.com/cp1.asp?id=44

http://www.yuchengic.com/cp1.asp?id=34

http://www.yuchengic.com/cp1.asp?id=39

http://www.yuchengic.com/cp1.asp?page1=1&id=29

http://www.yuchengic.com/cp1.asp?page1=2&id=29

http://www.yuchengic.com/cp1.asp?page1=3&id=29

http://www.yuchengic.com/cp1.asp?page1=4&id=29

http://www.yuchengic.com/cp1.asp?page1=5&id=29

http://www.yuchengic.com/cp1.asp?page1=6&id=29

http://www.yuchengic.com/cp1.asp?page1=7&id=29

http://www.yuchengic.com/cp1.asp?page1=8&id=29

http://www.yuchengic.com/cp1.asp?page1=9&id=29

http://www.yuchengic.com/dl1.asp?id=36

http://www.yuchengic.com/dl2.asp?id=98

http://www.yuchengic.com/dl2.asp?id=110

http://www.yuchengic.com/dl2.asp?id=111

http://www.yuchengic.com/dl2.asp?id=112

http://www.yuchengic.com/dl2.asp?id=114

http://www.yuchengic.com/dl2.asp?id=115

http://www.yuchengic.com/dl2.asp?id=116

http://www.yuchengic.com/dl2.asp?id=117

http://www.yuchengic.com/dl1.asp?id=59

http://www.yuchengic.com/dl1.asp?page1=0&id=65

http://www.yuchengic.com/dl1.asp?page1=1&id=65

http://www.yuchengic.com/xha2.asp

http://www.yuchengic.com/xha3.asp

http://www.yuchengic.com/xha4.asp

http://www.yuchengic.com/xha5.asp

http://www.yuchengic.com/xha6.asp

http://www.yuchengic.com/xha7.asp

http://www.yuchengic.com/xhb2.asp

http://www.yuchengic.com/xhb3.asp

http://www.yuchengic.com/xhb4.asp

http://www.yuchengic.com/xhb5.asp

http://www.yuchengic.com/xhb6.asp

http://www.yuchengic.com/xhb7.asp

http://www.yuchengic.com/xhb8.asp

http://www.yuchengic.com/xhb9.asp

http://www.yuchengic.com/xhb10.asp

http://www.yuchengic.com/xhb11.asp

http://www.yuchengic.com/xhb12.asp

http://www.yuchengic.com/xhb13.asp

http://www.yuchengic.com/xhb14.asp

http://www.yuchengic.com/xhb15.asp

http://www.yuchengic.com/xhb16.asp

http://www.yuchengic.com/xhb17.asp

http://www.yuchengic.com/xhb18.asp

http://www.yuchengic.com/xhb19.asp

http://www.yuchengic.com/xhb20.asp

http://www.yuchengic.com/xhb21.asp

http://www.yuchengic.com/xhb22.asp

http://www.yuchengic.com/xhb23.asp

http://www.yuchengic.com/xhb24.asp

http://www.yuchengic.com/xhb25.asp

http://www.yuchengic.com/xhb26.asp

http://www.yuchengic.com/xhb27.asp

http://www.yuchengic.com/xhb28.asp

http://www.yuchengic.com/xhb29.asp

http://www.yuchengic.com/xhb30.asp

http://www.yuchengic.com/xhb31.asp

http://www.yuchengic.com/xhb32.asp

http://www.yuchengic.com/xhb33.asp

http://www.yuchengic.com/xhb34.asp

http://www.yuchengic.com/xhb35.asp

http://www.yuchengic.com/xhb36.asp

http://www.yuchengic.com/xhb37.asp

http://www.yuchengic.com/xhb38.asp

http://www.yuchengic.com/xhb39.asp

http://www.yuchengic.com/xhb40.asp

http://www.yuchengic.com/xhb41.asp

http://www.yuchengic.com/xhb42.asp

http://www.yuchengic.com/xhb43.asp

http://www.yuchengic.com/xhb44.asp

http://www.yuchengic.com/xhb45.asp

http://www.yuchengic.com/xhb46.asp

http://www.yuchengic.com/xhb47.asp

http://www.yuchengic.com/xhb48.asp

http://www.yuchengic.com/xhb49.asp

http://www.yuchengic.com/xhb50.asp

http://www.yuchengic.com/xhb51.asp

http://www.yuchengic.com/xhb52.asp

http://www.yuchengic.com/xhb53.asp

http://www.yuchengic.com/xhb54.asp

http://www.yuchengic.com/xhb55.asp

http://www.yuchengic.com/xhb56.asp

http://www.yuchengic.com/xhb57.asp

http://www.yuchengic.com/xhb58.asp

http://www.yuchengic.com/xhb59.asp

http://www.yuchengic.com/xhb60.asp

http://www.yuchengic.com/xhb61.asp

http://www.yuchengic.com/xhb62.asp

http://www.yuchengic.com/xhb63.asp

http://www.yuchengic.com/xhb64.asp

http://www.yuchengic.com/xhb65.asp

http://www.yuchengic.com/xhb65.asp

http://www.yuchengic.com/xhc2.asp

http://www.yuchengic.com/xhc3.asp

http://www.yuchengic.com/xhc4.asp

http://www.yuchengic.com/xhc5.asp

http://www.yuchengic.com/xhc6.asp

http://www.yuchengic.com/xhc7.asp

http://www.yuchengic.com/xhc8.asp

http://www.yuchengic.com/xhc9.asp

http://www.yuchengic.com/xhc10.asp

http://www.yuchengic.com/xhc11.asp

http://www.yuchengic.com/xhc12.asp

http://www.yuchengic.com/xhc13.asp

http://www.yuchengic.com/xhc14.asp

http://www.yuchengic.com/xhc15.asp

http://www.yuchengic.com/xhc15.asp


共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]