AVR8 LUFA USB host mass storage

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I am Shafin Vahora, embedded software engineer at system level solutions(INDIA) Pvt. Ltd. I am using LUFA USB stack to integrate our usb 2.0 host controller IP core. I am using LUFA 170418 release from http://www.fourwalledcubicle.com....

I had worked with mass storage host demo from given source. I am able to serve all request as defined here using our own IP core. I want to know about how to show pen drive? I have integrated FATFs as taken references from https://www.avrfreaks.net/forum/.... I have also changed read/write method as per used in mass storage host demo application and fortunately i got success in creating file "LUFA.txt" as defined, but how i can represent drive? What can i do further with this revision?

 

 

Thanks.

 

 

Regards,

Shafin Vahora

 


 

Regards,

Shafin Vahora
Jr. Embedded Software Engineer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What do you mean "how can I represent (this) drive?"

 

How are you now navigating among files on that drive? Or are you? Or, do you simply provide an explicit file path as a string?

 

Do you have a display? If no display, how do you indicate device status to the user? If there is a display, what sort of display and how are you using it now?

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

Last Edited: Fri. Jul 13, 2018 - 08:55 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I meant that i want to show pendrive to user attached to the my board. As i did research and came to know that you can see files created with name "LUFA.txt" and it's fine for me.

 

But, i am facing an issue in cache flush when writing something to file using f_write. As i see write to buffer is performing well as f_write returns success but during f_sync(), pendrive led is blinking for a long time and not getting anything. What should be there to take care in f_sync?

Regards,

Shafin Vahora
Jr. Embedded Software Engineer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

shafin.vahora.388 wrote:
I am Shafin Vahora, embedded software engineer at system level solutions(INDIA) Pvt. Ltd. I am using LUFA USB stack

Here: http://www.slscorp.com/ ?

 

So, if this is a commercial project, do you have a commercial licence?

 

Dean Camera wrote:

 

Commercial entities may be interested in purchasing a company-wide commercial license, which gives them the right to use LUFA within the company, without being subject to the attribution clause of the MIT license that the free version of LUFA is distributed under. This means that with a commercial license, you are free of all obligations to clearly indicate the use of the LUFA project within your commercial product's documentation.

Purchasing a license to use LUFA commercially has added benefits over the free version, other than supporting the author's development of future projects and products. With a US$1500 commercial license to use LUFA, you get:

  • The right to use LUFA without attribution
  • Priority over support and feature requests
  • Three free hours of consultation with the author to help develop your product

Commercial LUFA licenses are perpetual; once purchased, you have the right to use all current and future versions of LUFA commercially subject to the altered license. You do not have to re-purchase a licence each time a new version of LUFA is released.

If you are interested in purchasing a commercial license to use LUFA, please download the order form below, fill it out, and email it to me so that you can be invoiced.

 

 

http://www.fourwalledcubicle.com/PurchaseLUFA.php

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Sat. Jul 14, 2018 - 09:04 AM