Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Code-Composer | Execution never reaches the 'main' function unless I do several 'steps into' pressing F11

Technical discussions about Code Composer Studio.

  

Post a new Thread

Execution never reaches the 'main' function unless I do several 'steps into' pressing F11 - Carlos Ojea - Nov 29 9:28:28 2006



I am using code composer studio and a xds560r emulator to connect to a ti
davinci cpu (6416 dsp)
When I load a program onto CPU target and I try to run it, it never reaches
the 'main' function !!

I have to do several 'steps into' pressing F11 until I reach some funtions
like '$C$L6' and only then if I press the 'run target' button I could reach
the 'main' function. Someone knows what is happening?

During my 'step into' journey I saw some initialization functions like
'_auto_init', $C$L1, memcpy, $C$RL0, $C$L5 ...
Where could I get information about these functions and their utility?

Many thanks,
Carlos



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

RE: Execution never reaches the 'main' function unless I do several 'steps into' pressing F11 - Timothy Fosdike - Nov 30 10:10:14 2006

Hi Carlos,

By my understanding, the _auto_init function initializes C++ objects
that have been statically allocated (compiled in).  The other functions
are initializing data memory segments such as .data and .bss.

My guess at your problem is that you have allocated some memory segment
over the top of some registers.  Note that any memory that is not
explicitly allocated will be allocated at the lowest possible address.
This may overwrite memory-mapped registers, causing the incorrect
behaviour that you have seen.

I think this should be written down somewhere as the #1 trap for
beginners on TI DSPs!

Regards,

   Timothy

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On
Behalf Of Carlos Ojea
Sent: Wednesday, 29 November 2006 8:11 PM
To: c...@yahoogroups.com
Subject: [code-comp] Execution never reaches the 'main' function unless
I do several 'steps into' pressing F11

I am using code composer studio and a xds560r emulator to connect to a
ti davinci cpu (6416 dsp)

When I load a program onto CPU target and I try to run it, it never
reaches the 'main' function !!

I have to do several 'steps into' pressing F11 until I reach some
funtions like '$C$L6' and only then if I press the 'run target' button I
could reach the 'main' function. Someone knows what is happening?

During my 'step into' journey I saw some initialization functions like
'_auto_init', $C$L1, memcpy, $C$RL0, $C$L5 ... 

Where could I get information about these functions and their utility?

Many thanks,

Carlos



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

Re: Execution never reaches the 'main' function unless I do several 'steps into' pressing F11 - Carlos Ojea - Nov 30 10:11:57 2006

>  My guess at your problem is that you have allocated some memory segment
> over the top of some registers.  Note that any memory that is not explicitly
> allocated will be allocated at the lowest possible address.  This may
> overwrite memory-mapped registers, causing the incorrect behaviour that you
> have seen.
>

Thank you so much Timothy, that should be the key to my problem.
I already fixed the problem on a project erasing some memory segments I
didn't need.
Now I have to fix another one allocating these segments in a different
place.

Thanks!
Carlos



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )