用 MSVC2017 编译 XFEL 项目
-
本站下载: xfel_msvc2017_project_20210729.7z ( 2021-07-29 更新,带git仓库, xboot说支持F133 DDR2 初始化, 我还未测试.)
可执行文件下载: xfel.exe
-
测试 F133 DDR, 完全OK.
-
XFEL已支持spi nand flash烧写
xfel工具很早就支持了spi nor flash的读写,但spi nand flash的支持一直没提上日程,考虑到F133,D1s的玩家越来越多,这个spi nand flash的支持就迫在眉睫了。经过几天的开发设计,spi nand flash的支持基本完成了。下面是支持的spi nand芯片列表,已经算是尽我所能,找到最全的芯片列表了。当然现在仅测试过MX35LF2GE4AD这颗,其他芯片的验证在遇到具体问题后,再进行调试了。
/* Gigadevice */ { "GD5F1GQ4UAWxx", 0xc810, 2048, 64, 64, 1024, 1, 1 }, { "GD5F1GQ4UExIG", 0xc8d1, 2048, 128, 64, 1024, 1, 1 }, { "GD5F1GQ4UExxH", 0xc8d9, 2048, 64, 64, 1024, 1, 1 }, { "GD5F1GQ4xAYIG", 0xc8f1, 2048, 64, 64, 1024, 1, 1 }, { "GD5F2GQ4UExIG", 0xc8d2, 2048, 128, 64, 2048, 1, 1 }, { "GD5F2GQ5UExxH", 0xc832, 2048, 64, 64, 2048, 1, 1 }, { "GD5F2GQ4xAYIG", 0xc8f2, 2048, 64, 64, 2048, 1, 1 }, { "GD5F4GQ4UBxIG", 0xc8d4, 4096, 256, 64, 2048, 1, 1 }, { "GD5F4GQ4xAYIG", 0xc8f4, 2048, 64, 64, 4096, 1, 1 }, { "GD5F2GQ5UExxG", 0xc852, 2048, 128, 64, 2048, 1, 1 }, { "GD5F4GQ4UCxIG", 0xc8b4, 4096, 256, 64, 2048, 1, 1 }, /* Macronix */ { "MX35LF1GE4AB", 0xc212, 2048, 64, 64, 1024, 1, 1 }, { "MX35LF1G24AD", 0xc214, 2048, 128, 64, 1024, 1, 1 }, { "MX31LF1GE4BC", 0xc21e, 2048, 64, 64, 1024, 1, 1 }, { "MX35LF2GE4AB", 0xc222, 2048, 64, 64, 2048, 1, 1 }, { "MX35LF2G24AD", 0xc224, 2048, 128, 64, 2048, 1, 1 }, { "MX35LF2GE4AD", 0xc226, 2048, 128, 64, 2048, 1, 1 }, { "MX35LF2G14AC", 0xc220, 2048, 64, 64, 2048, 1, 1 }, { "MX35LF4G24AD", 0xc235, 4096, 256, 64, 2048, 1, 1 }, { "MX35LF4GE4AD", 0xc237, 4096, 256, 64, 2048, 1, 1 }, /* Micron */ { "MT29F1G01AAADD", 0x2c12, 2048, 64, 64, 1024, 1, 1 }, { "MT29F1G01ABAFD", 0x2c14, 2048, 128, 64, 1024, 1, 1 }, { "MT29F2G01AAAED", 0x2c9f, 2048, 64, 64, 2048, 2, 1 }, { "MT29F2G01ABAGD", 0x2c24, 2048, 128, 64, 2048, 2, 1 }, { "MT29F4G01AAADD", 0x2c32, 2048, 64, 64, 4096, 2, 1 }, { "MT29F4G01ABAFD", 0x2c34, 4096, 256, 64, 2048, 1, 1 }, { "MT29F4G01ADAGD", 0x2c36, 2048, 128, 64, 2048, 2, 2 }, { "MT29F8G01ADAFD", 0x2c46, 4096, 256, 64, 2048, 1, 2 }, /* Toshiba */ { "TC58CVG0S3HRAIG", 0x98c2, 2048, 128, 64, 1024, 1, 1 }, { "TC58CVG1S3HRAIG", 0x98cb, 2048, 128, 64, 2048, 1, 1 }, { "TC58CVG2S0HRAIG", 0x98cd, 4096, 256, 64, 2048, 1, 1 }, { "TC58CVG0S3HRAIJ", 0x98e2, 2048, 128, 64, 1024, 1, 1 }, { "TC58CVG1S3HRAIJ", 0x98eb, 2048, 128, 64, 2048, 1, 1 }, { "TC58CVG2S0HRAIJ", 0x98ed, 4096, 256, 64, 2048, 1, 1 }, { "TH58CVG3S0HRAIJ", 0x98e4, 4096, 256, 64, 4096, 1, 1 }, /* Esmt */ { "F50L512M41A", 0xc820, 2048, 64, 64, 512, 1, 1 }, { "F50L1G41A", 0xc821, 2048, 64, 64, 1024, 1, 1 }, { "F50L1G41LB", 0xc801, 2048, 64, 64, 1024, 1, 1 }, { "F50L2G41LB", 0xc80a, 2048, 64, 64, 1024, 1, 2 }, /* Fison */ { "CS11G0T0A0AA", 0x6b00, 2048, 128, 64, 1024, 1, 1 }, { "CS11G0G0A0AA", 0x6b10, 2048, 128, 64, 1024, 1, 1 }, { "CS11G0S0A0AA", 0x6b20, 2048, 64, 64, 1024, 1, 1 }, { "CS11G1T0A0AA", 0x6b01, 2048, 128, 64, 2048, 1, 1 }, { "CS11G1S0A0AA", 0x6b21, 2048, 64, 64, 2048, 1, 1 }, { "CS11G2T0A0AA", 0x6b02, 2048, 128, 64, 4096, 1, 1 }, { "CS11G2S0A0AA", 0x6b22, 2048, 64, 64, 4096, 1, 1 }, /* Etron */ { "EM73B044VCA", 0xd501, 2048, 64, 64, 512, 1, 1 }, { "EM73C044SNB", 0xd511, 2048, 120, 64, 1024, 1, 1 }, { "EM73C044SNF", 0xd509, 2048, 128, 64, 1024, 1, 1 }, { "EM73C044VCA", 0xd518, 2048, 64, 64, 1024, 1, 1 }, { "EM73C044SNA", 0xd519, 2048, 64, 128, 512, 1, 1 }, { "EM73C044VCD", 0xd51c, 2048, 64, 64, 1024, 1, 1 }, { "EM73C044SND", 0xd51d, 2048, 64, 64, 1024, 1, 1 }, { "EM73D044SND", 0xd51e, 2048, 64, 64, 2048, 1, 1 }, { "EM73C044VCC", 0xd522, 2048, 64, 64, 1024, 1, 1 }, { "EM73C044VCF", 0xd525, 2048, 64, 64, 1024, 1, 1 }, { "EM73C044SNC", 0xd531, 2048, 128, 64, 1024, 1, 1 }, { "EM73D044SNC", 0xd50a, 2048, 120, 64, 2048, 1, 1 }, { "EM73D044SNA", 0xd512, 2048, 128, 64, 2048, 1, 1 }, { "EM73D044SNF", 0xd510, 2048, 128, 64, 2048, 1, 1 }, { "EM73D044VCA", 0xd513, 2048, 128, 64, 2048, 1, 1 }, { "EM73D044VCB", 0xd514, 2048, 64, 64, 2048, 1, 1 }, { "EM73D044VCD", 0xd517, 2048, 128, 64, 2048, 1, 1 }, { "EM73D044VCH", 0xd51b, 2048, 64, 64, 2048, 1, 1 }, { "EM73D044SND", 0xd51d, 2048, 64, 64, 2048, 1, 1 }, { "EM73D044VCG", 0xd51f, 2048, 64, 64, 2048, 1, 1 }, { "EM73D044VCE", 0xd520, 2048, 64, 64, 2048, 1, 1 }, { "EM73D044VCL", 0xd52e, 2048, 128, 64, 2048, 1, 1 }, { "EM73D044SNB", 0xd532, 2048, 128, 64, 2048, 1, 1 }, { "EM73E044SNA", 0xd503, 4096, 256, 64, 2048, 1, 1 }, { "EM73E044SND", 0xd50b, 4096, 240, 64, 2048, 1, 1 }, { "EM73E044SNB", 0xd523, 4096, 256, 64, 2048, 1, 1 }, { "EM73E044VCA", 0xd52c, 4096, 256, 64, 2048, 1, 1 }, { "EM73E044VCB", 0xd52f, 2048, 128, 64, 4096, 1, 1 }, { "EM73F044SNA", 0xd524, 4096, 256, 64, 4096, 1, 1 }, { "EM73F044VCA", 0xd52d, 4096, 256, 64, 4096, 1, 1 }, { "EM73E044SNE", 0xd50e, 4096, 256, 64, 4096, 1, 1 }, { "EM73C044SNG", 0xd50c, 2048, 120, 64, 1024, 1, 1 }, { "EM73D044VCN", 0xd50f, 2048, 64, 64, 2048, 1, 1 }, /* Elnec */ { "FM35Q1GA", 0xe571, 2048, 64, 64, 1024, 1, 1 }, /* Paragon */ { "PN26G01A", 0xa1e1, 2048, 128, 64, 1024, 1, 1 }, { "PN26G02A", 0xa1e2, 2048, 128, 64, 2048, 1, 1 }, /* Ato */ { "ATO25D1GA", 0x9b12, 2048, 64, 64, 1024, 1, 1 }, /* Heyang */ { "HYF1GQ4U", 0xc951, 2048, 128, 64, 1024, 1, 1 }, { "HYF2GQ4U", 0xc952, 2048, 128, 64, 2048, 1, 1 },
-
带git仓库的MSVC2017工程源码下载:
xfel_msvc2017_project_20211104_by_whycan.7z编译好的可执行文件下载,不依赖任何第三方库:xfel_20211104_whycan.exe
-
带git仓库的MSVC2017工程源码下载:xfel_msvc2017_project_20220308_whycan.7z
-
晕哥v5,我还想自己加工程现在可以直接用了
-
@whycan 在 用 MSVC2017 编译 XFEL 项目 中说:
带git仓库的MSVC2017工程源码下载:xfel_msvc2017_project_20220308_whycan.7z
用vs2017编译这个日期的xfel工程后,在Debug文件夹中生成的xfel.exe文件,不能用来烧录程序,而原来Release文件夹中的xfel.exe文件却可以用来烧录,这是为什么呢?
-
@marchand
试一试 xfel spinand 命令看有没有检测到 nand 芯片? -
@whycan
左边是用的是原来Release文件夹中的xfel.exe,右边用的是编译后生成的Debug文件夹中的xfel.exe -
@marchand
你编译成release试一试,再不行单步跟踪。 -
-
-
@whycan 请教一下晕哥,我这边现在可以检测到芯片,但是执行spinand就提示usb失败是什么原因呢?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号