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,696件の閲覧回数
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,551件の閲覧回数
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,551件の閲覧回数
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,551件の閲覧回数
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,552件の閲覧回数
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,551件の閲覧回数
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,551件の閲覧回数
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 件の賞賛
返信