Reply by Carlos Ojea November 30, 20062006-11-30
> 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
Reply by Timothy Fosdike November 30, 20062006-11-30
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... [mailto:c...] On
Behalf Of Carlos Ojea
Sent: Wednesday, 29 November 2006 8:11 PM
To: c...
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
Reply by Carlos Ojea November 29, 20062006-11-29
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