DSPRelated.com
Forums

DM648 NOR boot issue

Started by ahme...@yahoo.com January 6, 2011
Hello All,

I have made my customized board based on DM648. It (customized board) only has the Ethernet interfaces with no audio/video or uart links. Its perfectly working in emulation mode with the same performance as that of DM648. The problem begins when I try to boot it from Flash, its showing erratic behaviour i.e some times it boots successfully and sometimes not & at every time BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using Flashutility without any modification for writing flash.

Now Is there any timing issue that causes this haphazard behavior?

& do I need to change FlashUtility even when my customized board boots well in some attempts?.

Waiting for ur reply

Regards

Ahmed

_____________________________________
Hello Ahmed,

On 1/6/2011 10:37 AM, a...@yahoo.com wrote:
>
> Hello All,
>
> I have made my customized board based on DM648. It (customized board)
> only has the Ethernet interfaces with no audio/video or uart links.
> Its perfectly working in emulation mode with the same performance as
> that of DM648. The problem begins when I try to boot it from Flash,
> its showing erratic behaviour i.e some times it boots successfully and
> sometimes not & at every time BOOTCMPLT, BOOTADDR & BOOTCFG registers
> show no error. I am using Flashutility without any modification for
> writing flash.
>

When you are speaking of 'booting', are you doing a power off/on boot or
using a reset button.
You want to find out if it makes a difference.
1. For 'power on booting', make sure that you leave power off long
enough for it to drop to near 0 volts.
2. For 'power on booting', make sure that your POR pulse is long enough.
3. For 'push button reset booting', make sure that you are generating a
'wide enough' and 'clean enough' reset pulse.
4. For 'power on booting', make sure that your power supplies at or near
the DSP are at voltage and stable long enough before reset ends.
5. For 'power on booting', check the datasheet for any power sequencing
requirements. [I don't remember off the top of my head, but I do know
that the 648 is an odd mixture of generational architectures.

>
> Now Is there any timing issue that causes this haphazard behavior?
>
> & do I need to change FlashUtility even when my customized board boots
> well in some attempts?.
>

If you can run a 'memory read test' on the flash and it reads reliably,
your problem is most likely related to 'booting only' and not the flash.
For a memory test, you can run something like a CRC16 in a loop and
check the results.

mikedunn
> Waiting for ur reply
>
> Regards
>
> Ahmed
Ahmed,

Your description of the problem sounds like a boot timing instability.
I would be looking at the state of the 'boot mode pins' when the 'reset' line is
released.
I would suspect the power supply and/or the boot mode pin states are not stable
when the reset signal is released.
This may be because the reset signal is being release too soon or because the
boot mode pins voltage levels are not stable.

R. Williams
---------- Original Message -----------
From: a...@yahoo.com
To: c...
Sent: Thu, 06 Jan 2011 11:37:26 -0500
Subject: [c6x] DM648 NOR boot issue

> Hello All,
>
> I have made my customized board based on DM648. It
> (customized board) only has the Ethernet interfaces with no
> audio/video or uart links. Its perfectly working in emulation mode
> with the same performance as that of DM648. The problem begins when I
> try to boot it from Flash, its showing erratic behaviour i.e some
> times it boots successfully and sometimes not & at every time
> BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using
> Flashutility without any modification for writing flash.
>
> Now Is there any timing issue that causes this haphazard behavior?
>
> & do I need to change FlashUtility even when my customized board boots
> well in some attempts?.
>
> Waiting for ur reply
>
> Regards
>
> Ahmed
------- End of Original Message -------

_____________________________________
Mike,Richard
I am using the power off/on booting not the reset button & I haven't yet calculated the timing or pulse duartion (let me try this diagnostic routine). Could this be an error of Flashutility program? (remember burning of NOR is successful).

Thanks & Regards
Ahmed
Hello All,
>
> I have made my customized board based on DM648. It (customized board) only has the Ethernet interfaces with no audio/video or uart links. Its perfectly working in emulation mode with the same performance as that of DM648. The problem begins when I try to boot it from Flash, its showing erratic behaviour i.e some times it boots successfully and sometimes not & at every time BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using Flashutility without any modification for writing flash.
>
> Now Is there any timing issue that causes this haphazard behavior?
>
>& do I need to change FlashUtility even when my customized board boots well in some attempts?.
>
>Waiting for ur reply
>
>Regards
>
>Ahmed
>
>_____________________________________

_____________________________________
ahmed,

You state that 'sometimes' the boot works, so it is not a problem with the
utility used to burn the FLASH.

You state that your using power cycling to boot the board.

TO me, this means one of two things:
--the powersupply is not yet stable when the /reset signal is released.
--The mode pins are not in a stable state when the /reset signal is released.

R. Williams

---------- Original Message -----------
From: a...@yahoo.com
To: c...
Sent: Mon, 10 Jan 2011 00:38:15 -0500
Subject: [c6x] Re: DM648 NOR boot issue

> Mike,Richard
> I am using the power off/on booting not the reset
> button & I haven't yet calculated the timing or pulse duartion (let
> me try this diagnostic routine). Could this be an error of
> Flashutility program? (remember burning of NOR is successful).
>
> Thanks & Regards
> Ahmed
>
> Hello All,
> >
> > I have made my customized board based on DM648. It
(customized board) only has the Ethernet interfaces with no audio/video or uart
links. Its perfectly working in emulation mode with the same performance as that
of DM648. The problem begins when I try to boot it from Flash, its showing
erratic behaviour i.e some times it boots successfully and sometimes not & at
every time BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using
Flashutility without any modification for writing flash.
> >
> > Now Is there any timing issue that causes this haphazard behavior?
> >
> >& do I need to change FlashUtility even when my customized board boots well
in some attempts?.
> >
> >Waiting for ur reply
> >
> >Regards
> >
> >Ahmed
> >
> >_____________________________________
> >
> >
------- End of Original Message -------

