想从NANDFLASH里启动C6748:
1、代码怎么生成?是用AIX吗?设置PLL后将.out文件转换成bin?
2、能否提供个NANDFLASH的烧写例程?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
想从NANDFLASH里启动C6748:
1、代码怎么生成?是用AIX吗?设置PLL后将.out文件转换成bin?
2、能否提供个NANDFLASH的烧写例程?
谢谢!
Tony ,你好:
我用网上找到的烧写例程把AISGEN生成的bin文件烧写进去了,而且重新读出来,大概看了下,值也是对的,bootmode设置也设置过了,但去掉仿真器加电还是boot不起来,请各位专家帮忙分析一下,谢谢了,相关的图片和说明,我放在在下面的链接了。
你好,我被6748的Boot问题折腾好久,我想问下nandflash的烧写程序是在138 的那个例程上修改的么,主要做了哪些改动
如果您还记得的话帮我指点指点啊 非常感谢
在serials flash tools的目录OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NANDWriter下有有NAND flash writer的CCS工程,也要以直接用串口工具,下面链接为串口工具的使用说明(中文版)http://www.ti.com.cn/cn/lit/an/zhca481/zhca481.pdf
烧写程序是我用138的例程改的,其实也没有改啥,就是把几个主要的文件放在一个文件夹,然后建立新的工程,把文件加进来,编译一下,挂仿真器烧运行,会出现提示字样,问你是否擦除程序,输入“y”,回车,然后让你指定烧写文件放的地方,输入要烧写的bin文件的路径,回车,开始烧写。
我邮箱whseu@126.com,不行我可以把我的程序发给你。
Tony Tang你好
我现在的问题如下,首先我按照官方的《Using the TMS320C6748/C6746/C6742 Bootloader》手册,下载了AISGEN软件,连接仿真器测试好一个不用gel的GPIO闪灯程序,然后根据说明将.OUT文件用AIS(配置是默认的我只选择了器件和时钟)转化为.H文件(这里可选.BIN和.OUT文件),然后用例程中的nand flash程序烧写到nand flash的第一个BANK的第0page,读回数据和写入的是完全相同的,BOOT管脚配置为00001110,然后重新加电或者复位启动不成功,用示波器测nand flash 有DSP读数的波形,就是启动不成功,我看了些资料也没能够解决,想请你帮忙指导,谢谢!
我的烧写程序是下面附件
hong wang1 说:烧写程序是我用138的例程改的,其实也没有改啥,就是把几个主要的文件放在一个文件夹,然后建立新的工程,把文件加进来,编译一下,挂仿真器烧运行,会出现提示字样,问你是否擦除程序,输入“y”,回车,然后让你指定烧写文件放的地方,输入要烧写的bin文件的路径,回车,开始烧写。
我邮箱whseu@126.com,不行我可以把我的程序发给你。
hong wang1 你好,我的芯片和room和你的完全相同,现在做的也是8位nand flash启动,试过挺常时间,也想了好多办法就是起不来,您能把您的启动程序给我拷一份吗,非常感谢!我的邮箱nzgmail@163.com
alvin Brain 说:转化为.H文件
转成.H文件是什么意思?
是笔误,还是真的这到Block 0了?
For booting fro烧写到nand flash的第一个BANK的第0page
m NAND Flash, the AIS should be written to NAND block 1 (NAND block 0 is not used by
bootloader) in a sequential manner, skipping (and marking) any bad blocks.
Tony Tang 说:转化为.H文件转成.H文件是什么意思?
是笔误,还是真的这到Block 0了?
For booting fro烧写到nand flash的第一个BANK的第0page
m NAND Flash, the AIS should be written to NAND block 1 (NAND block 0 is not used by
bootloader) in a sequential manner, skipping (and marking) any bad blocks.[/quote]
你好,谢谢您的解答,是写到BANK1的PAGE0了,我看到网上有别的工程师介绍可以将.OUT文件转换为.H文件烧写,我看AIS的转换选项里也有转换头文件的选项,关键是.H文件转换后是一个数组,便于烧写,因为我用了您推荐的omap138的nand烧写例程,但是运行跑飞,又大量的用到库文件,我不知道怎么修改,就自己用程序一段一段的把.H文件烧进去的,我读回检查和烧写时完全一样的。我AIS配置是这样的,基本没有改变默认,如下图,还有aisgen->flsah选项卡下面的CS3 setup的0x3ffffffc需要改吗?
\alvin Brain 说:便于烧写,因为我用了您推荐的omap138的nand烧写例程,但是运行跑飞,又大量的用到库文件,我不知道怎么修改,
为什么要修改?应该直接可以编译,运行,程序为什么会跑飞?DDR配置不对?请检查。
alvin Brain 说:我AIS配置是这样的,基本没有改变默认,如下图,还有aisgen->flsah选项卡下面的CS3 setup的0x3ffffffc需要改吗?
这个程序是运行在哪个内存段?另外,不是说把后缀名改成.h就是头文件。
alvin Brain 说:还有aisgen->flsah选项卡下面的CS3 setup的0x3ffffffc需要改吗?
这个没关系,只是影响NAND接口速度。
tony:
小弟刚入门,想问问实现flash烧写是不是还得先配置CE2CFG寄存器啊,这个怎么配置?
Dongdong,
NAND的操作可以参考下面的例程里的NANDwriter工程:
processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138
CE2CFG只是配置时序的,可以利用下面的工具根据NAND手册的参数计算得出:
http://processors.wiki.ti.com/index.php/Programming_Asynchronous_EMIF_on_OMAP-L13x_/_C674x_/_AM1x
你好,我也遇到了相同的问题,写nandflash的程序是我自己从starterware的nandflash驱动移植出来修改的,经过我的测试可以正确的读写我开发板上的nandflash,我自己写了一个led灯闪烁的程序,在CCS上通过仿真器烧写运行可以正常工作,但是转换成ais格式后烧写到nandflash不能正常启动。我的nandflash是8位的,使用的片选是emif cs3,程序也正确的烧写到了nandflash block1 page0,启动模式设置为0x00001110。
请大家帮忙分析一下原因,感激不尽!
您好,我现在在使用C6748 AISgen for D800K008软件时在Load Configuration文件后在Flash页显示的是CS3 Setup:0x3FFFFFFC,我现在使用的板子Flash是链接的C6748的CS2管脚,请问我在下载程序时怎么才能给把它配置成CS2呢?原来开发板使用的是CS3,现在自己的板子使用的是CS2,求大侠帮忙!
打开软件后是显示的是CS2,但是只要选择了NandFlash后它就自动变成CS3了