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 | Re: sample code to download bootcode into DSP

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

  

Post a new Thread

sample code to download bootcode into DSP - ebay...@yahoo.com - Jan 31 8:27:19 2008



Hi,

  Can some1 kindly share with me an URL to download sample code of howto download bootcode into
TMS320C5510 dsp chip through EHPI interface? ur help is greatly appreciated !
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



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

Re: sample code to download bootcode into DSP - Jeff Brower - Jan 31 9:48:46 2008

Sy Law-

>   Can some1 kindly share with me an URL to download sample code of howto
> download bootcode into TMS320C5510 dsp chip through EHPI interface? ur
> help is greatly appreciated !

When in HPI boot mode, the 5510 bootloader code idles in a polling loop after being
released from Reset.  All you have to do at that point is set the RESET bit in the
HPIC to release the 5510 from idle mode and run the code you've downloaded.

C5510 bootloader details here:

  http://focus.ti.com/lit/an/spra763c/spra763c.pdf

To get code in binary or ASCII format, you can use hex500.exe tool, which eats the
.out file generated by CCS.

Very easy.

-Jeff
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



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

Re: sample code to download bootcode into DSP - sie yong law - Feb 1 8:03:37 2008

Hi Jeff,
   
    Thx you so much for helping. I am newbie to DSP, so gonna ask more silly question.
Basically, my c5510 DSP chip will use EHPI bus to download bootcode from host and its
configured in multiplexed mode. I just wonder if you have any c code that show how to download
bootcode into the SARAM of DSP using multiplexed mode of EPHI.  I understand will need to
control certain signal pin like  HCNTL0:1. Would be much appreciated if you could share with me
any sample code at all. thx  in advance !

Jeff Brower <j...@signalogic.com> wrote:
          Sy Law-

> Can some1 kindly share with me an URL to download sample code of howto
> download bootcode into TMS320C5510 dsp chip through EHPI interface? ur
> help is greatly appreciated !

When in HPI boot mode, the 5510 bootloader code idles in a polling loop after being
released from Reset. All you have to do at that point is set the RESET bit in the
HPIC to release the 5510 from idle mode and run the code you've downloaded.

C5510 bootloader details here:

http://focus.ti.com/lit/an/spra763c/spra763c.pdf

To get code in binary or ASCII format, you can use hex500.exe tool, which eats the
.out file generated by CCS.

Very easy.

-Jeff
                         
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



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

Re: sample code to download bootcode into DSP - Jeff Brower - Feb 1 11:05:12 2008

Sie Yong-

>     Thx you so much for helping. I am newbie to DSP, so gonna ask more silly question.
Basically, my c5510 DSP chip
> will use EHPI bus to download bootcode from host and its configured in multiplexed mode. I
just wonder if you have
> any c code that show how to download bootcode into the SARAM of DSP using multiplexed mode
of EPHI.  I understand
> will need to control certain signal pin like  HCNTL0:1. Would be much appreciated if you
could share with me any
> sample code at all. thx  in advance !

Using HPI is super-simple.  Here is some pseudo-code for a write operation:

  assert /HCS
  set HCNTL bits (select HPI register)
  assert HR/W line (make zero to write)
  assert HD0-HD15 (data lines)
  verify HDRY (make sure HPI is ready)
  pulse /HDS (write the data)

As long as your C code has access to the HPI pins, then obviously you don't need more than a
few lines of code.

What is your "host" and how is it controlling the HPI pins?  Another processor? 
Another DSK board?

-Jeff

> Jeff Brower <j...@signalogic.com> wrote:
>           Sy Law-
>
>> Can some1 kindly share with me an URL to download sample code of howto
>> download bootcode into TMS320C5510 dsp chip through EHPI interface? ur
>> help is greatly appreciated !
>
> When in HPI boot mode, the 5510 bootloader code idles in a polling loop after being
> released from Reset. All you have to do at that point is set the RESET bit in the
> HPIC to release the 5510 from idle mode and run the code you've downloaded.
>
> C5510 bootloader details here:
>
> http://focus.ti.com/lit/an/spra763c/spra763c.pdf
>
> To get code in binary or ASCII format, you can use hex500.exe tool, which eats the
> .out file generated by CCS.
>
> Very easy.
>
> -Jeff

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



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

Re: sample code to download bootcode into DSP - sie yong law - Feb 1 22:42:06 2008

Hi Jeff,
   
    Thx again for your help. I am still waiting for our hardware engineer to finish the
desgining of hardware. but the host will be using ARM9 and most probably using GPIO pin to
control the HCTNL i believe. I think ur reply is enough to get me started, but if i need more
info, at least i know who to ask now. :) 
Jeff Brower <j...@signalogic.com> wrote:
  Sie Yong-

> Thx you so much for helping. I am newbie to DSP, so gonna ask more silly question.
Basically, my c5510 DSP chip
> will use EHPI bus to download bootcode from host and its configured in multiplexed mode. I
just wonder if you have
> any c code that show how to download bootcode into the SARAM of DSP using multiplexed mode
of EPHI. I understand
> will need to control certain signal pin like HCNTL0:1. Would be much appreciated if you
could share with me any
> sample code at all. thx in advance !

Using HPI is super-simple. Here is some pseudo-code for a write operation:

assert /HCS
set HCNTL bits (select HPI register)
assert HR/W line (make zero to write)
assert HD0-HD15 (data lines)
verify HDRY (make sure HPI is ready)
pulse /HDS (write the data)

As long as your C code has access to the HPI pins, then obviously you don't need more than a
few lines of code.

What is your "host" and how is it controlling the HPI pins? Another processor?
Another DSK board?

-Jeff

> Jeff Brower wrote:
> Sy Law-
>
>> Can some1 kindly share with me an URL to download sample code of howto
>> download bootcode into TMS320C5510 dsp chip through EHPI interface? ur
>> help is greatly appreciated !
>
> When in HPI boot mode, the 5510 bootloader code idles in a polling loop after being
> released from Reset. All you have to do at that point is set the RESET bit in the
> HPIC to release the 5510 from idle mode and run the code you've downloaded.
>
> C5510 bootloader details here:
>
> http://focus.ti.com/lit/an/spra763c/spra763c.pdf
>
> To get code in binary or ASCII format, you can use hex500.exe tool, which eats the
> .out file generated by CCS.
>
> Very easy.
>
> -Jeff

---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.


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