Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Discussion Groups

Discussion Groups | TMS320C55x | 5509A boots late?

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

5509A boots late? - muon...@aselsan.com.tr - Mar 5 10:21:40 2007



I have a code running on 5509A, when I start it from emulator it starts very quickly. I
wrote a bootloader to boot from flash through SPI interface. And could boot the device, but
there is a problem, it boots in about 10 seconds which is too long. the code is about 2000
lines, not that long. If anybody guess the reason of this slowness please let me know,

Thanks,
Murat.



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

Re: 5509A boots late? - Jeff Brower - Mar 5 10:30:19 2007

Murat Onder-

> I have a code running on 5509A, when I start it from emulator it starts very quickly. I
wrote a bootloader to boot
> from flash through SPI interface. And could boot the device, but there is a problem, it
boots in about 10 seconds
> which is too long. the code is about 2000 lines, not that long. If anybody guess the
reason of this slowness please
> let me know,

What is the SPI clock speed?  How big is the code?

-Jeff



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

Re: 5509A boots late? - muon...@aselsan.com.tr - Mar 7 9:48:36 2007

I checked the clock speed of the SPI and saw it as 66 KHz, which is really too low.. So I set
the CLKGDV, clock divider, to 1 in the .cmd configuration file.. And the result was successful,
now it boots in about 1 second. The clock increased to 8 MHz. 

Thanks

Murat Onder-
>
>>  I have a code running on 5509A, when I start it from emulator it starts very quickly.
I wrote a bootloader to boot
>>  from flash through SPI interface. And could boot the device, but there is a problem,
it boots in about 10 seconds
>>  which is too long. the code is about 2000 lines, not that long. If anybody guess the
reason of this slowness please
>>  let me know,
>
>What is the SPI clock speed?  How big is the code?
>
>-Jeff



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

Re: 5509A boots late? - Wei Li - Mar 7 9:50:10 2007

Per SPRA375E, the SPI clock frequency is the oscillator frequency divided
244 during boot mode. As I did calculation before, the SPI clock will be
around 50KHz if the oscillator is 12.288MHz. If you use 64Kbyte SPI flash to
the full extent of its capacity, it takes 10 second to load.

Wei
On 05 Mar 2007 07:30:17 -0800, Jeff Brower <j...@signalogic.com> wrote:
>
>   Murat Onder-
>
> > I have a code running on 5509A, when I start it from emulator it starts
> very quickly. I wrote a bootloader to boot
> > from flash through SPI interface. And could boot the device, but there
> is a problem, it boots in about 10 seconds
> > which is too long. the code is about 2000 lines, not that long. If
> anybody guess the reason of this slowness please
> > let me know,
>
> What is the SPI clock speed? How big is the code?
>
> -Jeff
>



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

Re: Re: 5509A boots late? - Wei Li - Mar 8 7:18:00 2007

I don't quite understand the approach and why it successes.

If you have a stand alone system boot from SPI flash. The SPI clock divider
is the default value (after reset). The configuration file doesn't take
effect until the bootloader is finished. To me, unless you change the
crystal to a higher frequency, the SPI boot load speed is fixed.

If you just read from SPI flash after boot up, then I understand.
On 3/6/07, m...@aselsan.com.tr <m...@aselsan.com.tr> wrote:
> I checked the clock speed of the SPI and saw it as 66 KHz, which is really
> too low.. So I set the CLKGDV, clock divider, to 1 in the .cmd configuration
> file.. And the result was successful, now it boots in about 1 second. The
> clock increased to 8 MHz.
>
> Thanks
>
> Murat Onder-
> >
> >> I have a code running on 5509A, when I start it from emulator it starts
> very quickly. I wrote a bootloader to boot
> >> from flash through SPI interface. And could boot the device, but there
> is a problem, it boots in about 10 seconds
> >> which is too long. the code is about 2000 lines, not that long. If
> anybody guess the reason of this slowness please
> >> let me know,
> >
> >What is the SPI clock speed? How big is the code?
> >
> >-Jeff
> >
> >



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

Re: Re: 5509A boots late? - Jeff Brower - Mar 8 9:48:27 2007

Wei-

> I don't quite understand the approach and why it successes.
>
> If you have a stand alone system boot from SPI flash. The SPI clock divider
> is the default value (after reset). The configuration file doesn't take
> effect until the bootloader is finished. To me, unless you change the
> crystal to a higher frequency, the SPI boot load speed is fixed.

I haven't worked on 55x serial boot in a while, so my comments may be wrong, but I believe one
or more of the register
config values are "used" immediately after being read.  As one example, this would be
needed for external mem config
when code will be written to SDRAM prior to boot.

So it's possible that Murat changed a register value that did in fact affect the SPI clock.

-Jeff

> On 3/6/07, m...@aselsan.com.tr <m...@aselsan.com.tr> wrote:
>> I checked the clock speed of the SPI and saw it as 66 KHz, which is really
>> too low.. So I set the CLKGDV, clock divider, to 1 in the .cmd configuration
>> file.. And the result was successful, now it boots in about 1 second. The
>> clock increased to 8 MHz.
>>
>> Thanks
>>
>> Murat Onder-
>> >
>> >> I have a code running on 5509A, when I start it from emulator it starts
>> very quickly. I wrote a bootloader to boot
>> >> from flash through SPI interface. And could boot the device, but there
>> is a problem, it boots in about 10 seconds
>> >> which is too long. the code is about 2000 lines, not that long. If
>> anybody guess the reason of this slowness please
>> >> let me know,
>> >
>> >What is the SPI clock speed? How big is the code?
>> >
>> >-Jeff



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