Giter VIP home page Giter VIP logo

wavehc's People

Watchers

 avatar

wavehc's Issues

Not working on Arduino Due (Duemilanove)

What steps will reproduce the problem?
1. Running the example daphc on the programming port for Due

What is the expected output? What do you see instead?
daphc.pde: In function 'void play(FatReader&)':
daphc.pde:105:62: error: 'strncmp_P' was not declared in this scope

What version of the product are you using? On what operating system?
wavehc20110919.zip

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Nov 2014 at 12:05

Card init SPI clock rate causing issues on reset with some cards (with solution)

What steps will reproduce the problem?
1. Plug in Arduino, upload sketch - works
2. Press reset on shield - playback very choppy/distorted
3. Press reset on shield again - serial output shows ""No valid FAT partition!"
4. Press reset on shield 3rd time - serial output shows SD I/O error: 6
5. Powering off Arduino or reseating the SD card resets behavior to step 1

What version of the product are you using? On what operating system?
WaveShield 1.1, wavehc20101009, Arduino Uno, OS X. Included SD card, Transcend 
MicroSD (w/adapter) 2GB.

Please provide any additional information below.
I searched for issues related to the ACMD41 stage of SD card init, lots of hits 
but what set this apart was that it worked at first, then degraded.

I noticed that people described the spec requiring <400kHz SPI clock during the 
card init phase.  The current wavehc library sets the clock to 125kHz 
(f_osc/128), which is just under 1/3rd the max recommended init clock rate.  I 
tried the highest available option below 400kHz, 250kHz (f_osc/64), and 
success! I can now reset as many times as I want and no issues.

I changed the following lines in SdReader.cpp SdReader::init
  // Enable SPI, Master, clock rate f_osc/128
  SPCR = (1 << SPE) | (1 << MSTR) | (1 << SPR1) | (1 << SPR0);
To:
  // Enable SPI, Master, clock rate f_osc/64
  SPCR = (1 << SPE) | (1 << MSTR) | (1 << SPR1);

So, for at least this model MicroSD card, it appears 125kHz is too low a clock 
for the card's liking during init.

Original issue reported on code.google.com by [email protected] on 7 May 2011 at 6:18

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.