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; generated 41 minute(s) ago.

  1. I would first try a standard example from the SD...

    I would first try a standard example from the SD library that writes and reads from SD e.g. ReadWrite
    IMHO you are mixing up different low-level calls
    e.g. SD.begin is never called

    Edit: Paul...
  2. Replies
    53
    Views
    2,057

    the ones or "time.h" are probably...

    the ones <time.h> or "time.h" are probably genuine system libraries while "Time.h" should be changed, and then one can get rid of the "Time.h" file
  3. Replies
    53
    Views
    2,057

    I simply delete the Time.h file in Time library...

    I simply delete the Time.h file in Time library and use only TimeLib.h for the specific Arduino stuff (i.e. I anticipate the threatened action)
    Sure in some cases there will be a missing...
  4. Replies
    13
    Views
    308

    So how do you compile (with Arduino IDE or with...

    So how do you compile (with Arduino IDE or with Makefile)?
    with makefile you simply set -D__MK66FX1M0__ for T3.6
    with Arduino you select as you showed in screenshot
  5. Especially fir simple circuits, and try to get...

    Especially fir simple circuits, and try to get realistic models for your components (i.e. not idealistic OPamps)
  6. Replies
    72
    Views
    992

    even 123456.78 Hz turns out correctly

    even 123456.78 Hz turns out correctly
  7. Thread: help teensy 4.0

    by WMXZ
    Replies
    3
    Views
    101

    It seems that Matrix-master has not been ported...

    It seems that Matrix-master has not been ported to T4, which is a different type of MCU
  8. Replies
    72
    Views
    992

    Technically I did that when testing SGTL5000 at...

    Technically I did that when testing SGTL5000 at different sampling speeds
    I first configured the I2S to AUDIO_SAMPLE_RATE_EXACT (44100 Hz) and then I changed the sampling frequency.

    void...
  9. Replies
    72
    Views
    992

    Yes, but with .0f there is nothing thrown away in...

    Yes, but with .0f there is nothing thrown away in the snippet quoted and the definition in AudioStream
  10. Replies
    72
    Views
    992

    #define AUDIO_SAMPLE_RATE_EXACT 44100.0f ?? on...

    #define AUDIO_SAMPLE_RATE_EXACT 44100.0f
    ?? on your statement "strip away those decimals and turn it into an integer."
  11. Replies
    18
    Views
    222

    MOSI Pin11 MISO pin12 SCK pin13 as of T4.1...

    MOSI Pin11
    MISO pin12
    SCK pin13
    as of T4.1 schematic
  12. Replies
    72
    Views
    992

    No problem, but it was your program...

    No problem, but it was your program (contribution), that is referred to.
  13. Replies
    475
    Views
    49,429

    found bug in MTP.cpp around line 353 ...

    found bug
    in MTP.cpp around line 353

    case MTP_PROPERTY_STORAGE_ID: //0xDC01:
    write32(store+1);
  14. Replies
    475
    Views
    49,429

    I'm chasing a Bug , copying from pc 2 teensy...

    I'm chasing a Bug , copying from pc 2 teensy 0x1005 is called with correct storage id, if deleting file 0x1005 is called wit wrong storage number (storage -1)
  15. Replies
    475
    Views
    49,429

    I realized that, However,...

    I realized that,
    However, MTP_EVENT_STORAGE_INFO_CHANGED is a bad test case, as cmd 0x1005 (GetStorageInfo) is called automatically every time delete/copy PC2Teensy is called.

    Also on RAM (were I...
  16. Replies
    475
    Views
    49,429

    Edit: My observation on MTPEvent is wrong (it is...

    Edit: My observation on MTPEvent is wrong (it is the same, only transactionId is now called sessionId)
  17. Replies
    475
    Views
    49,429

    Yes, that was the original idea, but if there is...

    Yes, that was the original idea, but if there is now way to notify PC on changes on Teensy,.... (Or we get events running...)
    If we can get at least ONE (1) event running then we are a step further....
  18. which while loop are you talking about?

    which while loop are you talking about?
  19. Replies
    486
    Views
    9,047

    On the PC side of MTP, you are limited with what...

    On the PC side of MTP, you are limited with what you can do "directly" with the file, because file is not on PC but on Teensy. Consider the File Explorer a window into Teensy.

    What can you do on...
  20. Replies
    475
    Views
    49,429

    Not sure if it may become useful I played around...

    Not sure if it may become useful I played around with non-File_Explorer acess to MTP and come up with following basic windows powershell script


    #inspired by...
  21. Replies
    475
    Views
    49,429

    Yes, everything should be seen from the PC...

    Yes, everything should be seen from the PC standpoint of view (not responder)
  22. Replies
    475
    Views
    49,429

    My setup is VScode with makefile (simular to...

    My setup is VScode with makefile (simular to VisualTeensy)
    I use always MTP-serial
    For terminal I use either Putty or ArduinoMonitor
    Before uploading I have to close terminal, otherwise I have to...
  23. Replies
    475
    Views
    49,429

    There are sendEvents but my hunch is our...

    There are sendEvents
    but my hunch is our problems relate more to usb.c and how to configure mtp_usb.
    There are some pieces in usb.c that I do not understand (esp. sb_prepare_transfer)
    But as Paul...
  24. Replies
    475
    Views
    49,429

    I used that a lot also cmtp-responder...

    I used that a lot
    also cmtp-responder

    but no luck so far
  25. Replies
    475
    Views
    49,429

    This is what I did and do again Only commented...

    This is what I did and do again
    Only commented all but object/store added, object/store removed reset non of the created any reaction from PC.
    Specs say there is no acknowledge to events, and...
  26. Thread: i.MX RT1170 ??

    by WMXZ
    Replies
    3
    Views
    160

    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.
  27. Replies
    475
    Views
    49,429

    @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
  28. Replies
    475
    Views
    49,429

    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.
  29. Replies
    475
    Views
    49,429

    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...
  30. Replies
    475
    Views
    49,429

    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()':...
  31. Replies
    475
    Views
    49,429

    Got moving directories working (both within a...

    Got moving directories working (both within a disk and cross disks)
    Github updated
  32. Replies
    475
    Views
    49,429

    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.
  33. Replies
    475
    Views
    49,429

    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...
  34. Replies
    475
    Views
    49,429

    @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...
  35. Replies
    475
    Views
    49,429

    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);
  36. Replies
    475
    Views
    49,429

    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
  37. Replies
    475
    Views
    49,429

    I updated the MTP repository (strlxxx,...

    I updated the MTP repository (strlxxx, MAX_FILENEME_LEN = 256; also features and limitations in Readme)
  38. Replies
    475
    Views
    49,429

    -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...
  39. Replies
    475
    Views
    49,429

    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...
  40. Replies
    475
    Views
    49,429

    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...
  41. Replies
    475
    Views
    49,429

    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...
  42. Replies
    475
    Views
    49,429

    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"...
  43. 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)
  44. Replies
    475
    Views
    49,429

    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...
  45. Replies
    475
    Views
    49,429

    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...
  46. Replies
    475
    Views
    49,429

    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...
  47. Replies
    53
    Views
    2,057

    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...
  48. Replies
    486
    Views
    9,047

    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)
  49. Replies
    53
    Views
    2,057

    beta5 happened overnight Will next test MTP with...

    beta5 happened overnight
    Will next test MTP with beta5 (had to chase an issue first)
  50. Replies
    475
    Views
    49,429

    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
Results 1 to 50 of 495
Page 1 of 10 1 2 3 4