Closed Hardcore-fs closed 12 years ago
Forget this.. After spending a fair amount of time looking into this, I may have a minor solution that fixes the SPI and other issues apart from the 'cold boot'. Also it returns the code to a more cross-platform state without the need for testing the board type.
I have searched, probed, scoped and hacked and can't seem to find the solution to the cold boot. Any other thoughts?
Also the LEDblink is not 100% reliable on a cold boot, I have found and fixed it. Its only a demo so it is better it works (if just a bit slower), I will also file a bug with the Arduino SPI library
I notice the TWS library only allows 160 bytes of buffer space, it would be good if the user could change this by passing in a constructor 512 bytes would be better since this is the size of a sector on the Dos library.
But I notice that you have tied the buffer size with "uint8_t" at various places in the code