From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21284 invoked by alias); 3 Jul 2011 11:33:52 -0000 Received: (qmail 21274 invoked by uid 22791); 3 Jul 2011 11:33:51 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hermes.mlbassoc.com (HELO mail.chez-thomas.org) (64.234.241.98) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Jul 2011 11:33:35 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id B2F1F1660208; Sun, 3 Jul 2011 05:33:34 -0600 (MDT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id EC4ED1660178; Sun, 3 Jul 2011 05:33:33 -0600 (MDT) Message-ID: <4E10538D.6040500@mlbassoc.com> Date: Sun, 03 Jul 2011 11:33:00 -0000 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Elad Yosef CC: ecos-discuss@ecos.sourceware.org References: <4E0DBFE0.2070502@mlbassoc.com> In-Reply-To: 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-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re-use RedBoot RAM segment in the application X-SW-Source: 2011-07/txt/msg00008.txt.bz2 On 07/03/2011 12:50 AM, Elad Yosef wrote: > But My RedBoot code is running directly from the ROM. > What you are saying is that when the application is calling "UART > write" for example > The code which runs is the RedBoot code from the ROM, which I agree about it. > But all the parameters I think they are located on the calling > Thread's stack, Am I wrong here? Even when RedBoot runs in ROM, there are static data which it uses (not everything can be kept on stacks). As I said below (top posting is evil BTW), if your application is built with CYGSEM_HAL_USE_ROM_MONITOR == 1, then you *will* need the data segment of RedBoot to remain intact. > On Fri, Jul 1, 2011 at 3:38 PM, Gary Thomas wrote: >> On 07/01/2011 06:28 AM, Elad Yosef wrote: >>> >>> Hi all, >>> My Target is short with RAM and I want to use the RedBoot RAM in the >>> application as well. >>> Is it possible? it is a waste of RAM if not. >> >> It's only a waste if your application does not use RedBoot for >> runtime services. By default, your code will call functions in >> RedBoot for such things as console I/O, network debug support, >> GDB support, etc. You can only reuse RedBoot's RAM section if >> you are not using any of those (CYGSEM_HAL_USE_ROM_MONITOR == 0) -- ------------------------------------------------------------ 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