From Christof.Frey at varian.com Fri Apr 8 15:40:15 2011 From: Christof.Frey at varian.com (Christof Frey) Date: Fri, 8 Apr 2011 08:40:15 -0700 Subject: Freescale M5235EVB libraries - what clock frequency is set ? Message-ID: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3325@PA-EX-MBXVS03.vms.ad.varian.com> Hi, I wonder which clock frequency is set in the libraries supplied with CodeSourcery Lite 2010.09-39 for the processor. I'd like to use the UART for terminal output, hence I've overridden the write() function and are using unhosted linker prm files. I get some weird output on the serial line, no standard baud rate matches. My app assumes a clock frequency of 75 MHz. Is there any more description or documentation of the supplied libraries for: libcs3, libcs3unhosted and libcs3coldfire ? I am using TBLCF interface with target remote | m68k-elf-sprite tblcf://:0/ m5235evb Thanks, Christof -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxim at codesourcery.com Sun Apr 10 17:07:02 2011 From: maxim at codesourcery.com (Maxim Kuvyrkov) Date: Sun, 10 Apr 2011 21:07:02 +0400 Subject: [coldfire-gnu-discuss] Freescale M5235EVB libraries - what clock frequency is set ? In-Reply-To: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3325@PA-EX-MBXVS03.vms.ad.varian.com> References: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3325@PA-EX-MBXVS03.vms.ad.varian.com> Message-ID: <929DB635-87EA-44A0-81EC-401EA30D3BA1@codesourcery.com> On Apr 8, 2011, at 7:40 PM, Christof Frey wrote: > Hi, > > I wonder which clock frequency is set in the libraries supplied with CodeSourcery Lite 2010.09-39 for the processor. > I?d like to use the UART for terminal output, hence I?ve overridden the write() function and are using unhosted linker prm files. > I get some weird output on the serial line, no standard baud rate matches. My app assumes a clock frequency of 75 MHz. > > Is there any more description or documentation of the supplied libraries for: > libcs3, libcs3unhosted and libcs3coldfire ? You can check this kind of details in the initialization sequence, which is in the board .xml file; see /m68k-elf/lib/boards/m5235evb.xml. In M5235EVB case, init sequence does not do anything to set the clock rate, so the frequency is what the board sets on reset. -- Maxim Kuvyrkov Mentor Graphics / CodeSourcery From Christof.Frey at varian.com Tue Apr 12 14:30:44 2011 From: Christof.Frey at varian.com (Christof Frey) Date: Tue, 12 Apr 2011 07:30:44 -0700 Subject: how to debug a ROM resident application ? Message-ID: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3AB8@PA-EX-MBXVS03.vms.ad.varian.com> Hi, Using Windows host, Sourcery G++ Lite 2010.09-39 and TBLCF. Can happily debug RAM targets. Now trying to debug a ROM resident application flashed on a BCC5235 eval board (it is working as printf() output on a serial line confirms) I wonder about the correct initialization sequence for doing this I am starting gdb with my (*.elf) executable as parameter and then issue the following initialization commands: target remote | m68k-elf-sprite tblcf://:0/ m5235evb load then I get: target remote | m68k-elf-sprite tblcf://:0/ m5235evb m68k-elf-sprite: Target reset 0xffe00b76 in uart0_out_char (ch=83 'S') at io.c:23 23 while (!(MCF_UART_USR0 & MCF_UART_USR_TXRDY)) load m68k-elf-sprite: Flash programming is unsupported in this release Error erasing flash with vFlashErase packet I had expected that the debugger loads the symbol table only and does not try to program the flash. Is there a means to force to load symbol table only? I have tried to use gdb's symbol-file command with *.elf file as argument instead of load w/o success (symbols are not found) Thanks, Christof -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos at codesourcery.com Tue Apr 12 14:43:26 2011 From: carlos at codesourcery.com (Carlos O'Donell) Date: Tue, 12 Apr 2011 10:43:26 -0400 Subject: [coldfire-gnu-discuss] how to debug a ROM resident application ? In-Reply-To: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3AB8@PA-EX-MBXVS03.vms.ad.varian.com> References: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3AB8@PA-EX-MBXVS03.vms.ad.varian.com> Message-ID: <4DA4650E.60902@codesourcery.com> On 4/12/2011 10:30 AM, Christof Frey wrote: > target remote | m68k-elf-sprite tblcf://:0/ m5235evb > load Don't use `load` just use `set $pc = `, and ensure that your flashed your application via another method. > I had expected that the debugger loads the symbol table only and does > not try to program the flash. The debugger has already loaded the symbol table if you specified a binary as an option to gdb or used `file `. Cheers, Carlos. -- Carlos O'Donell Mentor Graphics / CodeSourcery carlos at codesourcery.com +1 (650) 331-3385 x716 From Christof.Frey at varian.com Tue Apr 12 14:51:37 2011 From: Christof.Frey at varian.com (Christof Frey) Date: Tue, 12 Apr 2011 07:51:37 -0700 Subject: [coldfire-gnu-discuss] how to debug a ROM resident application ? In-Reply-To: <4DA4650E.60902@codesourcery.com> References: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3AB8@PA-EX-MBXVS03.vms.ad.varian.com> <4DA4650E.60902@codesourcery.com> Message-ID: <2FEBA2F4E0DB1F4281C27A80E839844305CAAC3AD7@PA-EX-MBXVS03.vms.ad.varian.com> Thanks for this ultra fast support - works! :) Christof -----Original Message----- From: Carlos O'Donell [mailto:carlos at codesourcery.com] Sent: Tuesday, April 12, 2011 4:43 PM To: Christof Frey Cc: coldfire-gnu-discuss at codesourcery.com Subject: Re: [coldfire-gnu-discuss] how to debug a ROM resident application ? On 4/12/2011 10:30 AM, Christof Frey wrote: > target remote | m68k-elf-sprite tblcf://:0/ m5235evb > load Don't use `load` just use `set $pc = `, and ensure that your flashed your application via another method. > I had expected that the debugger loads the symbol table only and does > not try to program the flash. The debugger has already loaded the symbol table if you specified a binary as an option to gdb or used `file `. Cheers, Carlos. -- Carlos O'Donell Mentor Graphics / CodeSourcery carlos at codesourcery.com +1 (650) 331-3385 x716 From Frank.Bussmann at gmx.de Tue Apr 19 12:59:11 2011 From: Frank.Bussmann at gmx.de (=?iso-8859-1?Q?=22Frank_Bu=DFmann=22?=) Date: Tue, 19 Apr 2011 14:59:11 +0200 Subject: SDRAM 16Mx4x4 and MCF5307 Message-ID: <20110419125911.142740@gmx.net> Hello everyone, I just try to connect the MT48LC64M4A2 SDRAM (16 Meg x 4 x 4 banks) to my 5307. I want to use 8 Chips (each with 4 bit data bus). How do I have to connect and initialise it? The coldfire Init-Tool seems to be confused with this configuration. It shows the following config: ColdFire Pin: A15 A14 A13 A12 A11 A10 A9 A17 A19 A21 A23 A24 A25 A26 A27 SDRAM Pin: A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10(CMD) BA0 BA1 BA2 BA3 But I only have 4 Banks (BA0 and BA1)! I use 11 Bit column adress A0..9 + A11. Portsize is 32 Bit. Where is my fault? Greetings Frank -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de