[En-Nut-Discussion] External memory test

Ralf Spettel r.spettel at raumcomputer.com
Tue Jun 28 16:08:38 CEST 2005


Hi Matin, I do the same with this code:

in file \nut\arch\avr\os
line 76:
//Ralf:
         void hwscan(void);
// end ralf

line 552:void NutInit(void)
//Ralf:
         hwscan();
//end ralf

and in my own project i add:
#ifndef HWSCAN
         void hwscan (void)
         {
                 //empty function
         }
#else
         void hwscan (void)
         {
                 XMemDisable(); //Disable external memory bus

                 //do some tests
                 //code snippes you will find in xmemtext.c

                 //Enable external memory bus
                 MCUCR = _BV(SRE) | _BV(SRW10);
                 #ifdef NUT_3WAITSTATES
                     outb (XMCRA, 0x42);
                     outb (XMCRB, 0x00);
                 #endif

                 hw_put_pgm( PSTR(_AS_ _FKTID_"OK: :-)\r\nStarting OS..."));
         }
#endif

Ralf




>
>I ve to make an external memory test on the ethernut 2.1b board. I m
>using
>Nut OS 3.9.7.1 with ICC-AVR 6.31a. Does anybody now how to start such
>a
>test bevore the runtime environment of Nut OS starts (where to put the
>C code).
>
>Thanks again.
>
>Regards Martin
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion


_________________________________________________




More information about the En-Nut-Discussion mailing list