Forums

DSP56858EVM - Can't get SPI boot to work.

Started by Louis Loving October 30, 2003
DSP56858EVM - Can't get SPI boot to work.

Hello all,

I am trying to execute the Second Stage SPI Bootloader Demo in the SDK using a DSP56858EVM board.  Everything seems to work except booting.  Serial_flash_prog.mcp executes without a problem.  The dialog with the EVM via Hyperterminal is posted below.  I do notice that the program sizes don't match the documentation exactly but neither does the Version number for the Serial Data Flash Programmer.

After completing the Serial Data Flash Programmer, I kill the debugger session and disconnect the JTAG Connector ($25 from NMI works great).  I then kill power, set MODA switch to off and then re-apply power.  All LEDs light up but no flashing.  Executing Timers.mcp via JTAG works as expected.

I have monitored the SPI bus and the serial Flash part does reply with BOOT (42H,4FH,4FH,54H) in the first four bytes.  The next few bytes look correct also.

I am loading ….nos\applications\bsp\timers\Debug\InternalRAM.elf.S as the application S-record below.
Thanks for any help,
Louis


-------------------------- From Hyperterminal --------------
(c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1

  Select :
  1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
  2. Read Application S-Record and Store in Data Flash
  3. Exit
  -> 1     

  Waiting for 2nd Stage Bootloader S-Record.                                           
\
  Loaded 0x01c5 Program and 0x0000 Data words.                                 



(c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1

  Select :
  1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
  2. Read Application S-Record and Store in Data Flash
  3. Exit
  -> 2

  Waiting for Application S-Record.
\
  Loaded 0x0a10 Program and 0x0063 Data words.

-------




Hi,

in general you should be able to connect via JTAG to running target
(after your re-applying of power) and break to debuger. Then you
should see where the code is running if it's running at all.
It might give you an insight what is happening.

Jan

On Thu, Oct 30, 2003 at 11:45:29AM -0600, Louis Loving wrote:
> Hello all,
>
> I am trying to execute the Second Stage SPI Bootloader Demo in the SDK
> using a DSP56858EVM board. Everything seems to work except booting.
> Serial_flash_prog.mcp executes without a problem. The dialog with the
> EVM via Hyperterminal is posted below. I do notice that the program
> sizes don't match the documentation exactly but neither does the Version
> number for the Serial Data Flash Programmer.
>
> After completing the Serial Data Flash Programmer, I kill the debugger
> session and disconnect the JTAG Connector ($25 from NMI works great). I
> then kill power, set MODA switch to off and then re-apply power. All
> LEDs light up but no flashing. Executing Timers.mcp via JTAG works as
> expected.
>
> I have monitored the SPI bus and the serial Flash part does reply with
> BOOT (42H,4FH,4FH,54H) in the first four bytes. The next few bytes look
> correct also.
>
> I am loading ....nos\applications\bsp\timers\Debug\InternalRAM.elf.S as
> the application S-record below.
> Thanks for any help,
> Louis > -------------------------- From Hyperterminal
> --------------
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
> Select :
> 1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
> 2. Read Application S-Record and Store in Data Flash
> 3. Exit
> -> 1
>
> Waiting for 2nd Stage Bootloader S-Record.
>
> \
> Loaded 0x01c5 Program and 0x0000 Data words. >
>
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
> Select :
> 1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
> 2. Read Application S-Record and Store in Data Flash
> 3. Exit
> -> 2
>
> Waiting for Application S-Record.
> \
> Loaded 0x0a10 Program and 0x0063 Data words. > -------
>




Message
After further testing I believe that my problem is with the 2nd Stage Bootloader. 
 
After programming the 2nd Stage Bootloader and the Timers demo into the serial flash, I can reboot in Mode 1 and see BOOT being clocked in via the SPI port.  The Timers demo never executes that I can tell.  If I execute the 2nd Stage Bootloader via CodeWarrir and the JTAG port though, it will load and execute the Timers demo (or anything else that I program into the serial flash).
 
Is anyone using the 2nd Stage Bootloader in the SDK?  Are any changes required to make it work from the serial flash?
 
For Jan:
 
I am new to these tools.  How do I break into a running target and see where the code is running?  Can CodeWarrior do this?
 
Thanks,
Louis
 
----------------------- 
Hi,

in general you should be able to connect via JTAG to running target
(after your re-applying of power) and break to debuger. Then you
should see where the code is running if it's running at all.
It might give you an insight what is happening.

Jan

On Thu, Oct 30, 2003 at 11:45:29AM -0600, Louis Loving wrote:
> Hello all,
>
> I am trying to execute the Second Stage SPI Bootloader Demo in the SDK
> using a DSP56858EVM board.  Everything seems to work except booting.
> Serial_flash_prog.mcp executes without a problem.  The dialog with the
> EVM via Hyperterminal is posted below.  I do notice that the program
> sizes don't match the documentation exactly but neither does the Version
> number for the Serial Data Flash Programmer.
>
> After completing the Serial Data Flash Programmer, I kill the debugger
> session and disconnect the JTAG Connector ($25 from NMI works great).  I
> then kill power, set MODA switch to off and then re-apply power.  All
> LEDs light up but no flashing.  Executing Timers.mcp via JTAG works as
> expected.
>
> I have monitored the SPI bus and the serial Flash part does reply with
> BOOT (42H,4FH,4FH,54H) in the first four bytes.  The next few bytes look
> correct also.
>
> I am loading ....nos\applications\bsp\timers\Debug\InternalRAM.elf.S as
> the application S-record below.
> Thanks for any help,
> Louis> -------------------------- From Hyperterminal
> --------------
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
>   Select :
>   1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
>   2. Read Application S-Record and Store in Data Flash
>   3. Exit
>   -> 1     
>
>   Waiting for 2nd Stage Bootloader S-Record.
>
> \
>   Loaded 0x01c5 Program and 0x0000 Data words.>
>
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
>   Select :
>   1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
>   2. Read Application S-Record and Store in Data Flash
>   3. Exit
>   -> 2
>
>   Waiting for Application S-Record.
> \
>   Loaded 0x0a10 Program and 0x0063 Data words.> -------


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3


">Yahoo! Terms of Service.


Message
Problem solved!  The original EVM that I have has an old DSP on it.  There was a problem in the silicon that has since been corrected.
 
Moral of the story:  Read the errata when you are having problems!
-----Original Message-----
From: Louis Loving
Sent: Wednesday, November 05, 2003 3:30 PM
To: Jan Zizka
Cc: m...@yahoogroups.com
Subject: RE: [motoroladsp] DSP56858EVM - Can't get SPI boot to work.

After further testing I believe that my problem is with the 2nd Stage Bootloader. 
 
After programming the 2nd Stage Bootloader and the Timers demo into the serial flash, I can reboot in Mode 1 and see BOOT being clocked in via the SPI port.  The Timers demo never executes that I can tell.  If I execute the 2nd Stage Bootloader via CodeWarrir and the JTAG port though, it will load and execute the Timers demo (or anything else that I program into the serial flash).
 
Is anyone using the 2nd Stage Bootloader in the SDK?  Are any changes required to make it work from the serial flash?
 
For Jan:
 
I am new to these tools.  How do I break into a running target and see where the code is running?  Can CodeWarrior do this?
 
Thanks,
Louis
 
----------------------- 
Hi,

in general you should be able to connect via JTAG to running target
(after your re-applying of power) and break to debuger. Then you
should see where the code is running if it's running at all.
It might give you an insight what is happening.

Jan

On Thu, Oct 30, 2003 at 11:45:29AM -0600, Louis Loving wrote:
> Hello all,
>
> I am trying to execute the Second Stage SPI Bootloader Demo in the SDK
> using a DSP56858EVM board.  Everything seems to work except booting.
> Serial_flash_prog.mcp executes without a problem.  The dialog with the
> EVM via Hyperterminal is posted below.  I do notice that the program
> sizes don't match the documentation exactly but neither does the Version
> number for the Serial Data Flash Programmer.
>
> After completing the Serial Data Flash Programmer, I kill the debugger
> session and disconnect the JTAG Connector ($25 from NMI works great).  I
> then kill power, set MODA switch to off and then re-apply power.  All
> LEDs light up but no flashing.  Executing Timers.mcp via JTAG works as
> expected.
>
> I have monitored the SPI bus and the serial Flash part does reply with
> BOOT (42H,4FH,4FH,54H) in the first four bytes.  The next few bytes look
> correct also.
>
> I am loading ....nos\applications\bsp\timers\Debug\InternalRAM.elf.S as
> the application S-record below.
> Thanks for any help,
> Louis> -------------------------- From Hyperterminal
> --------------
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
>   Select :
>   1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
>   2. Read Application S-Record and Store in Data Flash
>   3. Exit
>   -> 1     
>
>   Waiting for 2nd Stage Bootloader S-Record.
>
> \
>   Loaded 0x01c5 Program and 0x0000 Data words.>
>
> (c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1
>
>   Select :
>   1. Read 2nd Stage Bootloader S-Record and Store in Data Flash
>   2. Read Application S-Record and Store in Data Flash
>   3. Exit
>   -> 2
>
>   Waiting for Application S-Record.
> \
>   Loaded 0x0a10 Program and 0x0063 Data words.> -------


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3


">Yahoo! Terms of Service.


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3


">Yahoo! Terms of Service.