需要确认注册邮箱后才能开通博客,立即确认我的邮箱
文章 搜索 高级搜索 ?3? ?3?
  • 滤波器new!
  • LED驱动 new!
  • 新能源 new!
  • PLL
  • PCIE协议
  • 可穿戴
  • LSI
  • FCI
文章 论坛 博客 小组 研讨会
EDN电子技术论坛>博客 >liangziusb博客 >Programming the Serial EEPROMs on the FX2 Developm

liangziusb的博客——良子USB的Blog

博主:liangziusb???? ???? ????
介绍: 欢迎来到良子电子的小屋!
致力于USB的学习与开发,将要推出基于USB接口的数据采集卡、逻辑分析仪等产品,欢迎志同道合的朋友一起来做!

文章(193)???? 访问(401629)???? 评论(185)???? 投票(64)???? 订阅本博??

博文列表查看方式: ???

Programming the Serial EEPROMs on the FX2 Developm
发布时间:2010-11-10 21:07:05
技术类别:接口电路
需要确认注册邮箱后才能下载,立即确认我的邮箱

Question: How do I program the serial EEPROMs on the FX2 development kit board?

Response:

Programming the Large Serial EEPROM

To program the large serial EEPROM on the CY3681 FX2 Development Kit board, please use the following sequence (Refer to the "FX2 Getting Started.pdf" file, included in the kit software, section 5.4 for switch context). These steps will allow you to recover from a corrupt EEPROM and successfully program a new EEPROM image every time.

1) Unplug the USB cable from the dev board
2) Set Switch2 to Off (Disable EEPROM boot)
3) Set Switch1 to Large (Select the large EEPROM)
4) Connect the USB cable to the development board
5) At this point you should see the development board enumerate as "Cypress EZ-USB FX2 (68613) - EEPROM Missing" under Windows Device Manager
6) Set Switch2 to On (Enable EEPROM boot)
7) Open the EZ-USB Control Panel, ensuring that the Target drop-down select field is "FX2"
8) By clicking on the "Download" button, navigate your way to the Vend_Ax directory and download Vend_Ax.hex
9) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA9 (The 0xA9 vendor request is used to access large EEPROMs that have a dual-byte addressing scheme)
Value=0x0000
Index=0xBEEF
Length=16
Dir=1 IN

10) Press the "Vend Req" button to verify that the 16 bytes displayed in the data window are NOT CD CD CD .. CD. If the data is all CD, then it cannot read the EEPROM (Not a large type such as the 24LC64). Otherwise, continue.

11) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA9
Value=0x0000
Index=0xBEEF
Length=1
Dir=0 OUT
Hex Bytes= 00

12) Press the "Vend Req" button to blast the first byte in the EEPROM.

13) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA9
Value=0x0000
Index=0xBEEF
Length=1
Dir=1 IN

14) Press "Vend Req" to verify that the first byte in the EEPROM is 0x00
15) Unplug the USB cable from the development board
16) Connect the USB cable to the development board
17) At this point you should still see the development board enumerate as "Cypress EZ-USB FX2 (68613) - EEPROM Missing" under Windows Device Manager because the first byte in the EEPROM is 0x00 (an invalid signature byte).
18) To program the EEPROM image, on the EZ-USB Control Panel, press the "EEPROM" button and navigate to and select filename.iic, where filename is the name you have given to your EEPROM image
19) Wait for the EEPROM file open dialog to completely disappear (1-2 minutes)

20) To verify the EEPROM load, repeat steps 9) and 10) above to read the EEPROM and verify that the first eight bytes contain a sequence starting with 0xC2 and followed in reverse endian by either our default VID/PID/DID, or your own if you used the VID and PID parameters in the hex2bix utility when you created your .iic file.

21) If the EEPROM was programmed correctly, then plug out the board, set switch2 to On and switch1 to Large and your board should load and enumerate with your firmware.

The steps for programming the Large EEPROM on the CY4611 FX2 ATA reference design board are the same as above, except that you should ignore the Switch1 instructions and substitute the JP1 jumper for Switch2.


Programming the Small Serial EEPROM

To program the small serial EEPROM on the CY3681 FX2 Development Kit board, please use the following sequence (Refer to the "FX2 Getting Started.pdf" file, included in the kit software, section 5.4 for switch context). These steps will allow you to recover from a corrupt EEPROM and successfully hand program a small EEPROM every time.

1) Unplug the USB cable from the dev board
2) Set Switch2 to Off (Disable EEPROM boot)
3) Set Switch1 to Small (Select the small EEPROM)
4) Connect the USB cable to the development board
5) At this point you should see the development board enumerate as "Cypress EZ-USB FX2 (68613) - EEPROM Missing" under Windows Device Manager
6) Set Switch2 to On (enable EEPROM boot)
7) Open the EZ-USB Control Panel, ensuring that the Target drop-down select field is "FX2"
8) By clicking on the "Download" button, navigate your way to the Vend_Ax directory and download Vend_Ax.hex
9) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA2 (the 0xA2 vendor request is used to access small EEPROMs that have a single-byte addressing scheme)
Value=0x0000
Index=0xBEEF
Length=16
Dir=1 IN

10) Press the "Vend Req" button to verify that the 16 bytes displayed in the data window are NOT CD CD CD .. CD. If the data is all CD, then it cannot read the EEPROM (not a small type such as the 24LC00). Otherwise, continue.

11) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA2
Value=0x0000
Index=0xBEEF
Length=1
Dir=0 OUT
Hex Bytes= 00

12) Press the "Vend Req" button to blast the first byte in the EEPROM.

13) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA2
Value=0x0000
Index=0xBEEF
Length=1
Dir=1 IN

14) Press "Vend Req" to verify that the first byte in the EEPROM is 0x00
15) Unplug the USB cable from the dev board
16) Connect the USB cable to the dev board
17) At this point you should still see the dev board enumerate as "Cypress EZ-USB FX2 (68613) - EEPROM Missing" under Windows Device Manager because the first byte in the EEPROM is 0x00 (An invalid signature byte).
18) On the EZ-USB Control Panel's "Vend Req" Toolbar, use the following to fill in the required fields:

Req=0xA2
Value=0x0000
Index=0xBEEF
Length=8
Dir=0 OUT

19) Use the Hex Bytes field to enter the sequence C0 followed by VID(LSB), VID(MSB), PID(LSB), PID(MSB), DID(LSB), DID(MSB), and configuration byte that you want. If you use the sequence C0 B4 04 81 00 00 00 00, then the board will automatically enumerate and load the default Keil Monitor. This is useful for debugging.

20) To verify the EEPROM load, repeat steps 9) and 10) above to read the EEPROM and verify that the first eight bytes contain a sequence as mentioned in step 19) above.

21) If the EEPROM was programmed correctly, then plug out the board, set switch2 to On and switch1 to Small, plug in the board, and your board should load and enumerate as a "Cypress EZ-USB FX2 Development Board". The green BKPT/Monitor light should also be lit, indicating a successful download of the default Keil monitor program.

标签:??
分享到:? 新浪微博 ?? 微信 ??


打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮

1.扫描左侧二维码
2.点击右上角的分享按钮
3.选择分享给朋友
qq空间 ?? 腾讯微博 ?? 人人网 ?? 百度搜藏 ??
??????有[ 0 ]名读者喜欢此文
阅读(2204)?? 评论(0)?? 收藏??I?? 打印??I?? 推荐到小组??I?? 转发到我的博客 (0)
对不起,您还没有登录,请先登录注册
上一篇:CY7C68013A开发板编程之一_dev_io(数码管)

下一篇:CY7C68013A开发板上的监控程序

最近到访博主
小忧 yanchengling yunxixi strengthen
牛人有话说 - Programming the Serial EEPROMs on the FX2 Developm
美国的游客 (您将以游客身份发表,请登录 | ?注册)
?
你还可以输入1000
验证码:
分享: 新浪微博?? qq空间?? qq微博?? 人人网?? 百度搜藏??
?
有 [ 0 ] 名读者发表评论 - Programming the Serial EEPROMs on the FX2 Developm
转发到我的博客
评论?@良子USB的Blog?的“Programming the Serial EEPROMs on the FX2 Developm”
Question:HowdoIprogramtheserialEEPROMsontheFX2developmentkitboard?Response:ProgrammingtheLargeSerialEEPROMToprogramthelargeserialEEPROMontheCY3681FX2D...
你还可以输入30000
同时评论给?liangziusb
????
快速回复
?
你还可以输入1000
????
引用回复
引用评论?
?
你还可以输入1000
????
博主资料

专注USB2.0和USB3.0的项目开发。

个人文章分类
文章存档
最新评论
阅读排行
liangziusb的好友
liangziusb的小组???? 加入小组
良子USB3.0大世界(CYUSB3014)
成员123名
创建者:liangziusb USB专区 成员11372名
创建者:computer00 STM32爱好者之家 成员6661名
创建者:yuliang0321 成员4176名
创建者:Andymio usb cy68013 成员992名
创建者:ares007 电子制作交流区 成员4841名
创建者:xieweichao STM32 成员213名
创建者:greenapple 驱动程序开发 成员456名
创建者:computer00
展开
最新网络博文
TQ210 WINCE 大分辨率不启动的问题
决战在即:量子点与OLED谁主沉浮?
基于HDRS平台的太阳能发电设备远程故...
例说FPGA连载4:FPGA语言与厂商介绍
加速创新,努比亚突破摩尔定律
? 更多博文>>
返回博客首页
有问题请反馈