Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

problem in running dsp TMS320LF2407A prog

Status
Not open for further replies.

mohd_ind00

Junior Member level 3
Joined
Dec 17, 2004
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
269
tms320lf2407a

Hi All,

I have program TMS320LF2407A through TI serial Program Flash Utilty. It programed succesfully(prog compiled through CCS2000). I have taken care of scsrg registers also. but my program is not working(it is not running at all because iam getting default clockout that is half of the crystal freq).

This is a simple program for toggling the ports. Can any one expalain what mistake i am doing. Is there any more initializatons is to be done or what?

Pl reply.

regards
 

dsp reset problem

Have you initialized the internal PLL circuit which determines the system clock.

Also, check the values of the capacitors and resistors used in the PLL filter.
 

dsp tms320lf2407a

Hi djolestojic,

Thanks for reply. I have taken care of PLL circuitry and also the capacitor values are correct for using 10 MHz freq from an external oscillator.

But i found that when i am running the program, the CLKOUT is getting default value(.5xFin), inspite of being chosing the bit 9-11 of SCSR1 rgister as 000. This means my program is not at all executed.

I have analyzed the hex file generated from the TI flash program serial utility from an out file (generated through CCS), that it shows entry point address lies in between text code section, is this could be a problem?

I have used settings as generate 'Absolute Executable' and COFF1 in CCS.

Can you put some light on this so that it can guide me rightly.

regards

Added after 7 minutes:

Hi djolestojic,

One more thing that i found apart from the above post is, RS pin is getting low pulses, which may be because the watchdog is resetting that is why DSP is getting reset and the program is not running at all.

But I have taken care of disabling Watchdog. Still it is getting reset, what could be the problem?

regard
 

what is dsp not running

Hugh.

The watchdog nightmare in TMS320f24xx family - alltime favorite topic.

Disable the watchdog through SCSR registers, but take care to keep the VPP (+5V) voltage present at the dedicated pin (it seams that wathcdog can be disabled when programming voltage is active).

At least thats the way how the watchdog elimination worked in my case.
 

    mohd_ind00

    Points: 2
    Helpful Answer Positive Rating
linker file for tms320lf2407a

Hi,

thanks for reply,

That problem is solved, what u replied is correct but the reason of watchdog not disabling is that my program is not running at all.

I analyzed the .out file generated by the CCS2000, which is entering the wrong 'Entry Point'. I tried to give the correct Entry point through 'Build Options' but it did not worked, then I changed in the hex file generated through TI serial Flash utility. It worked fine and the program executed well.
But this is not the method. I feel the CCS biuld options are still to be configured correctly. Can u suggest any more.

thanks,

regards
 

tms320lf2407a page

I supose that you allready did this, but nevertheless - have you checked the link.cmd file, and the way linker maps the .vectors section (where the reset vector is situated).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top