_____________________________________
Ahmed,

On 1/9/2011 11:38 PM, a...@yahoo.com wrote:
>
> Mike,Richard
> I am using the power off/on booting not the reset button & I haven't
> yet calculated the timing or pulse duartion (let me try this
> diagnostic routine).
>

IMO calculations do not matter when troubleshooting. You need to analyze
the 'as built' version of the board. You really need to look at the PS
voltages and POR pulse with a scope. POR pulse could be too short, it
could be glitching, the power supplies might not ramp up cleanly, etc.
You really need to see what is happening.
>
> Could this be an error of Flashutility program? (remember burning of
> NOR is successful).
>

I do not think it is a problem with the Flashutility - but it is
*possible* [but not as probable] that you have a boot sw problem.
Using CCS, can you cause a Flash boot with 'CPU Reset'??

mikedunn
> Thanks & Regards
> Ahmed
>
> Hello All,
> >
> > I have made my customized board based on DM648. It (customized
> board) only has the Ethernet interfaces with no audio/video or uart
> links. Its perfectly working in emulation mode with the same
> performance as that of DM648. The problem begins when I try to boot it
> from Flash, its showing erratic behaviour i.e some times it boots
> successfully and sometimes not & at every time BOOTCMPLT, BOOTADDR &
> BOOTCFG registers show no error. I am using Flashutility without any
> modification for writing flash.
> >
> > Now Is there any timing issue that causes this haphazard behavior?
> >
> >& do I need to change FlashUtility even when my customized board
> boots well in some attempts?.
> >
> >Waiting for ur reply
> >
> >Regards
> >
> >Ahmed
> >
> >_____________________________________
> >
> >
Mike,Richard
                    I am using the power off/on booting not the reset button & I haven't yet calculated  the timing or pulse duartion (let me try this diagnostic routine). Could this be an error of  Flashutility program? (remember burning of NOR is successful).
 
Thanks & Regards
Ahmed 
--- On Thu, 6/1/11, mikedunn wrote:
From: mikedunn
Subject: Re: [c6x] DM648 NOR boot issue
To: a...@yahoo.com
Cc: c...
Date: Thursday, 6 January, 2011, 10:40 PM
Hello Ahmed,

On 1/6/2011 10:37 AM, a...@yahoo.com wrote:
 

Hello All,

I have made my customized board based on DM648. It (customized board) only has the Ethernet interfaces with no audio/video or uart links. Its perfectly working in emulation mode with the same performance as that of DM648. The problem begins when I try to boot it from Flash, its showing erratic behaviour i.e some times it boots successfully and sometimes not & at every time BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using Flashutility without any modification for writing flash.

When you are speaking of 'booting', are you doing a power off/on boot or using a reset button.
You want to find out if it makes a difference.
1. For 'power on booting', make sure that you leave power off long enough for it to drop to near 0 volts.
2. For 'power on booting', make sure that your POR pulse is long enough.
3. For 'push button reset booting', make sure that you are generating a 'wide enough' and 'clean enough' reset pulse.
4. For 'power on booting', make sure that your power supplies at or near the DSP are at voltage and stable long enough before reset ends.
5. For 'power on booting', check the datasheet for any power sequencing requirements. [I don't remember off the top of my head, but I do know that the 648 is an odd mixture of generational architectures.

Now Is there any timing issue that causes this haphazard behavior?

& do I need to change FlashUtility even when my customized board boots well in some attempts?.

If you can run a 'memory read test' on the flash and it reads reliably, your problem is most likely related to 'booting only' and not the flash.
For a memory test, you can run something like a CRC16 in a loop and check the results.

mikedunn

Waiting for ur reply

Regards

Ahmed
Dear Friends,
I must say Thanku very much for pin pointing the actual bug, that was really the stability/timing issue of the pins/pulses, As soon as I retime the power sequence the same code is working in a very decent manner & now my customized board is working fine in Bootload.

Thanks & Best Regards
Ahmed

Hello All,
>
> I have made my customized board based on DM648. It (customized board) only has the Ethernet interfaces with no audio/video or uart links. Its perfectly working in emulation mode with the same performance as that of DM648. The problem begins when I try to boot it from Flash, its showing erratic behaviour i.e some times it boots successfully and sometimes not & at every time BOOTCMPLT, BOOTADDR & BOOTCFG registers show no error. I am using Flashutility without any modification for writing flash.
>
> Now Is there any timing issue that causes this haphazard behavior?
>
>& do I need to change FlashUtility even when my customized board boots well in some attempts?.
>
>Waiting for ur reply
>
>Regards
>
>Ahmed
>
>_____________________________________

_____________________________________