Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: WMXZ

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: i.MX RT1170 ??

    by WMXZ
    Replies
    3
    Views
    73

    IIRC, there is a thread on this dual core chip....

    IIRC, there is a thread on this dual core chip. you may check it out.
  2. Replies
    454
    Views
    48,459

    @KurtE IIRC USB2 is for Teensy 3.6 2nd USB (your...

    @KurtE
    IIRC USB2 is for Teensy 3.6 2nd USB (your USB-host becoming USB-device)
    Maybe you are using MTP over USBHS ?
    for T4 it is USB1
  3. Replies
    454
    Views
    48,459

    And how does it work? Downloaded SW and now?...

    And how does it work?
    Downloaded SW and now?
    Have difficulties to follow the WorldWideLinks os MS documentations.
  4. Replies
    454
    Views
    48,459

    Got copy functionality working, but is all but...

    Got copy functionality working, but is all but useful.
    While copying if files and directories work, they show up on Windows file explorer only after disable/enable sequence.
    Github updated

    If we...
  5. Replies
    454
    Views
    48,459

    because I did not see your PR yet Anyhow,...

    because I did not see your PR yet

    Anyhow, gives this Warning

    C:\Users\zimmer\Documents\Arduino\libraries/MTP_t4/src/MTP.cpp: In member function 'void MTPD::WriteDescriptor()':...
  6. Replies
    454
    Views
    48,459

    Got moving directories working (both within a...

    Got moving directories working (both within a disk and cross disks)
    Github updated
  7. Replies
    454
    Views
    48,459

    You have definitely more knowledge on USB than I...

    You have definitely more knowledge on USB than I have. Feel free to rewrite the code.
  8. Replies
    454
    Views
    48,459

    It is USB1 for T4.1 main USB. The USB2 is for...

    It is USB1 for T4.1 main USB.
    The USB2 is for USBHS on T3.6 (Yes, I did use 2nd USB on T3.6 as a USB device and not only as USB Host)
    The TX/RM numbers were the result of long testing, i,e. I could...
  9. Replies
    454
    Views
    48,459

    @KurtE yes, I was playing some time with this...

    @KurtE
    yes, I was playing some time with this USB.
    Without an USB analyser it is becoming extremely difficult (there are a lot of possibilities)
    Maybe by comparing again the code with Paul's...
  10. Replies
    454
    Views
    48,459

    The 62 is a residual of previous 64 byte...

    The 62 is a residual of previous 64 byte limitation
    delete this line and replace next line
    with

    strlcpy(r.name, filename,MAX_FILENAME_LEN);
  11. Replies
    454
    Views
    48,459

    I only replaced the original "?", but was...

    I only replaced the original "?", but was planning to use the one you are mentioning, at a later time
  12. Replies
    454
    Views
    48,459

    I updated the MTP repository (strlxxx,...

    I updated the MTP repository (strlxxx, MAX_FILENEME_LEN = 256; also features and limitations in Readme)
  13. Replies
    454
    Views
    48,459

    -No problem to use the strlxxx vestions -No...

    -No problem to use the strlxxx vestions
    -No problem to use

    #define MAX_FILENAME_LEN 256
    definition in SD.h
    Need only to decide what to do if combination of file path components exceed this...
  14. Replies
    454
    Views
    48,459

    For the whole filename including multiple...

    For the whole filename including multiple directories.

    Yes, I have seen people that put a lot of metadata into a filename

    And I do not like these filenames

    Anyhow, it is the record...
  15. Replies
    454
    Views
    48,459

    Yes, a filename size of 64 was selected in...

    Yes, a filename size of 64 was selected in original code https://github.com/yoonghm/MTP/blob/master/MTP.h
    this is not the absolute filename that gets constructed for disk access only the filename...
  16. Replies
    454
    Views
    48,459

    Honestly, the same is here. But as it happened, I...

    Honestly, the same is here. But as it happened, I needed a multi disk MTP responder for an important project of mine.
    But I'm always available to chase down bugs as they surface.

    IMHO, the next...
  17. Replies
    454
    Views
    48,459

    Before someone else discovers this: Size of used...

    Before someone else discovers this:
    Size of used disc space is only interrogated at the beginning of a MTP session.
    Any PC to Teensy copy, deletion of files, does not change the "used disk space"...
  18. You may need to adapt the board.DXX to the teensy...

    You may need to adapt the board.DXX to the teensy you are using
    (don't know the circuitPython convention)
  19. Replies
    454
    Views
    48,459

    OK Please remember that for T4.1 there is a...

    OK
    Please remember that for T4.1 there is a custom MTP USB implementation (i.e. it is not made by Paul, but by me). It was done at a time when there was only USB_Serial, HID and SEREMU
    i.e. in the...
  20. Replies
    454
    Views
    48,459

    If you go into MTP.cpp at the top define DEGUG to...

    If you go into MTP.cpp at the top define DEGUG to 1 then Terminal will send you all commands and replies over serial. The first word is always a teensy command or answer
    To see what it does go to...
  21. Replies
    454
    Views
    48,459

    OK, to the red points I will look into them ...

    OK, to the red points
    I will look into them

    -copying works only from and to Teensy. (MTP calls that get and send, teensy should say PC copy failed, have never tested failing operation, was happy...
  22. Replies
    21
    Views
    685

    Tested MTP on beta5, seems to work. Note: for...

    Tested MTP on beta5, seems to work.
    Note: for using USB_MTPDISK_SERIAL one has to a) copy file contents into different usb_desc.h and boards.txt
    Native MTP mode uses SEREMU and not Serial
    If using...
  23. Replies
    384
    Views
    6,851

    I had that overnight after updating FS.h etc. It...

    I had that overnight after updating FS.h etc.
    It is due to Paul changing file.size() to 64 bit.
    Should be solved by now (I cleaned up also mtp_test example)
  24. Replies
    21
    Views
    685

    beta5 happened overnight Will next test MTP with...

    beta5 happened overnight
    Will next test MTP with beta5 (had to chase an issue first)
  25. Replies
    454
    Views
    48,459

    OK, it seems that I found the corrupting line...

    OK, it seems that I found the corrupting line
    github updated Basic tests done with T4.1 and T3.6
  26. Replies
    454
    Views
    48,459

    @mjs513 Following Paul's advice I changed the...

    @mjs513
    Following Paul's advice I changed the filesystem registration
    It should be no problem to register any type of filesystems, as long they are derived from FS.
    I will update the example next...
  27. Replies
    454
    Views
    48,459

    I updated the MTP code to accept any FS that is...

    I updated the MTP code to accept any FS that is derived from FS and File classes.
    Have a look into mtp_test.ino example to see how it works.
    Needs latest cores (inclusive print64)
    Tested only with...
  28. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    So, I adapted the MTP code to the suggested...

    So,
    I adapted the MTP code to the suggested separation between FS-agnostic interface and the main code, where user adds FS of interests.
    Not sure if I did it exactly as suggested, but it works....
  29. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    Thanks Paul, I will try to follow your...

    Thanks Paul,
    I will try to follow your suggestions
    Originally I wanted to avoid a MAXFILESYTEMS declaration, but as pointers it does not uses too much space.
  30. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    The idea is to use everywhere the FS interface...

    The idea is to use everywhere the FS interface class and in the, what I call mSD_Base class, something like


    if(cs[ii]==0) return ((SDClass*) &sdx[ii].open(...);
    else if (cs[ii]==256) return...
  31. Replies
    454
    Views
    48,459

    As you can see in other thread, I'm fighting with...

    As you can see in other thread, I'm fighting with vtable now.
  32. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    So, the following program works class FS {...

    So,
    the following program works


    class FS
    {
    public:
    FS() {}
    virtual int open(const char *filename, uint8_t mode = 0);
    };
  33. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    Simply copy all into Arduino IDE and compile (You...

    Simply copy all into Arduino IDE and compile (You need the latest TD beta with new SD library and FS.h) I have it on T4.1
    Anyhow, It seems that the Cast

    ((SDClass *)&sdx[store])
    is the...
  34. Thread: vtable problem

    by WMXZ
    Replies
    13
    Views
    196

    vtable problem

    I have the following problem
    this code (a minimal, single file version of the MTP-responder)


    #include "SD.h"

    class mSD_Base
    {
    public:
    mSD_Base(FS *sd) {sdx=sd;}
  35. Replies
    384
    Views
    6,851

    I thought so (use of interfaces), but by...

    I thought so (use of interfaces), but by extending lost this concept.
    Will revisit my MTP implementation in this light.
  36. Replies
    454
    Views
    48,459

    @mjs513 Now I cleaned up the littleFS issue....

    @mjs513
    Now I cleaned up the littleFS issue.
    AFAIK, the issue is that littleFS can only be included once in project, but Storage and main need the class definitions.
    I also wanted to avoid config...
  37. Replies
    454
    Views
    48,459

    maybe because I'm using makefiles?

    maybe because I'm using makefiles?
  38. Replies
    454
    Views
    48,459

    Solved and updated Was delete had storage still...

    Solved and updated
    Was delete had storage still hard coded

    Next issue?
  39. Replies
    454
    Views
    48,459

    See my edits on previous post Yes, I know...

    See my edits on previous post
    Yes, I know alternative begin (you have it in your code also)
  40. Replies
    454
    Views
    48,459

    @mjs513 Solved problem with copying from PC to...

    @mjs513
    Solved problem with copying from PC to teensy
    Issue was ambiguity of root index (MTP considers root always -1 independent of storage) I took care of this for all but sendObject. corrected...
  41. Replies
    454
    Views
    48,459

    OK, I think what is going on, will check

    OK, I think what is going on, will check
  42. Replies
    454
    Views
    48,459

    I changed SPI click speed to 16 MHz as this seems...

    I changed SPI click speed to 16 MHz as this seems good for testing and moved it as define outside configuration function
  43. Replies
    454
    Views
    48,459

    I decided to have one Index file in drive 0. and...

    I decided to have one Index file in drive 0. and use the storage indicator of MTP to switch between drives.
    Not sure if this is the best solution, so time will see.

    Re SPI speed: 33 MHz was the...
  44. Replies
    454
    Views
    48,459

    @mjs513 OK, for multiple cards you have to do...

    @mjs513
    OK, for multiple cards you have to do two things in main program (*.ino)
    - Making sure SPI port definitions are correct (the values in MTP_test are for Teensy 4.1, (added a note))
    -...
  45. Replies
    384
    Views
    6,851

    As you realized later, this coding style WAS...

    As you realized later, this coding style WAS supported, at least for a while.
    Anyhow, my exercise was only to make the case that I suggested a coding style like (this is an example!)

    File file =...
  46. Replies
    384
    Views
    6,851

    Sure, thats why I gave this example, which could...

    Sure, thats why I gave this example, which could easily be avoided having an additional future oriented open method. One always can maintain the backward compatible methods.
    BTW, FILE_WRITE is not...
  47. Replies
    384
    Views
    6,851

    My preference would be to always support a...

    My preference would be to always support a transparent mode, where implementation is restricting option, So I vote for an 'oflag_t mode = O_READ' open

    Edit: As an example: "File file =...
  48. [QUOTE=radu;259910] Is not begin/end transaction...

    [QUOTE=radu;259910]
    Is not begin/end transaction doing that?
    you only need to pass the right CS (or SS) pin
  49. Replies
    384
    Views
    6,851

    reason is SD defines mode in open as uint8_t,...

    reason is SD defines mode in open as uint8_t, while SDFAT expects 32 bit.
    This prohibits the use of O_ type modes.
  50. Thread: TDM as slave

    by WMXZ
    Replies
    13
    Views
    308

    Not sure if that goes into the right direction...

    Not sure if that goes into the right direction for your application (in my case it is input not output)
    I use SAI1 with two dataports RXD0, RXD1
    I control two ADCs with one bitclock and framesync....
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4