Error: Couldn't write flash driver to target. Please make sure that the chip selects are properly configured

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Error: Couldn't write flash driver to target. Please make sure that the chip selects are properly configured

跳至解决方案
2,208 次查看
yusufalti333
Contributor IV

Hello community

With using latest Code Warrior, I am trying to flash a new RCW and U-boot into T1042 based new custom board. When I set chipselects to bring up board with hardcoded-rcw, and when I try to flash .bin files to NOR flash, I got this error.

Console log from Code Warrior:

fl::target -lc "uboot-core00_SRAM_T1042_Download"
fl::target -b 0x0 0x40000
fl::target -v on -l off
cmdwin::fl::device -d "JS28F00AM29EWL" -o "64Mx16x1" -a 0xe8000000 0xefffffff
cmdwin::fl::image -f "C:\\Users\\yusuf\\Desktop\\tftpboot\\u-boot-nor-2018.09+fslgit-r0.bin" -t "Binary/Raw Format" -re off -oe on -o 0xeff40000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Performing target initialization ...
Error: Connect Failed.
CCS: Connection refused
[CCS last error: Connection refused ](CCSProtocolPlugin)
Error: Connect Failed.
fl::target -lc "uboot-core00_SRAM_T1042_Download"
fl::target -b 0x0 0x40000
fl::target -v on -l off
cmdwin::fl::device -d "JS28F00AM29EWL" -o "64Mx16x1" -a 0xe8000000 0xefffffff
cmdwin::fl::image -f "C:\\Users\\yusuf\\Desktop\\tftpboot\\u-boot-nor-2018.09+fslgit-r0.bin" -t "Binary/Raw Format" -re off -oe on -o 0xeff40000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Performing target initialization ...
fe0e0004 <m>0xde000000</m> ....
Downloading Flash Device Driver ...
Error: Couldn't write flash driver to target. Can not read target memory at location: 0x0000000000000000.Please make sure that the chip selects are properly configured.
The CWPP response code is: CCSProtocolPlugin : Error writing memory
[CCS last error: Scan timeout ].
Error: Couldn't write flash driver to target.Can not read target memory at location: 0x0000000000000000.
Please make sure that the chip selects are properly configured.
The CWPP response code is: CCSProtocolPlugin : Error writing memory
[CCS last error: Scan timeout ].

Any help about this situation ? What could be the reason. I can successfully flash with hardcoded rcw on t1042 demo board.

Thanks.

标签 (1)
0 项奖励
回复
1 解答
2,063 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In your CCS log, you are using T1042RDB_init_core.tcl and there is DDR controller configuration problem on your custom board.

As I mentioned previously, when creating a bareboard project, in "Debug Target Settings" panel, please select "Download SRAM" Launch configuration.

Thanks,

Yiping

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,063 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yusuf Altıparmak,

Please create a bareboard project, in "Debug Target Settings" panel, please select "Download SRAM" Launch configuration.

Then click "RAM" at the right of the project name to select "SRAM", compile the SRAM bareboard project and try whether the executable file  can be downloaded  and executed in SRAM on the target board successfully.

Thanks,

Yiping

0 项奖励
回复
2,063 次查看
yusufalti333
Contributor IV

A correction: I was trying all of these (the problem i mentioned first) with RCW override method. I made my own override file with my custom board spesific values. I had HRESET OCCURED DURING TRANSACTION error when I used hardcoded-rcw option.

0 项奖励
回复
2,064 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In your CCS log, you are using T1042RDB_init_core.tcl and there is DDR controller configuration problem on your custom board.

As I mentioned previously, when creating a bareboard project, in "Debug Target Settings" panel, please select "Download SRAM" Launch configuration.

Thanks,

Yiping

0 项奖励
回复
2,063 次查看
yusufalti333
Contributor IV

Yes,  changing .tcl file to init_sram is fixed the problem. For now, I am able to write something to flash.

0 项奖励
回复
2,063 次查看
yusufalti333
Contributor IV

Hello Mr. Wang,

I tried SRAM option with RCW Override method for my custom board. I am having Scan Timeout when I try to run project like you said. I attached full console log. Do you have any idea about this error ? Could this be about tcl script,It has 2 GB memory map for DDR but I have 16 GB Physical RAM amonunt, should I change it? I am using my DDRCLOCK as 100 MHZ.

There is also a Core is not responding error at first lines of log but program seems kept running. Why ?

Thanks

0 项奖励
回复