From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19247 invoked by alias); 21 Jun 2006 16:04:18 -0000 Received: (qmail 19230 invoked by uid 22791); 21 Jun 2006 16:04:16 -0000 X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Jun 2006 16:04:10 +0000 Received: from [80.136.68.254] (helo=lx-xchnge.swistec.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1Ft5BW0VSN-0001qS; Wed, 21 Jun 2006 18:04:06 +0200 Received: by lx-xchnge.swistec.local (Postfix, from userid 403) id 775C7EF4426; Wed, 21 Jun 2006 18:02:36 +0200 (CEST) Received: from [192.168.2.153] (stami-xp.swistec [192.168.2.153]) by lx-xchnge.swistec.local (Postfix) with ESMTP id 6C05CEF4423; Wed, 21 Jun 2006 18:02:36 +0200 (CEST) Message-ID: <44996DF7.1090605@swistec.de> Date: Wed, 21 Jun 2006 16:04:00 -0000 From: "St. Zarifakis" User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: ajmas@bigfoot.com Cc: ecos-discuss@sources.redhat.com References: <20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> In-Reply-To: <20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Re: [ECOS] re: Reading flash config value from application X-SW-Source: 2006-06/txt/msg00206.txt.bz2 Hi, Andre-John Mas wrote: >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. > > Could you try the following code ? It should display all available variables. It works on my system which is eCosCentric's v2.0.50: HTH Stamatis #include #include #include #include void test_func(void) { // Testfunktion 1: Ausgabe der fconfig-Variablen struct cyg_fconfig fc; char key[64]; diag_printf("fconfig test started\n"); fc.offset = 0; fc.key = key; fc.keylen = sizeof(key); while (CYGACC_CALL_IF_FLASH_CFG_OP2(CYGNUM_CALL_IF_FLASH_CFG_NEXT, &fc)) { diag_printf(" Offset: %d, key: '%s', type: %d\n", fc.offset, fc.key, fc.type); fc.keylen = sizeof(key); } // zurück diag_printf("... done\n"); return; } -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss