Hi,
I'm trying to use the Codewarrior USB TAP and the flash programmer to flash a u-boot binary image to my t4240rdb board, but I do not know which connection I have to choose in the Flash File to Target dialog:
can you help me?
Solved! Go to Solution.
Hi,
May be you can try to run the Bareboard project with RCW override to see if connection OK. Use the T4240RDB_init_sram.tcl to be initialization file and choose CodeWarrior USB TAP to be the connection type(Both when you create the project or change the settings after creating are OK). Specify T4240RDB_RCW...-rev2.0.txt or T4240RDB_RCW...-rev1.0 in the JTAG file configuration panel, according to chip version on the board.
Regards
Please refer to Flash Programmer for CodeWarrior Power Architecture
Adrian
Hi Adrian,
thanks for the reply.
I have already followed that Application Note without success.
In particular, after configuring a flash device as described in Section 3, the execute button is not green. This is because the debugger is not running and I do not know how to configure it.
Paolo
Hi Paolo,
You have 2 possibilities. One is to enter in debug and then run the target task and the second is to right click on target task and Change Run Configuration from Active Debug Context to a run configuration you want to use.
Adrian
Ok , I'm trying to create a run configuration and the following dialog appears:
I suppose that I have to configure a connection in the target settings box (am I wrong?)
Then, after clicking the "New" button, the following dialog appears:
Here there are several system types, but not my board ( the t4240rdb ).
The problem is that I do not know how to configure a debug or a run configuration for simply flash a file on my board and I did not find any guide explaining this. :smileysad:
Again you have two possibilities :smileyhappy:. First one is to create a bareboard project using Wizard, and select Download/Attach as launch. Then select this debug config in "Change Run Configuration".
Second from New Connection you should select Hardware or Simulator Connection, provide a name and description. As Target go to New - > Hardware or Simulator Connection. Then at Target type expand eppc and select T4240. In Initialization tab: Select the core(s), add Initialize target file. In Memory tab add the memory file. Those files can be found in CW_PA_v10.4.0\PA\PA_Support\Initialization_Files\. Then select this configuration in "Change Run Configuration".
Ok, I created a bareboard project and I added the memory file "T4240RDB.mem" and the initialize target file "T4240RDB_init_sram.tcl" (as suggested by the Application Note you sent to me). Then I clicked execute, but unfortunately I get the following error message below:
fl::target -lc "rec-core00_RAM_T4240_Download"
fl::target -b 0x0 0x180000
fl::target -v off -l off
cmdwin::fl::device -d "S29GL01GP" -o "64Mx16x1" -a 0xe8000000 0xefffffff
cmdwin::fl::image -f "C:\\Users\\Paolo\\Documents\\u-boot-T4240RDB-2014.07+fslgit-r0.bin" -t "Auto Detect" -re on -r 0xeff40000 0xefffffff -oe on -o 0xeff40000
cmdwin::fl::write
Beginning Operation ...
-------------------------
Using restricted address range 0xEFF40000 to 0xEFFFFFFF
Programming file C:\Users\Paolo\Documents\u-boot-T4240RDB-2014.07+fslgit-r0.bin
Auto-detection is successful.
File is of type Binary/Raw Format.
Performing target initialization ...
Error: Connect Failed.
Failed to reset the target
[CCS last error: T4240: Scan timeout ](CCSProtocolPlugin)
Error: Connect Failed.
Thank you in advance for your support Adrian.
Paolo
Make sure your Add Program Action looks like in the screenshot.
Yes my Program/Verify window looks exactly like the your one.
Let me summarize what I did till now:
- as you said, I created a bareboard project, and I selected Download/Attach as launch
- then, in the "Change Run Configuration" I choosed this debug configuration
- when I execute the Target Task I get this error message in the console: "Core not responding"
Error: Connect Failed.
Failed to reset the target
[CCS last error: T4240: Core not responding ](CCSProtocolPlugin)
Error: Connect Failed.
Paolo
"Core not responding error" is not ok. It could indicate a hardware issue. To check this please go to CW_PA_v10.4.0\PA\ccs\bin\, open ccs.exe and enter the commands:
(bin) 175 % delete all
(bin) 176 % config cc cwtap
(bin) 177 % show cc
(bin) 178 % ccs::config_chain t4amp
(bin) 179 % ccs::reset_to_debug
If you get "Core not responding error", it is very possible to be a hardware issue with the board.
Adrian
The "show cc" command gives me this error message: "0: CC config string is invalid"
Do you use a CodeWarrior TAP or CodeWarrior USB TAP? If you use first tap it is over usb or ethernet?
Adrian
I'm using the CodeWarrior USB TAP, there is no ethernet socket.
Paolo
Ok. Then use:
(bin) 175 % delete all
(bin) 176 % config cc utap
(bin) 177 % show cc
(bin) 178 % ccs::config_chain t4amp
(bin) 179 % ccs::reset_to_debug
Adrian
I always get the same error: CC config string is invalid
Than, thy the following commands:
findcc utaps - this will display all available utap connection
findcc cwtaps - this will display all available cwtap connection
Adrian
Ok the previous command finally worked, I get Core not responding:
Before we say this is a hardware issue, please refer to T4240RDB_aeabi_README.txt and make sure the switches are set according with the CPU revision.
Adrian
All switches are set correctly as reported in T4240RDB_aeabi_README.txt
Paolo
Hi,
May be you can try to run the Bareboard project with RCW override to see if connection OK. Use the T4240RDB_init_sram.tcl to be initialization file and choose CodeWarrior USB TAP to be the connection type(Both when you create the project or change the settings after creating are OK). Specify T4240RDB_RCW...-rev2.0.txt or T4240RDB_RCW...-rev1.0 in the JTAG file configuration panel, according to chip version on the board.
Regards
Hi,
With the RCW override the flashing process works correctly.
Now I can try to recover my board.
Thank you
Paolo