Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
|
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.
-------------------------- From Hyperterminal
--------------------------------------------------
Select :
Waiting for 2nd Stage Bootloader
S-Record. &n
bsp; &
nbsp;
(c) 2002 Motorola Inc. 5685x Serial Data Flash Programmer. Version 1.1 Select :
Waiting for Application S-Record.
---------------------------------------------------------------------------------- --------------------------------- |
|
|
|
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. > > ------------------------------------------------------------------------ > ------------------------------------------- |
|
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. > > ------------------------------------------------------------------------ > ------------------------------------------- _____________________________________ /groups.php3 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. |
|
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!
|