-
AdvancedToolKit1.71_Source_STD下载
资源介绍
编译所需环境:AdvancedToolKit1.71_Source_STD/
1.Cygwin http://www.cygwin.com/
2.GNU gcc toolchain for cygwin http://www.gnuarm.com/bu-2.17_gcc-4.1.1-c-c++_nl-1.14.0_gi-6.5.exe
操作步骤:
1.安装AdvancedToolKit1.71_Source_STD,根据AdvancedToolKit1.71_Source_STD/FSL_ATK_ReferenceManual_Std.pdf P15页说明安装GCC toolchain,Cygwin。
2.添加新的nand flash类型
ATK1.71版本需要修改device_program/flash/nand_flash/src/nand_device_info.c,对于之前的版本需要修改device_program/flash/nand_flash/src/nand_ids.c
例如:要添加K9F1G08R0A型号的nand flash,
查阅nand flash 芯片手册得知:
厂商ID(man_id):0xec
设备ID(dev_id):0xa1
芯片大小(chip_size_in_bytes):128MB
每块页数(ppb):64
页大小(page_size):2KB
OOB区域大小(oob_size):64B
所也在nand_device_info.c中添加nand结构信息如下:
{
.end_of_table = false,
.man_id = 0xec,
.dev_id = 0xa1,
.cell_type = NAND_DEVICE_CELL_TECH_SLC,
.chip_size_in_bytes = 128LL*SZ_1M,
.ppb = 64,
.page_size = 2*SZ_1K,
.oob_size = 64,
.bbm_offset = 0,
.bbi_page_offset = 0,
.bus_width = 8,
.scan_pg_num = 1,
.model = "K9F1G08R0A",
},
3.编译
启动Cygwin,进入目录AdvancedToolKit1.71_Source_STD/device_program
根据AdvancedToolKit1.71_Source_STD/FSL_ATK_ReferenceManual_Std.pdf P16页说明操作