xxxajk/generic_storage

‘MASS_MAX_SUPPORTED_LUN’ undeclared

athanase opened this issue · 11 comments

Hi,
I just started to use you library which looks really promising.
However, I encounter a problem while trying to build an example (again your example) called testusbhostFAT.
When building it, I have an error because MASS_MAX_SUPPORTED_LUN is not declared.
I am trying to write a file to an USB stick via the Arduino ADK.
Thanks

It's not meant for use via ADK, plus, I have to do an upload due to a small
bug. I also need a few extra details from you.

  1. Which Arduino is your base. This is really only going to work well if at
    all on a mega. it is not tested yet on a mega2560.
  2. Do you have a quadram? If not, you are going to be very limited in what
    you can do because of memory constraints. Do yourself a favor, and get or
    make one. order from here, schematics too:
    http://ruggedcircuits.com/html/quadram.html
  3. Are you using the USBHOST 2.0 library? If not, you totally need that.
    https://github.com/felis/USB_Host_Shield_2.0

On Wed, May 22, 2013 at 5:48 AM, Jean Inderchit notifications@github.comwrote:

Hi,
I just started to use you library which looks really promising.
However, I encounter a problem while trying to build an example (again
your example) called testusbhostFAT.
When building it I have an error because MASS_MAX_SUPPORTED_LUN is not
declared.
I am trying to write a file to an USB stick via the Arduino ADK.
Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

Oh, one other thing. You will also need my patch. and the latest 1.0.5
Arduino. Email me directly for the patch.

On Wed, May 22, 2013 at 1:16 PM, Andrew Kroll xxxajk@gmail.com wrote:

It's not meant for use via ADK, plus, I have to do an upload due to a
small bug. I also need a few extra details from you.

  1. Which Arduino is your base. This is really only going to work well if
    at all on a mega. it is not tested yet on a mega2560.
  2. Do you have a quadram? If not, you are going to be very limited in what
    you can do because of memory constraints. Do yourself a favor, and get or
    make one. order from here, schematics too:
    http://ruggedcircuits.com/html/quadram.html
  3. Are you using the USBHOST 2.0 library? If not, you totally need that.
    https://github.com/felis/USB_Host_Shield_2.0

On Wed, May 22, 2013 at 5:48 AM, Jean Inderchit notifications@github.comwrote:

Hi,
I just started to use you library which looks really promising.
However, I encounter a problem while trying to build an example (again
your example) called testusbhostFAT.
When building it I have an error because MASS_MAX_SUPPORTED_LUN is not
declared.
I am trying to write a file to an USB stick via the Arduino ADK.
Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

updates pushed to github.

On Wed, May 22, 2013 at 1:21 PM, Andrew Kroll xxxajk@gmail.com wrote:

Oh, one other thing. You will also need my patch. and the latest 1.0.5
Arduino. Email me directly for the patch.

On Wed, May 22, 2013 at 1:16 PM, Andrew Kroll xxxajk@gmail.com wrote:

It's not meant for use via ADK, plus, I have to do an upload due to a
small bug. I also need a few extra details from you.

  1. Which Arduino is your base. This is really only going to work well if
    at all on a mega. it is not tested yet on a mega2560.
  2. Do you have a quadram? If not, you are going to be very limited in
    what you can do because of memory constraints. Do yourself a favor, and get
    or make one. order from here, schematics too:
    http://ruggedcircuits.com/html/quadram.html
  3. Are you using the USBHOST 2.0 library? If not, you totally need that.
    https://github.com/felis/USB_Host_Shield_2.0

On Wed, May 22, 2013 at 5:48 AM, Jean Inderchit <notifications@github.com

wrote:

Hi,
I just started to use you library which looks really promising.
However, I encounter a problem while trying to build an example (again
your example) called testusbhostFAT.
When building it I have an error because MASS_MAX_SUPPORTED_LUN is not
declared.
I am trying to write a file to an USB stick via the Arduino ADK.
Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

My arduino is an ADK which is a mega2560 with an integrated USB host.
So I also use the USB Host shield 2.0 library which compiles and work perfectly for this card (as I am able to get the descriptors, get the partitions, etc...).
You said that I should get a quadram but don't you think that if I only want to create one file the memory inside would be enough ?

So I'm using your patch with the USBHOST 2.0 library for the ADK (by uncommenting #define BOARD_MEGA_ADK int the file avrpins.h). I compile everything with Arduino Cmake.

And here are the errors:
MASS_MAX_SUPPORTED_LUN was not declared in this scope
MASS_ERR_WRITE_PROTECTED’ was not declared in this scope

And I don't really know what they mean and what they are...

Be sure that only the 2.0 version of usbhost is available.
On May 23, 2013 4:13 AM, "Jean Inderchit" notifications@github.com wrote:

So I'm using your patch with the USBHOST 2.0 library for the ADK (by
uncommenting #define BOARD_MEGA_ADK int the file avrpins.h). I compile
everything with Arduino Cmakehttps://github.com/queezythegreat/arduino-cmake
.

And here are the errors:
‘MASS_MAX_SUPPORTED_LUN’ was not declared in this scope
‘MASS_ERR_WRITE_PROTECTED’ was not declared in this scope

And I don't really know what they mean and what they are...


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-18329238
.

It is, do you know where they are supposed to be defined, and what they are ?

Try the xxxajk branch of the usbhost library. I'll get in touch with Oleg
and find out why it has not been merged yet.
On May 23, 2013 3:45 PM, "Jean Inderchit" notifications@github.com wrote:

It is, do you know where they are supposed to be defined, and what they
are ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-18367190
.

Wait a few more days, he has to do some extra checking, then it will be in the master branch. Again, for now, use the xxxajk branch. You can view it here: https://github.com/felis/USB_Host_Shield_2.0/tree/xxxajk

Perfect ! I will give it a try and I'll let you know in a few hours !
Thanks !

On Friday, May 24, 2013, xxxajk wrote:

Wait a few more days, he has to do some extra checking, then it will be in
the master branch. Again, for now, use the xxxajk branch. You can view it
here: https://github.com/felis/USB_Host_Shield_2.0/tree/xxxajk


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-18381045
.

Jean Inderchit

Resolved. User needed proper Arduino (1.0.5) and a few extra bits. Thank you for testing. Will put details for the masses soon. :-)