用下面的命令烧写
mono ./sfh_OMAP-L138.exe -p /dev/ttyUSB0 -flashType NAND -flash ubl/ubl_OMAPL138_NAND.bin /work/omapl138/u-boot.nand.bin -v
打印如下,一直卡在那里,请问可能是哪里出了问题?
我们用的是根据第三方的评估板做了更改后的设计,换了flash芯片和内存,在原评估板上是可以正常烧写的。
—————————————————–
TI Serial Flasher Host Program for OMAP-L138
(C) 2012, Texas Instruments, Inc.
Ver. 1.67
—————————————————–
[TYPE] UBL and application image
[UBL] ubl/ubl_OMAPL138_NAND.bin
[APP IMAGE] /work/omapl138/u-boot.nand.bin
[TARGET] OMAPL138
[DEVICE] NAND
[NAND Block] 1
Attempting to connect to device /dev/ttyUSB0…
Press any key to end this program at any time.
(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME… (power on or reset target now)
(AIS Parse): BOOTME received!
(AIS Parse): Performing Start-Word Sync…
(AIS Parse): Performing Ping Opcode Sync…
(AIS Parse): Processing command 0: 0x58535901.
(AIS Parse): Performing Opcode Sync…
(AIS Parse): Loading section…
(AIS Parse): Loaded 14100-Byte section to address 0x80000000.
(AIS Parse): Processing command 1: 0x58535901.
(AIS Parse): Performing Opcode Sync…
(AIS Parse): Loading section…
(AIS Parse): Loaded 1352-Byte section to address 0x80003714.
(AIS Parse): Processing command 2: 0x58535906.
(AIS Parse): Performing Opcode Sync…
(AIS Parse): Performing jump and close…
(AIS Parse): AIS complete. Jump to address 0x80000000.
(AIS Parse): Waiting for DONE…
(AIS Parse): Boot completed successfully.
Waiting for SFT on the OMAP-L138…
Target: BOOTUBL
Target: DONE
Flashing UBL ubl/ubl_OMAPL138_NAND.bin (13040 bytes) at 0x00000000
Target: SENDIMG
Target: BEGIN
100% [ ████████████████████████████████████████████████████████████ ]
Image data transmitted over UART.
Tony Tang:
如果你有仿真器,用仿真器烧一下试试,看问题是出在NAND还是DDR。我觉得可能是NAND的问题。看一下你的NAND是否在bootloader application notes的支持列表里,而且还要看是否是Non-CE Don't Care NAND Flash.
Huijun Luo:
回复 Tony Tang:
没有仿真器,下面是具体的改动
1.nand使用K9F1208U0C,64MB,开发板使用K9K8G08U0A,1GB,都是SAMSUN的,连接方式相同。
2.SDRAM使用EM68B16CWPA,64MB,无BA2信号,开发板使用MT47H64M16HR,128MB,区别在于容量和BA2信号上面,而且UDQS和LDQS和开发板上面的接法相反。UDM和LDM和开发板上面的接法相反。其余相同。
试了下用原开发板上的flash替换新的flash,还是不行。
Tony Tang:
回复 Huijun Luo:
1. DDR的参数配置需要更改,可以用附件工具,
2. 这个serial flash 工具要重新编译,参考下面链接:
processors.wiki.ti.com/…/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138
Huijun Luo:
回复 Tony Tang:
修改了以后出现了下面的打印,data transmitted以后能看到DONE的提示了,但之后一直提示write verify failed,请问这可能是什么问题呢?
Waiting for SFT on the OMAP-L138…
Target: BOOTUBL
Target: DONE
Flashing UBL ubl/ubl_OMAPL138_NAND.bin (13036 bytes) at 0x00000000
Target: SENDIMG
Target: BEGIN
100% [ ████████████████████████████████████████████████████████████ ]
Image data transmitted over UART.
Target: DONE
0% [ ———————————————————— ]
Programming UBL into flash…
Target: CurrBlockNum =0x00000001
Target: Writing image data to Block 0x00000001, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000002, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000003, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000004, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000005, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000006, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000007, Page 0x00000000
Target: Write verify failed, skipping block!
Target: Writing image data to Block 0x00000008, Page 0x00000000
yuepeng zhang:
回复 Huijun Luo:
您好,请问您的问题最后解决了么?我也遇到一样的问题了,但是不知道怎么解决。请指教
haorong huang:
你好,我也遇到和你一样的问题,但我是没改过的。是新板。C6748 LCDK,是单DSP,没有ARM.请问你是怎么解决的?
yuepeng zhang:
回复 haorong huang:
你好。我重新设计的板子中,误将FLASH的写保护连到OMAPL138上了。FLASH的数据手册上说不要用其他芯片控制其WP#引脚,如果不需要写保护,外部上拉即可;如需要写保护,将WP#引脚外部下拉。我将FLASH连到OMAPL138上的WP#线割开,然后上拉电阻,就解决了。
hai wan:
回复 Tony Tang:
我通过sfh_OMAP-L138.exe erase 成功了 但是烧写NAND的时候提示 write failed,skipping block
Tony Tang:
回复 hai wan:
是在自己的板子?确认所选NAND是否在支持的范围内。参考一下我的总结:http://www.ti.com.cn/general/cn/docs/lit/getliterature.tsp?baseLiteratureNumber=ZHCA596&fileType=pdf
NAND启动部分。