From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19779 invoked by alias); 13 Jun 2002 09:31:54 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 19750 invoked from network); 13 Jun 2002 09:31:49 -0000 Received: from unknown (HELO msgbas1.cos.agilent.com) (192.25.240.36) by sources.redhat.com with SMTP; 13 Jun 2002 09:31:49 -0000 Received: from msgrel1.germany.agilent.com (msgrel1.germany.agilent.com [134.40.2.57]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id E7B3F4505 for ; Thu, 13 Jun 2002 03:31:48 -0600 (MDT) Received: from denep.germany.agilent.com (denep.germany.agilent.com [134.40.35.17]) by msgrel1.germany.agilent.com (Postfix) with SMTP id 36C6C560 for ; Thu, 13 Jun 2002 11:31:48 +0200 (METDST) Received: from 134.40.35.17 by denep.germany.agilent.com (InterScan E-Mail VirusWall NT); Thu, 13 Jun 2002 11:31:32 +0200 Received: by denep.germany.agilent.com with Internet Mail Service (5.5.2653.19) id ; Thu, 13 Jun 2002 11:31:32 +0200 Message-ID: From: joeri_melis@agilent.com To: joeri_melis@agilent.com, ecos-discuss@sources.redhat.com Date: Thu, 13 Jun 2002 02:31:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [ECOS] Problem configuring integrator board with ecos X-SW-Source: 2002-06/txt/msg00213.txt.bz2 Ok, we solved the problem by locating the code in the hardware init region of eCos itself. -----Original Message----- From: joeri_melis@agilent.com [mailto:joeri_melis@agilent.com] Sent: donderdag 13 juni 2002 10:50 To: ecos-discuss@sources.redhat.com Subject: [ECOS] Problem configuring integrator board with ecos Hi, We are using an ARM7 integrator board to run our software and use the following code to change the clock speed to 60 MHz instead of the default 20 MHz. *(int *)(INTEGRATOR_HDR_LOCK) = INTEGRATOR_HDR_OSC_MEM_UNLOCK; set_osc = *(int *)INTEGRATOR_HDR_OSC & 0x00000FFF; set_osc += INTEGRATOR_HDR_OSC_MEM_60MHz; *(int *)INTEGRATOR_HDR_OSC = set_osc; *(int *)(INTEGRATOR_HDR_LOCK) = INTEGRATOR_HDR_OSC_MEM_UNLOCK + 1; This works fine without eCos but when we combine it with an application using eCos it won't work. We tried locating the code at different spots (cyg_prestart, cyg_user_start, in a thread function) but no changes are made to the register and clock speed. Does anyone have a clue what might go wrong here? Thanks, Joeri. -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss