* [ECOS] accessing external RAM on h8s edk
@ 2005-06-02 9:03 Marc Michalewicz
2005-06-02 9:57 ` Marc Michalewicz
0 siblings, 1 reply; 2+ messages in thread
From: Marc Michalewicz @ 2005-06-02 9:03 UTC (permalink / raw)
To: eCos Discussion
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] accessing external RAM on h8s edk
2005-06-02 9:03 [ECOS] accessing external RAM on h8s edk Marc Michalewicz
@ 2005-06-02 9:57 ` Marc Michalewicz
0 siblings, 0 replies; 2+ messages in thread
From: Marc Michalewicz @ 2005-06-02 9:57 UTC (permalink / raw)
To: eCos Discussion
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-02 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-02 9:03 [ECOS] accessing external RAM on h8s edk Marc Michalewicz
2005-06-02 9:57 ` Marc Michalewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).