From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28893 invoked by alias); 24 Aug 2007 04:57:23 -0000 Received: (qmail 28748 invoked by uid 22791); 24 Aug 2007 04:57:22 -0000 X-Spam-Check-By: sourceware.org Received: from mx3.mail.ru (HELO mx3.mail.ru) (194.67.23.149) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Aug 2007 04:57:14 +0000 Received: from 85.195.161.127.satgate.net ([85.195.161.127]:39795 helo=[10.0.0.3]) by mx3.mail.ru with asmtp id 1IOREM-0002l0-00; Fri, 24 Aug 2007 08:57:11 +0400 From: Alexey Shusharin To: albert prasetyo Cc: "Paul D. DeRocco" , ecos-discuss@sources.redhat.com In-Reply-To: References: <029201c7e5d3$ce0bd2d0$887ba8c0@PAULD> Content-Type: text/plain; charset=utf-8 Date: Fri, 24 Aug 2007 04:57:00 -0000 Message-Id: <1187931235.10148.4.camel@killix> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 (2.10.2-2.fc7) Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] ecos application problem X-SW-Source: 2007-08/txt/msg00130.txt.bz2 Hi Albert I think you should look at eCos documentation about COMM channels: http://ecos.sourceware.org/docs-latest/ref/hal-calling-if.html regards Alexey В Птн, 24/08/2007 в 10:30 +0800, albert prasetyo пишет: > Hi Paul; > Thanks for the reply. According to your remarks, is it means that > I need to exclude GDB stubs in HAL (redboot template)? > (i.e. disable CYDBG_HAL_DEBUG_GDB_INCLUDE_STUBS) > I tried to do that but the output is still the same. > I communicate with the board using hyperterminal. > Thank you for your attention. > > Regards; > Albert P > > On 8/24/07, Paul D. DeRocco wrote: > > > From: albert prasetyo > > > > > > I am a newbie in redboot and ecos. Currently I am developing > > > redboot for AT91RM9200 board (ARM9). I am able to develop > > > redboot (RAM) version for this board but unable to run the > > > application (app.srec). > > > > > > Source code of app.srec: > > > #include > > > > > > int main(void) > > > > > > { > > > > > > printf("1\n"); > > > > > > return 0; > > > > > > } > > > > > > > > > This is the message generated by redboot: > > > > > > RedBoot> load -m y > > > CCEntry point: 0x21000040, address range: > > > 0x21000000-0x210086c4 xyzModem - CRC mode, > > > 2(SOH)/102(STX)/0(CAN) packets, 4 retries > > > RedBoot> go > > > $O310A#24 > > > > > > It somehow managed to print '1' but in ASCII mode. I don't > > > know where my configuration goes wrong. Any help is much appreciated. > > > > That's a GDB packet, containing your output in hex (310A is "1\n"). This is > > what you get when your program is sharing an interface with the GDB stubs. > > If you communicated with the board using GDB, and loaded and ran the app > > that way, GDB would display your output correctly in its console pane. Or if > > you sent your output to a different device, it would look normal. > > > > -- > > > > Ciao, Paul D. DeRocco > > Paul mailto:pderocco@ix.netcom.com > > > > > > Thanks in advance; > > > Albert P > > > > > > -- > > > Before posting, please read the FAQ: > > > http://ecos.sourceware.org/fom/ecos > > > and search the list archive: > > > http://ecos.sourceware.org/ml/ecos-discuss > > > > > > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss