Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

赞,blog.dword1511.info无法评论,只有在这里评论了,附带一些文件下载地址 #44

Open
jiuweiljp opened this issue Aug 25, 2020 · 1 comment

Comments

@jiuweiljp
Copy link

jiuweiljp commented Aug 25, 2020

非常不错,用10多元钱的stm32做了一个一次成功。
测试环境win7_x64+VirtualBox(ubuntu 18.04_64),使用USB xHCI模式。
为什么用xHCI 因为我测试过在其它项目中usb使用xHCI 模式比EHCI的通讯速度快不少。
测试芯片winbond 25Q32FVSIG (4MBye),下面的结果是多次测试取的平均值:
读:6.255秒 657KByte/s ,擦除 45.69s ,写50.10s 81.74KByte/s
(以上测试用的20030331的固件).

1、在linux下的用的是flashrom1.2,自己静态编译的版本i386版本(我发现在ub 16.04下动态编译的版本在ub18.04下尽然不能用)就索性编译了一个i386的静态flashrom。下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/flashrom1.2_i386_static.tar.gz
同样stm32flash也编译了一个,下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/stm32flash_i386_static.tar.gz

2、windows 下也测试成功了,但是安装那个stm vcp费了点功夫,看了帖子
http://www.openedv.com/forum.php?mod=viewthread&tid=72803
才解决了stm vcp安装后驱动出现感叹号的问题。
下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/stm_vcp_usb缺少的文件.zip
stm_vcp1.4下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/stm_VCP_1.4.zip
stm_vcp1.5下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/stm_vcp_1.5_en.stsw-stm32102.zip
当然不会少了flashrom(别人编译的,版本1.1)下载地址:
http://lzdz.f3322.net:81/serprog-stm32vcp/flashrom_win_v1.1.zip
使用方法:
flashrom.exe -p serprog:dev=comX:115200,spispeed=36000000 -r nul
但是我不知道怎么在win7 下计算时间,谁有办法,望告知,谢谢

@jiuweiljp
Copy link
Author

jiuweiljp commented Aug 25, 2020

费了点功夫编译了libglib,libudev,libpci这几个库(忘了是哪个库在ubuntu18.04下库文件只有动态连接的.so文件,没有.a文件,只有自己编译了,有点费力),然后有了静态 x64版本的flashrom1.2,这个支持的接口就很多了,下载地址
http://lzdz.f3322.net:81/serprog-stm32vcp/flashrom1.2_x64_static.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant