GithubHelp home page GithubHelp logo

Comments (9)

sidprice avatar sidprice commented on September 11, 2024 1

Many thanks for the suggestions and help. The issue was the hardware configuration, the module documentation and the chip datasheet are difficult to understand. After digging out my USB to SPI monitor (SPIDriver) and just try lots of simple Python tests I was able to discover the correct hookup.

from ch376msc.

djuseeq avatar djuseeq commented on September 11, 2024

Hi. I know about it, i have tested and in SPI mode works just with using an extra pin (interrupt). Use Ch376msc flashDrive(10, 9); // chipSelect, interrupt pin instead.

from ch376msc.

sidprice avatar sidprice commented on September 11, 2024

Thank you I was able to get it to work using the interrupt input. However, I need to have multiple SPI devices on the bus so I do not think I can use this method.

Do you know if the CH376 works if not using the INT input?

Many thanks for the help :)

from ch376msc.

sidprice avatar sidprice commented on September 11, 2024

Seems I spoke too soon. While the menu appears on the serial monitor (basicUsageSPI sketch) the CH376 does not access the flash drive. It just asks for a drive to be connected.

Note: I did format the flash drive with Active@ Partition Manager.

from ch376msc.

sidprice avatar sidprice commented on September 11, 2024

I am still unable to access my flash drive. I have hooked up the INT input as you sugegsted and also I have formatted the drive with Active@ Partition Manager.

I would appreciate some help in getting this to work.

from ch376msc.

djuseeq avatar djuseeq commented on September 11, 2024

Thank you I was able to get it to work using the interrupt input. However, I need to have multiple SPI devices on the bus so I do not think I can use this method.

Do you know if the CH376 works if not using the INT input?

Many thanks for the help :)

Yes, this is the only option if you plan to attach multiple devices to the SPI bus. MISO, MOSI, SCK signals are shared between devices, every device has his own CS line and CH376 requires plus an extra pin for INT signal.

from ch376msc.

djuseeq avatar djuseeq commented on September 11, 2024

Check that the communication between the DUE and the module is correct, use getChipVer(); method to query the program version. What value did you get?

from ch376msc.

trotterlg avatar trotterlg commented on September 11, 2024

I have used a solution to this issue that works well for me. I use two logic level shifting boards that have an enable pin on them. Tie one side together and use the remaking two sides to go to your devices. Then just enable the one you want with it enable pin while disabling the other.

from ch376msc.

trotterlg avatar trotterlg commented on September 11, 2024

749F0577-86DE-4CF3-B97E-0EEC306922B4

from ch376msc.

Related Issues (20)

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.