[En-Nut-Discussion] Problems writing to flash in Ethernut 3

scostas scostas at det.uvigo.es
Fri Mar 17 16:59:57 CET 2006


Hi again all:

Well, the problems with the serial port dissapeared :?, but now I have
another question:

I tried to write to the Flash memory, but I'm unable. I read the
documentation of the AT49BV322A and the code from jtagomat, but it
doesn't work. I tried this:

    unsigned char *puntero=(unsigned char *)0x10000000;
   
    NutSleep(2000);
    puntero[0x555]=0xAA;
    puntero[0xAAA]=0x55;
    puntero[0x555]=0xA0;
    puntero[0x10001]=0x30;
    NutSleep(1000);
    valor=puntero[0x010001]; // Read the value
    sprintf(cadena2,"Leo: %X",valor);
    ezlcd_print(global_lcd,NULL,cadena2); // print it at the LCD

But I always read 0xFF

But it doesn't work. What's happening?

I'm using TFTP boot method.

Thanks in advance.



More information about the En-Nut-Discussion mailing list