[uClinux-dev] Porting DBUG MCF5208 to 32-bits mode
Ferry de Groot
ferry_1983 at hotmail.com
Fri Mar 23 11:26:51 EST 2007
I still some issues with getting DBUG running in 32-bit mode:
1. Relocation of the stack pointer with "move.l #__SP_INIT,SP" in
mcf5208_lo.s seems gives some problems with running DBUG correctly. If I
dont use this line or add an value to the Stack pointer manualy like "move.
l 0x4001C510,SP" then DBUG seems to be running fine.
2. Turning on the cache memory in DBUG for downloading an new application in
the memory gives the an Unimplemented F-line instruction in m5208evb.c in
the function board_dlio_init().
Does anybody have an suggestion why in 32-bit mode these problems seems to
occur?
Ferry de Groot
>From: Prasad <ndprasad at gmail.com>
>Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>To: "uClinux development list" <uclinux-dev at uclinux.org>
>Subject: Re: [uClinux-dev] Porting DBUG MCF5208 to 32-bits mode
>Date: Thu, 8 Mar 2007 12:28:39 -0800
>
>Hi ferry,
>Thanx for responding. We did figure out from FAE that the 16-bit flash
>was connected to the D0-D15 instead of D16-D31. The SDRAM mode,
>boot-flash uses the D16-D31 instead of D0-D15 for 16bit boot mode. So
>this cannot boot-up from flash when DDRSEL=1.
>
>Whereas for DDR mode (DDRSEL=0) it is reverse, the D0-D15 is used for
>flash and D16-D31 is used for DDR. So that created some confusion
>making the hardware guy to connect it wrongly.
>
>- Prasad
>
>
>
>On 3/8/07, Ferry de Groot <ferry_1983 at hotmail.com> wrote:
>>Hi pasad,
>>
>>I haven't had this problem exact problem. But I've had a lot of board
>>isues
>>before i got the MCF5208 to boot even properly. The MCF5208 seems to
>>pretty
>>sensetive regarding Voltage supply and in the errata datasheet form
>>Freescale mentions an "Potential boot failure when using 32-bit wide
>>SDRAM",
>>which seems to be fixed with 2M28B mask set. Did you add the reset
>>configuration (resistors or LVX573) in 32-bit mode? Most likely it thinks
>>its using the flash memory in split mode(16-bit). Could you keep me
>>updated
>>with you errors by using the forum or possibily by email:
>>Ferry_1983 at hotmail.com? This would improve the process. The forum would
>>offcourse be best lay down some problems, so others may benefit also from
>>our experience.
>>
>>Ferry de Groot
>>Ferry_1983 at hotmail.com
>>
>> >From: Prasad <ndprasad at gmail.com>
>> >Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>> >To: "uClinux development list" <uclinux-dev at uclinux.org>
>> >Subject: Re: [uClinux-dev] Porting DBUG MCF5208 to 32-bits mode
>> >Date: Wed, 7 Mar 2007 14:09:18 -0800
>> >
>> >Hi,
>> >I have the same kinda hardware using 2 SDRAM's connected to MCF5208
>> >(D0-D15 to one sdram and D16-D31 to another). When i pull the DDRAMSEL
>> >to high(SDRAM), then i couldn't view the flash memory content through
>> >the coldfire-debugger. If i put the DRAMSEL to low(which is DDR and is
>> >wrong) i could view the flash memory content. Seems like some kinda
>> >bus contention to me. I checked the rest of the connection. Seems to
>> >be identical to the eval board.
>> >
>> >Went back to the eval board and checked the same. It also exhibited
>> >the same way once i moved the jumper to make the DRAMSEL to high. How
>> >did u make the system boot-up properly with 2 SDRAM's and also view
>> >the flash content from debugger ?
>> >
>> >- dp
>> >
>> >
>> >On 2/4/07, Ferry de Groot <ferry_1983 at hotmail.com> wrote:
>> >>That was pretty much also what I expected to. The applicatrion seemed
>> >>never
>> >>to use any of the hardware configuration. Is there some reference for
>> >>porting it to an 32-bits design? I've been look at the other DBUG
>> >>applications but these seems to use mostly 16-bits split mode and some
>>of
>> >>them use other Registers names. Since some I've seen some few
>>discussion
>> >>about using 32-bit mode for teh MCF5208, does anybody want to share
>>some
>> >>there source code about the SDRAM initialisation for instance? Or any
>> >>suggestoin are alwas welcome.
>> >>
>> >>Ferry de Groot
>> >>
>> >>
>> >> >From: "Bob Furber" <bob at steroidmicros.com>
>> >> >Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>> >> >To: "uClinux development list" <uclinux-dev at uclinux.org>
>> >> >Subject: RE: [uClinux-dev] Porting DBUG MCF5208 to 32-bits mode
>> >> >Date: Fri, 2 Feb 2007 18:06:34 -0800
>> >> >
>> >> >Hi Ferry,
>> >> >
>> >> > > Anyway where can I find the system initialisation of the MCF5208
>>in
>> >>the
>> >> > > uClinux distribution?
>> >> >
>> >> >Much of the initialization is done by dBUG, which then runs uClinux.
>>You
>> >> >should be able to download the dBUG source code from the Freescale
>> >>website.
>> >> >
>> >> >I believe that uClinux probes the flash to figure out how to interact
>> >>with
>> >> >it ..provided it is CFI flash. I am not certain about this, though.
>> >> >
>> >> >Bfn,
>> >> >
>> >> >Bob Furber
>> >> >
>> >> >
>> >> > > Ferry de Groot
>> >> > >
>> >> > > >From: "Bob Furber" <bob at steroidmicros.com>
>> >> > > >Reply-To: uClinux development list <uclinux-dev at uclinux.org>
>> >> > > >To: "uClinux development list" <uclinux-dev at uclinux.org>
>> >> > > >Subject: RE: [uClinux-dev] Porting DBUG MCF5208 to 32-bits mode
>> >> > > >Date: Mon, 29 Jan 2007 09:21:36 -0800
>> >> > > >
>> >> > > >Hi Ferry,
>> >> > > >
>> >> > > > > We've just made an board with MCF5208EVB with, 2 x 16 bits
>> >> > > > > K4S641632H SDRAM
>> >> > > > > and 2 x 16 bits S29JL032H Flash memory. Since the evalution
>> >> > > board design
>> >> > > > > :
>> >> > > > > In other words is there an part
>> >> > > > > in the flash memory where its stores the hardware
>> >> > > configuration, such as
>> >> > > > > telling it's running in 32 bits SDRAM mode? Or does the pin
>> >> > > > > DRAMSEL describe this all?
>> >> > > >
>> >> > > >You will have to modify sysinit.c (..\proj\m5208evb\src\sysinit.c
>>on
>> >> >the
>> >> > > >M5208EVB dBUG project) to support your SDRAM.
>> >> > > >
>> >> > > >You will also have to change ..\src\dev\flash\amd_flash.c and
>> >> > > amd_flash.h
>> >> > > >to
>> >> > > >support your flash and in the equivalent of
>> >> > > ..proj\m5208evb\src\m5208evb.h
>> >> > > >you will wnat to change "#define AMD_FLASH_AM29BDD160GB_16BIT" to
>> >> >specify
>> >> > > >your flash.
>> >> > > >
>> >> > > > > DBUG uses several files for programming configuration files
>>the
>> >> > > > > programmer
>> >> > > > > such as the mcf5208.cfg, but these seem to used by the
>>programmer
>> >> > > > > it self.
>> >> > > >
>> >> > > >I am not sure what you mean by "the programmer"
>> >> > > >
>> >> > > > > Some of the linker configuration files flash.lcf and sdram.lcf
>>in
>> >> > > > > 5208_DBUG\dbug\proj\m5208evb\build\mwerks refer to the
>>hardware
>> >> > > > > configuration, but I can't see any reference to 32 bits SDRAM
>> >> > > mode. Do I
>> >> > > > > need to change one of these files to get it running.
>> >> > > >
>> >> > > >I can't speak to MWerks. But, gor GCC you will want to adjust
>> >> > > RAM and flash
>> >> > > >sizes in the equivalent of \proj\m5208evb\build\gnu\flash.ld.
>> >> > > >
>> >> > > > > Ferry de Groot
>> >> > > > >
>> >> > > > >
>>_________________________________________________________________
>> >> > > > > Windows Live Mail: Kies je eigen kleur, indeling en contacten!
>> >> > > > >
>> >>http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
>> >> > > > >
>> >> > > > > _______________________________________________
>> >> > > > > uClinux-dev mailing list
>> >> > > > > uClinux-dev at uclinux.org
>> >> > > > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >> > > > > This message was resent by uclinux-dev at uclinux.org
>> >> > > > > To unsubscribe see:
>> >> > > > > http://mailman.uclinux.org/mailman/options/uclinux-dev
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > > >_______________________________________________
>> >> > > >uClinux-dev mailing list
>> >> > > >uClinux-dev at uclinux.org
>> >> > > >http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >> > > >This message was resent by uclinux-dev at uclinux.org
>> >> > > >To unsubscribe see:
>> >> > > >http://mailman.uclinux.org/mailman/options/uclinux-dev
>> >> > >
>> >> > > _________________________________________________________________
>> >> > > Profiteer van de nieuwe, fantastische voordelen van Live Mail!
>> >> > >
>>http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
>> >> > >
>> >> > > _______________________________________________
>> >> > > uClinux-dev mailing list
>> >> > > uClinux-dev at uclinux.org
>> >> > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >> > > This message was resent by uclinux-dev at uclinux.org
>> >> > > To unsubscribe see:
>> >> > > http://mailman.uclinux.org/mailman/options/uclinux-dev
>> >> > >
>> >> >
>> >> >
>> >> >_______________________________________________
>> >> >uClinux-dev mailing list
>> >> >uClinux-dev at uclinux.org
>> >> >http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >> >This message was resent by uclinux-dev at uclinux.org
>> >> >To unsubscribe see:
>> >> >http://mailman.uclinux.org/mailman/options/uclinux-dev
>> >>
>> >>_________________________________________________________________
>> >>Geef jouw Hotmail kleur met Windows Live Mail! Stap nu over!
>> >>http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
>> >>
>> >>_______________________________________________
>> >>uClinux-dev mailing list
>> >>uClinux-dev at uclinux.org
>> >>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >>This message was resent by uclinux-dev at uclinux.org
>> >>To unsubscribe see:
>> >>http://mailman.uclinux.org/mailman/options/uclinux-dev
>> >>
>> >_______________________________________________
>> >uClinux-dev mailing list
>> >uClinux-dev at uclinux.org
>> >http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>> >This message was resent by uclinux-dev at uclinux.org
>> >To unsubscribe see:
>> >http://mailman.uclinux.org/mailman/options/uclinux-dev
>>
>>_________________________________________________________________
>>Nieuws: Windows Live Mail met rechtermuis- en versleepfuncties!
>>http://imagine-windowslive.com/mail/launch/default.aspx?Locale=nl-nl
>>
>>_______________________________________________
>>uClinux-dev mailing list
>>uClinux-dev at uclinux.org
>>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>>This message was resent by uclinux-dev at uclinux.org
>>To unsubscribe see:
>>http://mailman.uclinux.org/mailman/options/uclinux-dev
>>
>_______________________________________________
>uClinux-dev mailing list
>uClinux-dev at uclinux.org
>http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
>This message was resent by uclinux-dev at uclinux.org
>To unsubscribe see:
>http://mailman.uclinux.org/mailman/options/uclinux-dev
_________________________________________________________________
Probeer nu Live Search: de nieuwe zoekmachine van MSN http://www.live.nl
More information about the uClinux-dev
mailing list