[ECOS] Problem configuring integrator board with ecos
joeri_melis@agilent.com
joeri_melis@agilent.com
Thu Jun 13 02:31:00 GMT 2002
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
More information about the Ecos-discuss
mailing list