From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15006 invoked by alias); 20 Jun 2005 13:10:31 -0000 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 Received: (qmail 14255 invoked by uid 22791); 20 Jun 2005 13:09:48 -0000 Received: from v-mail.vsnl.com (HELO vmail.vsnl.com) (203.200.237.34) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 20 Jun 2005 13:09:48 +0000 Received: from vsnl.net ([127.0.0.1]) by vmail.vsnl.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0IID007ZMWJSAN@vmail.vsnl.com> for ecos-discuss@ecos.sourceware.org; Mon, 20 Jun 2005 18:39:28 +0530 (IST) Received: from ([localhost (127.0.0.1)]) by vmail.vsnl.com (InterScan E-Mail VirusWall Unix); Mon, 20 Jun 2005 18:39:28 +0530 (IST) Received: from [203.197.169.20] by vmail.vsnl.com (mshttpd); Mon, 20 Jun 2005 18:09:28 +0500 Date: Mon, 20 Jun 2005 13:10:00 -0000 From: aprakash@tataelxsi.co.in To: ecos-discuss@ecos.sourceware.org Message-id: <1fff121fd960.1fd9601fff12@vsnl.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline Subject: [ECOS] rom Application problem with serial port X-SW-Source: 2005-06/txt/msg00170.txt.bz2 Hi, I m trying to run a simple application from flash which will open serial port /dev/ser1 and write hello world message.. I have choosen default option for integrator with posix support and flash support. my flash memory size is 32MB, RAM size is 320KB. i have modified include/pkgconf/*_rom.h file and *_rom.ldi files. I pasted below too... I have enabled tty channal #0,and #1 also. when my application open my serial port, it returns -2. please help me to figureout to access serial port ... // eCos memory layout - Tue Feb 29 14:25:49 2000 // This is a generated file - do not edit #include #include #define CYGMEM_REGION_ram (0) //#define CYGMEM_REGION_ram_SIZE (0x01000000) #define CYGMEM_REGION_ram_SIZE (0x00050000) // my Ram size.. #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) #define CYGMEM_REGION_rom (0x24040000) // my executable in FLASH #define CYGMEM_REGION_rom_SIZE (0x02000000) #define CYGMEM_REGION_rom_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 (0xf00000 - (size_t) CYG_LABEL_NAME (__heap1)) #define CYGMEM_SECTION_heap1_SIZE (0x00050000 - (size_t) CYG_LABEL_NAME (__heap1)) #ifndef __ASSEMBLER__ extern char CYG_LABEL_NAME (__pci_window) []; #endif #define CYGMEM_SECTION_pci_window (CYG_LABEL_NAME (__pci_window)) #define CYGMEM_SECTION_pci_window_SIZE (0x100000) ------------------------------ ldi file // eCos memory layout - Tue Feb 29 14:25:49 2000 // This is a generated file - do not edit #include MEMORY { ram : ORIGIN = 0, LENGTH = 0x00050000 rom : ORIGIN = 0x24040000, LENGTH = 0x02000000 } SECTIONS { SECTIONS_BEGIN SECTION_rom_vectors (rom, 0x24040000, LMA_EQ_VMA) SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA) // SECTION_text (rom, ALIGN (0x1), LMA_EQ_VMA) SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_got (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table)) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); // CYG_LABEL_DEFN(__pci_window) = 0xf00000; . = CYG_LABEL_DEFN(__pci_window) + 0x100000; SECTIONS_END } Thanks Prakash -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss