This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem accessing external IO on Adder/850
It is working now , I mistype the register.
stw r2,BR4(r4) >> should be stw r3,BR4(r4)
thanks
regards
On Mon, 04 Oct 2004 05:20:41 -0600, Gary Thomas <gary@mlbassoc.com> wrote:
>
>
> On Mon, 2004-10-04 at 05:15, Sugeng Widodo wrote:
> > Hello all,
> >
> > I would like to access our external IO using CS4 as chip select , my
> > IO has 16 bits wide and we want to use 0xfb000000 as base address, so
> > I've done following modification :
> > on adder.S I add following lines :
> > lwi r3,0xFB000801
> > lwi r5,0xFFFF8730
> > stw r5,OR4(r4)
> > stw r2,BR4(r4)
> > on hal_aux.c :
> > CYGARC_MEMDESC_TABLE CYGBLD_ATTRIB_WEAK = {
> > // Mapping for the Adder 8xx development boards
> > CYGARC_MEMDESC_CACHE( 0xfe000000, 0x00800000 ), // ROM region
> > CYGARC_MEMDESC_NOCACHE( 0xff000000, 0x00100000 ), // MCP registers
> > CYGARC_MEMDESC_NOCACHE( 0xfa000000, 0x00400000 ), // Control/Status+LEDs
> > CYGARC_MEMDESC_NOCACHE( 0xfb000000, 0x00008000 ), // Switches
> > address , Added by Sugeng , SSKom , 2004-10-04
> > CYGARC_MEMDESC_CACHE( CYGMEM_REGION_ram, CYGMEM_REGION_ram_SIZE
> > ), // Main memory
> >
> > CYGARC_MEMDESC_TABLE_END
> > };
> >
> > Is this enough to get the right things ?
> > Because my apps always stuck when accesing those address and got
> > following message on console :
> >
> > $T0bthread:00000003;40:00040700;01:0006fe40;#85
> >
> > BTW : I haven't connect any IO , just want to check CS4.
> >
> > I've tried another address like 0xfa300000 without any modification on
> > hal_aux.c just add lines on adder.S , and got same message.
>
> Note: normally for these changes to take effect, you need to rebuild and
> reinstall RedBoot. The hardware setup (in adder.S) only runs in ROM or
> ROMRAM mode.
>
> --
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss