From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2053 invoked by alias); 21 Jun 2006 15:34:30 -0000 Received: (qmail 2045 invoked by uid 22791); 21 Jun 2006 15:34:29 -0000 X-Spam-Check-By: sourceware.org Received: from tomts22.bellnexxia.net (HELO tomts22-srv.bellnexxia.net) (209.226.175.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Jun 2006 15:34:27 +0000 Received: from smtp1.sympatico.ca ([209.226.175.203]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with SMTP id <20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> for ; Wed, 21 Jun 2006 11:34:25 -0400 X-Mailer: Openwave WebEngine, version 2.8.6.6 (webedge20-101-174-112-20020617)" From: Andre-John Mas Reply-To: ajmas@bigfoot.com To: Date: Wed, 21 Jun 2006 15:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> X-IsSubscribed: yes 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: [ECOS] re: Reading flash config value from application X-SW-Source: 2006-06/txt/msg00204.txt.bz2 Hi, Just tried the code below and the 'CYGACC_CALL_IF_FLASH_CFG_OP' call returns false, just as in the code I had. Its possible as Thomas suggests that maybe I have code which does not match what Gary has. I am currrently using 2.0.51, I believe. #include #include #include #include #define CONFIG_IP 5 int main(int argc, char *argv[]) { unsigned long addr; if (CYGACC_CALL_IF_FLASH_CFG_OP(CYGNUM_CALL_IF_FLASH_CFG_GET, "bootp_my_ip", &addr, CONFIG_IP)) { diag_dump_buf(&addr, sizeof(addr)); } else { printf("Can't get 'bootp_my_ip'\n"); } printf("fconfig_test done\n"); return 0; } -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss