DSP56F801 can't connect via USB TAP

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

DSP56F801 can't connect via USB TAP

跳至解决方案
1,616 次查看
Fduch
Contributor II

Hi. I try to readout DSP56F801 on board. ССS connected to USB TAP well and if looking at my log (here) all operations finished "Network timeout". I am absolutely sure about the JTAG wiring and there is no error, both RESET and TRST signals are involved. What could be the problem? Do I understand correctly that the controller does not go into DEBUG mode? I just renamed 56801.cfg and put it next to it FFLASH.exe. Does anyone have experience programming the DSP56F801?

CMD:

C:\Program Files\Freescale\FlashProgrammer v1.2\bin>fflash 56801.cfg readout.S -rP0x0:0xfff -USB
56800E Flash Programmer v1.1
Program ran on: Sat Mar 30 12:25:35 2024
Connected to local CCS server
Configured to use CodeWarrior USB TAP
CCCSClient::ResetToDebug: Network timeout

C:\Program Files\Freescale\FlashProgrammer v1.2\bin>

CCS:

CCSAPI connection #2 accepted from WIN-T3R1FA3950I at Sat Mar 30 12:25:35 2024
0: USB TAP (JTAG) (utap:) Loader software ver. {1.9}
Sending code to USB TAP - please wait
CCSAPI connection #2 from WIN-T3R1FA3950I closed at Sat Mar 30 12:25:46 2024

 

 

0 项奖励
回复
1 解答
1,350 次查看
Fduch
Contributor II

Finally - I SUCCESSFULLY MADE CLONE of DSP56F801 !!!
My mistake that I used wrong address when readout flash and try to programming. Need to use "page" argument ! The correct address space are:
Programm memory  -rp0x0:0xFFFF
Data memory  -rx0x0:0xFFFF


ALL WORKING! Thanks a lot of dear friends!

在原帖中查看解决方案

0 项奖励
回复
10 回复数
1,551 次查看
Fduch
Contributor II

Well, thanks, but however, what can you say to this:"The parallel Flash mode signals are the same as shown in the Flash memory interface section of the appropriate chip's User's Manual. The 56F801 cannot be programmed using this method. The details required to use this method of programming require an NDA with Freescale. Please request this information from your Freescale sales representative." - This is an excerpt from the document "Production Flash Programming"

In other words - Parralel Flash Programming mode is not supported on this chip!  Can you comment on this?

 

 

0 项奖励
回复
1,545 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

This is link of  application note an4824.pdf, the first remark is "The Freescale DSC Flasher is a stand-alone flashprogrammer for the MC56F8xxx family of Digital Signal Controller products.", obviously, the DSP56F801 does not belongs to "MC56F8xxx". In detail, "fflasher" tools only supports DSP56800E core, it does not support DSP56800 core, the DSP56F801 belongs to DSP56800 core.

If you have project, you can use CodeWarrior for DSP56800E ver8.3 tools to compile/download via USBTAP to DSP56F801. But for standalong tools, you have to use flashoverjtag.exe based on Wiggler and  PC with 25 pins print port.

https://www.nxp.com.cn/docs/en/application-note/AN4824.pdf

Note that the DSP56F801 was launched in about 2000 year in Motorola, it is very old.

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复
1,530 次查看
Fduch
Contributor II

Oh, how unclear and confusing everything is. I don’t have a project from the CodeVarrior. I need just read out the dump from controller. And now you claim that tools only supports DSP56800E core, it does not support DSP56800 core, the DSP56F801 belongs to DSP56800 core. Buddy, I just whant to know is flashoverjtag.exe tool help me to make read flash from DSP56F801 ?

0 项奖励
回复
1,519 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Yes, the flashoverjtag.exe tool can help you to make read flash from DSP56F801 with Wiggler(parallel commend converter).

BR

XiangJun Rong

 

0 项奖励
回复
1,446 次查看
Fduch
Contributor II

Well, buddy, I had sucsessfull connected with target DSP56F801 and successfully read the memory (name file is "orig_x.s"). Soldered a new one chip and flash it via command flash_over_jtag flash801.cfg orig_x.s -w -p0x378

But after I had tryed to compare files and they are different. Note! With Program (‘P’) memory area all OK. I mean that "orig_P.s" mached to "readout_P.s". I have trouble only with (X) memory. What suppose to do? Also look at my log:

