From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16473 invoked by alias); 28 Feb 2013 06:05:02 -0000 Received: (qmail 16402 invoked by uid 22791); 28 Feb 2013 06:05:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from p02c11o144.mxlogic.net (HELO p02c11o144.mxlogic.net) (208.65.144.77) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Feb 2013 06:04:52 +0000 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c11o144.mxlogic.net(mxl_mta-7.0.0-1) with ESMTP id 283fe215.0.479740.00-320.1143296.p02c11o144.mxlogic.net (envelope-from ); Wed, 27 Feb 2013 23:04:51 -0700 (MST) X-MXL-Hash: 512ef383441b8264-e3fd2714df39ab36c221a3d9f2f8a241ab044f8e Received: from smtpauth1.linear.com (localhost [127.0.0.1]) by smtpauth1.linear.com (Postfix) with ESMTP id D7574740B4 for ; Wed, 27 Feb 2013 22:04:49 -0800 (PST) Received: from [192.168.0.24] (174-24-24-137.clsp.qwest.net [174.24.24.137]) by smtpauth1.linear.com (Postfix) with ESMTPSA id A3A94740B3 for ; Wed, 27 Feb 2013 22:04:49 -0800 (PST) From: Michael Jones Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Date: Thu, 28 Feb 2013 06:05:00 -0000 To: ecos discuss Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-AnalysisOut: [v=2.0 cv=f/r/8pOM c=1 sm=1 a=glloKNylpeYNumXQcclYyA==:17 a] X-AnalysisOut: [=D2_GN2MmYMYA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=MqD] X-AnalysisOut: [INYqSAAAA:8 a=93f3eXYFYuoA:10 a=JbVJgtvi9hr1nJkJGgIA:9 a=C] X-AnalysisOut: [juIK1q_8ugA:10] X-MAIL-FROM: 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: [ECOS] Kinetis heap size? X-SW-Source: 2013-02/txt/msg00032.txt.bz2 I am trying to figure out how the heap size for kinetis K60 is set. There is a memory layout like below. From my limited knowledge, it appears = that the heap is not in a memory section, but instead a fixed size memory i= n some other section. What I can't figure out is where the memory size is defined and how to cont= rol it. Also, whether mallinfo(...) will return the value of the allocated = space or some other value. Basically I want to make it bigger, and to be su= re that the amount of heap available reported by mallinfo is correct. Does anybody know how this works and what files define this? I spend a lot = of time with find/grep and came up empty. Mike // eCos memory layout #ifndef __ASSEMBLER__ #include #include #endif #define CYGMEM_REGION_ram (0x20000000 - CYGHWR_HAL_KINETIS_SRAM_BANK_SIZE) #define CYGMEM_REGION_ram_SIZE (CYGHWR_HAL_KINETIS_SRAM_SIZE-CYGNUM_HAL_COM= MON_INTERRUPTS_STACK_SIZE) #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) #define CYGMEM_REGION_flash (0x00000000) #define CYGMEM_REGION_flash_SIZE (CYGHWR_HAL_KINETIS_FLASH_SIZE) #define CYGMEM_REGION_flash_ATTR (CYGMEM_REGION_ATTR_R) #ifndef __ASSEMBLER__ extern char CYG_LABEL_NAME (__heap1) []; #endif #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1)) #define CYGMEM_SECTION_heap1_SIZE (CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE= - (size_t) CYG_LABEL_NAME (__heap1)) -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss