Shop OBEX P1 Docs P2 Docs Learn Events
micro SD question — Parallax Forums

micro SD question

manzanamanzana Posts: 24
edited 2013-04-02 11:47 in Propeller 1
I have a simple task; take samples at 200/second for 24 hours. Seems like a job custom made for the microSD adapter. It doesn't come close to the capacity of the SD memory card. Trouble is, I can only do 8193 long writes successfully. Anything more and it goes south. Any ideas? I am using the PropBOE MicroSD code. Many thanks. Prop really rocks.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2013-04-01 13:35
    It's impossible to tell without more information. "goes south" is not very informative. Some thoughts ... 8193 long writes is just over 32K and that's a common cluster size. The various SD card objects are perfectly happy transitioning from one cluster to another, but that takes more time since several blocks have to be allocated to start the new cluster. You might try formatting the card with a larger cluster size. You might also try pre-allocating the file using your PC, filling it with zeroes or spaces or some other value. You might post the exact code you're using. Often this sort of problem has nothing to do with OBEX or Parallax example code.
  • JonnyMacJonnyMac Posts: 9,108
    edited 2013-04-01 17:05
    Could be the quality of the card. I wrote an animation recorder program that would barf after about 20 seconds; on changing to a higher quality card the problem went away.
  • manzanamanzana Posts: 24
    edited 2013-04-02 11:47
    thanks guys. Will give it a shot. I just have it in a simple loop. I can write ok up to 8193 times and read it back. Any more and it never ends the write loop. Will try a different card too.
Sign In or Register to comment.