This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: accessing external RAM on h8s edk


Hi,

luckily I am I found the problem: the PGDDR had to be set to 0x11 and
not 0x01 (as stated below) to enable the SRAM-Chipselect ! Quite
complicated, this kind of CPU.

Cheers,
Marc


Am Donnerstag, den 02.06.2005, 11:03 +0200 schrieb Marc Michalewicz:
> Hi,
> 
> after getting redboot to work, I now have problems to access the
> external RAM on my H8S2329-EDK board. The internal RAM is OK, e.g.
> writing bytes into it via the redboot-cmdline works.
> 
> Has anybody a clue what needs to be done to access the external RAM ?
> 
> I adapted the H8S-2357 port (from Uwe Kindler) in the way that I have
> changed the initialisation-code in the "platform.inc"-file (Bit EAE in
> BCRL especially, but all othere REGS according to the EDK-documentation
> as well), but still no success. If it helps, here is the modified
> extract from my platform.inc:
> 
> INIT_REGS_DATA(CYGARC_ABWCR,  0xF0)
> INIT_REGS_DATA(CYGARC_ASTCR,  0xFF)
> INIT_REGS_DATA(CYGARC_BCRH,   0xD0)
> INIT_REGS_DATA(CYGARC_BCRL,   0x3C)
> INIT_REGS_DATA(CYGARC_WCRH,   0xFF)
> INIT_REGS_DATA(CYGARC_WCRL,   0xFD)
> INIT_REGS_DATA(CYGARC_MCR,    0x00)
> INIT_REGS_DATA(CYGARC_DRAMCR, 0x00)
> INIT_REGS_DATA(CYGARC_RTCOR,  0x00)
> INIT_REGS_DATA(CYGARC_P6DDR,  0x00)
> INIT_REGS_DATA(CYGARC_PADDR,  0x07)
> INIT_REGS_DATA(CYGARC_PBDDR,  0xFF)
> INIT_REGS_DATA(CYGARC_PCDDR,  0xFF)
> INIT_REGS_DATA(CYGARC_PFDDR,  0x80)
> INIT_REGS_DATA(CYGARC_PGDDR,  0x01)
> INIT_REGS_DATA(CYGARC_MSTPCRL,0x00)
> 
> 
> Do I have to modify the linkerscripts and/or other items ? Is there any
> hint in any documentation ?
> 
> Thanks for any help,
> 
> Marc
> 
> 
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]