From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29907 invoked by alias); 6 Jul 2006 10:42:13 -0000 Received: (qmail 29898 invoked by uid 22791); 6 Jul 2006 10:42:13 -0000 X-Spam-Check-By: sourceware.org Received: from sta-204-188-98-27.rockynet.com (HELO hermes.chez-thomas.org) (204.188.98.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Jul 2006 10:42:09 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id AC8D419501A7; Thu, 6 Jul 2006 04:42:07 -0600 (MDT) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by hermes.chez-thomas.org (Postfix) with ESMTP id 78F0C195009A; Thu, 6 Jul 2006 04:42:03 -0600 (MDT) Message-ID: <44ACE8FA.602@mlbassoc.com> Date: Thu, 06 Jul 2006 10:42:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: ajmas@bigfoot.com CC: ecos-discuss@ecos.sourceware.org References: <20060705224856.VKAA13241.tomts10-srv.bellnexxia.net@smtp1.sympatico.ca> In-Reply-To: <20060705224856.VKAA13241.tomts10-srv.bellnexxia.net@smtp1.sympatico.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] No RedBoot network after app start? X-SW-Source: 2006-07/txt/msg00017.txt.bz2 Andre-John Mas wrote: > I am a little confused then (I am new at this). I was > under the impression that RedBoot needs to hang around, > so GDB can do its work. I have also been told that RedBoot > and the application needs separate IP addresses (supposedly > to avoid stack confusion), for this reason. All true, but RedBoot is passive at this point. It only provides GDB services on demand (when you print or hit a breakpoint, etc) > > Our main issue is that we are unable to debug. We are using > Eclipse to establish the GDB session, over ethernt. The image > gets uploaded by Eclipse, to port 9000 at the address of our card, > and we then reach the main function (we have break at main set). > At that point no more debugging is possible, which isn't very > useful. What I mean is that we can't step or display anything > further. At this point we just have to restart our card. You get to the breakpoint at 'main' in your code? Is your problem is that once you continue past this point, with no other breakpoints set, you can't get back into GDB? Can you set other breakpoints, or single step? > Andre > >> From: Gary Thomas > >> Andre-John Mas wrote: >>> Hi, >>> >>> I have a RedBoot that replies to pings when it is waiting at the command prompt and the user hasn't started typing ( _rb_gets blocks until enter is pressed ). I then load my application: >>> >>> load -r -b 0x40000 app.bin >>> go 0x40000 >>> >>> At this point my simple 'Hello World' displays its text. In the meantime the RedBoot stops replying to pings. My application is: >>> >>> #include >>> #include >>> #include >>> >>> externC int diag_printf( const char *fmt, ... ); >>> >>> int main( int argc, char * argv[] ) >>> { >>> diag_printf("Hello world 1\n"); >>> diag_printf("Hello world 2\n"); >>> diag_printf("Hello world 3\n"); >>> diag_printf("Hello world 4\n"); >>> diag_printf("Hello world 5\n"); >>> } >>> >>> Does anyone have any ideas what could be wrong. My RedBoot is set up to be a 'ROM Monitor'. We are using an Adder II (MPC852T) based board. >>> >> Once your application starts, RedBoot is no longer running. >> If you've connected via telnet and started the program, then >> RedBoot can print messages via the telnet session, but pings >> will go unanswered (until the next message is printed). >> >> -- >> ------------------------------------------------------------ >> Gary Thomas | Consulting for the >> MLB Associates | Embedded world >> ------------------------------------------------------------ >> >> -- >> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss >> -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss