Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
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.
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
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
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 >
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 > > > >
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