C:\flashOverJTAG>flash_over_jtag flash801.cfg orig_x.s -w -p0x378
DSP56F800 Flash loader. Compiled on Jul 23 2003, 15:47:57.
version Epsilon 0.7
(c) Motorola 2001 - 2002, MCSL
Partial Copyright 2000-2002, Zloba Alexander
I/O port driver started
Using printer port at address 0x378.
Waiting for target board to power-up & DSP to come out of reset...
JTAG IR path length: 4
JTAG DR path length: 1 (BYPASS)
IDCode status: 0xd
Jtag ID: 0x1f2101d
Debug Request status: 0xd
Enable OnCE status: 0xd, polls left: 10
Enable OnCE successful, target chip is in Debug mode
4 flash blocks defined in the config file.
S-record ID: Data memory dump 0x0:0x1000
Data @ 0x0 ignored
Data @ 0x0 ignored
Data @ 0x0 ignored
................................

................................

Data @ 0xFF0 ignored
Data @ 0xFF0 ignored
Initialising FIU at address: 0xf40
FIU initialisation failed, BUSY bit is set.
Flash mass erase failed, BUSY bit is set.
The target was reset, the application is running

C:\flashOverJTAG>



Read file:

C:\flashOverJTAG>flash_over_jtag flash801.cfg readout_x.S -rx0x0:0x1000 -p0x378
DSP56F800 Flash loader. Compiled on Jul 23 2003, 15:47:57.
version Epsilon 0.7
(c) Motorola 2001 - 2002, MCSL
Partial Copyright 2000-2002, Zloba Alexander
I/O port driver started
Using printer port at address 0x378.
JTAG IR path length: 4
JTAG DR path length: 1 (BYPASS)
IDCode status: 0x9
Jtag ID: 0x1f2101d
Debug Request status: 0x1
Enable OnCE status: 0xd, polls left: 10
Enable OnCE successful, target chip is in Debug mode
4 flash blocks defined in the config file.
Reading memory done, 0x1001 word(s) read.

Output written.
The target was reset, the application is running

0 项奖励
回复
1,440 次查看
Fduch
Contributor II

I suspect my mistake. This hybrid controller has two memory areas - Programm memory (1K RAM/ 8K Flash)
and Data memory (1K RAM/2K Flash). How correct adress space must to be for reading?
Programm memory  -rp0x0:0x10000
Data memory  -rx0x10000:0xfffff

Correct? Please, give some moore info to make reading and programming full complite.

 

 

0 项奖励
回复
1,416 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls check the memory space for both P and X memory in the reference manual in section 3.2 Memory Map Description. The P and X have independent space.

It is correct:

Programm memory  -rp0x0:0x10000
Data memory  -rx0x10000:0xfffff

I attach the RM of DSP56F801~7.

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复
1,396 次查看
Fduch
Contributor II

Well, buddy thanks a lot off for that PDF, I have never seen it before. In *pdf  great designed memory map. And based on this information, the addressing must be follow:
Programm memory  -rp0x0:0xFFFF
Data memory  -rx0x0:0xFFFF

cause that independend memory space.
I get two files as output: p_memory.S & x_memory.S
After write in my 56F801 x_memory.S and original x_memory.S have many diffirens. Why? For exaple, PRAM 1K (from 7C00 to 7FFF) are not mached.
What wrong I have do? Finaly I can't make clone of 56F801.

 

 

0 项奖励
回复
1,351 次查看
Fduch
Contributor II

Finally - I SUCCESSFULLY MADE CLONE of DSP56F801 !!!
My mistake that I used wrong address when readout flash and try to programming. Need to use "page" argument ! The correct address space are:
Programm memory  -rp0x0:0xFFFF
Data memory  -rx0x0:0xFFFF


ALL WORKING! Thanks a lot of dear friends!

0 项奖励
回复
1,571 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

The DSP56F801 was launched in about 2000 year, unfortunately, the FFlash.exe tools is latest tools, it does not support DSP56F801.

You have to use flashoverjtag.exe tools, but the tools does not support usbtap device, you have to use a PC with 25 pins parallel port and use Wiggler(Parallel command converter) to download in DOS mode.

Pls download flashoverjtag.exe tools from the website:

https://community.nxp.com/t5/Digital-Signal-Controllers/Flash-over-jtag-exe-tools/ta-p/1115456

 

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复