Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT45DB041E always busy #25

Open
frabert opened this issue Jun 17, 2018 · 0 comments
Open

AT45DB041E always busy #25

frabert opened this issue Jun 17, 2018 · 0 comments

Comments

@frabert
Copy link

frabert commented Jun 17, 2018

Hi! I'm trying to interface an Arduino Leonardo to an AT45DB041E, but I seem to never be able to write to it, as it always gets stuch waiting for the device to get ready:

  SPI.begin();
  flash.setup(1);
  flash.begin();

  flash.bufferWrite(1, 0); // Aways gets stuck here
  for(int i=0;i < 256; i++)
  {
    SPI.transfer(0x00);
  }
  flash.bufferToPage(1, 0);

Any idea what am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant