DSPRelated.com
Forums

c6727:boot from parallel flash

Started by shlomi_mano August 20, 2008
hello

has anyone succeeded to boot from prallel flash using C6727 ?

I followed the instruction on the "using the tms320c672x bootloader"
pdf (section 2.2),and I can't manage to boot from flash;

I wrote simple code thats bilnks a led on my board and its running
perfectly.

I maped the main function to address 0x10000004(offset 4 at the
internal RAM) the execution of the program starts from there
according to the pdf (after copying the first 1K from the start of
the flash) .

i have burned the first byte on the flash to indicates 16 bit
address access (as my flash works) and then i burend my simple
program , my flash looked like this:

start flash address -> 0x01010101

my code

It looks like that on startup the dsp do copies the first 1kB from
the flash but do not start the execution of the as the pdf asserts .

do you have any ideas?

(i wrote in the past boot for c6713 and it works a little bit
different , the dsp generates a reset interrupt after copying the
first 1k , according to the mentioned PDF the 6727 does not generates
an interrupt but jumps to 0x10000004 and strts the execution from
there)
Have you tried doing a reset under CCS and debugging your application?
Shlomi,

On Wed, Aug 20, 2008 at 2:35 AM, shlomi_mano wrote:
> hello
>
> has anyone succeeded to boot from prallel flash using C6727 ?
Yes.
>
> I followed the instruction on the "using the tms320c672x bootloader"
> pdf (section 2.2),and I can't manage to boot from flash;
>
> I wrote simple code thats bilnks a led on my board and its running
> perfectly.
>
> I maped the main function to address 0x10000004(offset 4 at the
> internal RAM) the execution of the program starts from there
> according to the pdf (after copying the first 1K from the start of
> the flash) .
>
> i have burned the first byte on the flash to indicates 16 bit
> address access (as my flash works) and then i burend my simple
> program , my flash looked like this:
>
> start flash address -> 0x01010101
>
> my code
>
> It looks like that on startup the dsp do copies the first 1kB from
> the flash but do not start the execution of the as the pdf asserts .

1. After your startup 'fails' and you halt the device with CCS, where
is your PC??
2. You can set the PC to 0x10000004 and open a disassembly window.
Does the code look like what you expected??
3. You should be able to single step through the code to see it execute.
4. You can also build your first 1K as a standalone CCS program [a
'.out' file] that you load into memory via CCS [the EMIF will have to
be previously setup for 16 bit flash access] to debug it by stepping
through the code.
5. You can also compare the contents of your 'loaded program' with the
flash contents to see if it is programmed correctly.

mikedunn
>
> do you have any ideas?
>
> (i wrote in the past boot for c6713 and it works a little bit
> different , the dsp generates a reset interrupt after copying the
> first 1k , according to the mentioned PDF the 6727 does not generates
> an interrupt but jumps to 0x10000004 and strts the execution from
> there)

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php