Posted on May 17, 2011 at 14:31Show us the the read process code. I think that maybe you (after sending cmd by spi) dont do dummy read of DR spi buffer, for ex: check flag in SPI->SR is data sent (0x01 or 0x02 I dont remember) send: SPI->DR = cmd; c...
Posted on May 17, 2011 at 14:30So far, the testing of read/write operations are fine. After ~800k writes to memory (each time different data), read and finally compare read - write I`ve achived 2-3 wrong comparations.
Posted on May 17, 2011 at 14:30Maybe everything is okey. I havent changed a lot, maybe nothing. But now I know that placing breakpoints causes errors. If I place a breakpoint in a place where I know that program will go in a moment I can see that e...
Posted on May 17, 2011 at 14:30I dont know :(. I was only testing the possibility to write less than 512B in block. Now it doesnt matter, because writting/reading 512 and less bytes in block works. The problem is described in second post with that u...
Posted on May 17, 2011 at 14:30Problems persist. Is it normal? I need to reinit the card each time I'm trying to do sth with it. If I init the card at program start and then in 100 ms loop try to read, read/write or write I'm getting after 1 or 2 su...