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

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Glad it worked! Mike and I were trying just...

    Glad it worked!

    Mike and I were trying just about everything we could think of to localize the issue. Finally created an indexed file where the first buffer
    would be 500 bytes long and all...
  2. :D I Did 10 writes of the big file to the...

    :D

    I Did 10 writes of the big file to the bogus FS... All went through.

    I also then rebuilt other sketch and copied several large audio files and they went through fine to the SD Card...

    So...
  3. I just tried it: ... endpoint->next =...

    I just tried it:

    ...
    endpoint->next = (uint32_t)transfer;
    endpoint->status = 0;
    USB1_ENDPTPRIME |= epmask;
    endpoint->first_transfer = transfer;
    end:
    endpoint->last_transfer = transfer;...
  4. Not a problem... So am I (curious)... Once we...

    Not a problem... So am I (curious)...

    Once we have reliable USB communications, there are some more moving parts to figure out and finalize (at least for this next release). How many of these...
  5. Glad you are able to reproduce. So keeping...

    Glad you are able to reproduce. So keeping fingers crossed it won’t be too hard to resolve
  6. Actually the post was Feb 28th this year... Paul...

    Actually the post was Feb 28th this year... Paul Joined in 2012 or should say started forum back then...

    But as he mentioned, which Teensy would make a difference. Also may make difference on...
  7. Replies
    3
    Views
    205

    Sorry I don't use the Audio shield very much, but...

    Sorry I don't use the Audio shield very much, but I am pretty sure you can use it along with other I2C devices, as long as the devices have different I2C addresses.
    I believe the Adafruit board for...
  8. I believe this has been asked a few times before,...

    I believe this has been asked a few times before, for example in the thread: https://forum.pjrc.com/threads/54633-Two-Joystick-HIDs-at-the-Same-Time-(Teensy-2-0)?p=271837&viewfull=1#post271837 And...
  9. If it were me, I would probably hook up the SPI...

    If it were me, I would probably hook up the SPI pins to a Logic Analyzer and compare the two versions to see if anything obvious.

    Other things I might check include things like:

    Are the...
  10. Now for a completely random Side Note: yesterday...

    Now for a completely random Side Note: yesterday while wondering what was going on with MMOD, like: does the file look reasonable...

    I hacked up sketch that listed the contents of the SD Card, and...
  11. As has been mentioned since you posted, there...

    As has been mentioned since you posted, there have been a few different ways people have connected up the SDIO on the T4. I have a few different ones including the ones from Paul, which uses the...
  12. Replies
    15
    Views
    355

    Sounds like old or random stuff... That is if...

    Sounds like old or random stuff...

    That is if you look at the current SD library: https://github.com/PaulStoffregen/Sd
    There is no utility directory...

    That is from the earlier version of...
  13. Replies
    15
    Views
    355

    If you wish for it to open at the start of the...

    If you wish for it to open at the start of the file, you can do it like you did.

    Alternatively you could: frec = SD.open("RECORD.RAW", FILE_WRITE_BEGIN);
    This will open an existing file and not...
  14. As I mentioned I was playing around with one of...

    As I mentioned I was playing around with one of the FRDM4236 break out board kits...
    http://www.trainer4edu.com/edubase_teensy/frdm_4236.html

    Mine has the 5 pin USB connection on it, although...
  15. Tried quick test with t4 with t4236 adapter and...

    Tried quick test with t4 with t4236 adapter and played a few wave files will try more later.
  16. Replies
    112
    Views
    2,761

    :D Wonder if the software could/should be...

    :D

    Wonder if the software could/should be updated, to when you say play X.wav if it is going to fail due to new format or wrong bit rate, that it might return some error message to inform the...
  17. Sorry, Busy debugging some other stuff... ...

    Sorry,

    Busy debugging some other stuff...

    When you say Crashing... Are you saying that the program crashes and restarts?

    With T4.x you at times capture some debug information, by using...
  18. Another quick update: I now have it not crashing...

    Another quick update: I now have it not crashing by detecting the read failure... I try reading again still fails... I also then changed code to use the global object SD
    and to print out...
  19. Replies
    112
    Views
    2,761

    Wonder if related to issue trying to figure out...

    Wonder if related to issue trying to figure out why MicroMod is faulting.

    So far looking like a read failing and returning that it read 65535 bytes on a read of buffer of 512 bytes... And then the...
  20. Follow on from yesterday... Again not sure what...

    Follow on from yesterday... Again not sure what is different between T41 and MMOD...

    But @mjs513 and myself have done some more tracing today...
    I showed a picture of two runs side by side......
  21. Minor update... Thought I would enable some of...

    Minor update... Thought I would enable some of the debug output that was ifdefed out or commented out in that function...
    26791
    I ran it again on MicroMode and T4.1... Notices the sizes of the...
  22. Thanks @FrankB and @mjs513... As for Cache stuff,...

    Thanks @FrankB and @mjs513... As for Cache stuff, I did not think it would make much difference and it did not as all of the reads appear to be using memory in the DTCM:

    Press any key to play a...
  23. Not sure which thread would be best for this: ...

    Not sure which thread would be best for this: But we were playing with the MTP with MP3 stuff, found everything was working but went to try doing it on MicroMod and am having it fail on WAV file on...
  24. Replies
    112
    Views
    2,761

    Note: I am going to take the MicroMod issue over...

    Note: I am going to take the MicroMod issue over to the integration thread as it is not really related...
  25. Replies
    112
    Views
    2,761

    Yes I thought I pushed up change for the cast

    Yes I thought I pushed up change for the cast
  26. Replies
    112
    Views
    2,761

    Update on MicroMod: I turned on debug printing...

    Update on MicroMod:

    I turned on debug printing in Cores, startup a second T4 connected using the USB To Serial sketch..

    Then rebuilt and sure enough it faulted. Note: I am using my own updates...
  27. Replies
    112
    Views
    2,761

    @all - I have now been playing with the MMOD with...

    @all - I have now been playing with the MMOD with Paul's break out board. Mainly because it has both USB and SDIO version of SD...

    I tried running same program I run on T4.1... Which is a...
  28. Replies
    112
    Views
    2,761

    Paul, I don't think that the @mjs513 PR to...

    Paul,

    I don't think that the @mjs513 PR to Audio has anything to do with Frank's work. It is simply to allow things like wave files to be played that are on other storage
    than just SD cards. So...
  29. Replies
    112
    Views
    2,761

    You are right, except that I don't think they are...

    You are right, except that I don't think they are always properly aligned...
    Did not run into this with other code may need to be updated at a low level... (I believe the code is in SDFat in...
  30. Replies
    112
    Views
    2,761

    Try syncing up to my USBHost_t36...

    Try syncing up to my USBHost_t36 FS_Integration_MSC branch... I believe the AAC and MP3s are now working without changes to core.
  31. Replies
    112
    Views
    2,761

    Will have to play some more with this today and...

    Will have to play some more with this today and see if we can isolate...
    When you say the would not play... Did the open fail or did they just not produce noise (oops I mean music ;) )
  32. Replies
    3
    Views
    146

    Also note, sometimes I have had where the address...

    Also note, sometimes I have had where the address does not translate to a good line number. I have had this happen when for example the code overwrites parts of memory, like things on the stack or...
  33. Thread: Second USB Port

    by KurtE
    Replies
    2
    Views
    122

    This is something that obviously Paul can answer...

    This is something that obviously Paul can answer a lot better, but will try...

    Not sure exactly what you are asking.

    a) if asking can you connect up a different connector to the main USB port,...
  34. Replies
    112
    Views
    2,761

    You are right that it is very likely to be...

    You are right that it is very likely to be related to the cache... But the question is how...

    Example: Cache reads of stuff goes faster than without cache... Also maybe different on memory buss...
  35. Replies
    112
    Views
    2,761

    I know late to the table... But decided to at...

    I know late to the table...

    But decided to at least set it up...
    So with @mjs513s help was able to setup his test sketch and get rid of most of the warnings, except:
    ...
  36. Thread: 24 Keys Matrix

    by KurtE
    Replies
    8
    Views
    387

    Like @houtson mentioned, you might try the keypad...

    Like @houtson mentioned, you might try the keypad library solution.

    A long time ago I wrote my own code for a 20 button matrix... which does something similar to what you mentioned.
    But there...
  37. Replies
    112
    Views
    2,761

    Note: that is why I asked about DMAMEM back in...

    Note: that is why I asked about DMAMEM back in the dart board post...


    Unfortunately this is not really a fix, but at least it helps localize the issue.

    At this point I would doubt that...
  38. Replies
    5
    Views
    309

    Oops sorry, I forgot there is no %b... I...

    Oops sorry,

    I forgot there is no %b... I mostly have used %x for hex...

    Lots of ways to code: could be something like:


    void setup()
    {
    char buffer[17];
  39. Replies
    5
    Views
    309

    Note: With Teeny serial, you do have printf: For...

    Note: With Teeny serial, you do have printf:
    For example I believe your first could be replaced by something like:

    Serial.printf("0x%016b", inNumber);

    Your other part can be done like:
    ...
  40. MTP_Test builds again if you turn on that option:...

    MTP_Test builds again if you turn on that option:

    The compiler did not like the sizes that were being used for the sizes of numbers:

    -const int lfs_ram_size[] = {200'000,4'000'000}; // edit to...
  41. Replies
    112
    Views
    2,761

    Ideas? Maybe not ;) Darts(Questions)? Maybe :D...

    Ideas? Maybe not ;) Darts(Questions)? Maybe :D

    Things like: How often is allocBuffer called? And for what sizes? Is it ever called with 0? Does that cause problems?
    Why does it use calloc...
  42. Hi @defragster - I must admit, I have not been...

    Hi @defragster - I must admit, I have not been using the mtp-test program for awhile now. Most of the time right now I alternate between:

    USB_MTP-logger - When I am testing more of the MSC stuff....
  43. Now back to something complete random.... Sort...

    Now back to something complete random.... Sort of...

    Today I played a little more with the Rawhid stuff to see if I can make it work closer to the MTP transfer code to see if I could replicate...
  44. Replies
    112
    Views
    2,761

    Sounds like you are having too much fun!

    Sounds like you are having too much fun!
  45. :D Glad we saw the same thing. Again I feel...

    :D Glad we saw the same thing.

    Again I feel like I am throwing darts into a pitch black room, hoping to hit a small target :D

    But I have pushed up some experiments in progress for cores and...
  46. needless to say, I am not an expert on all of...

    needless to say, I am not an expert on all of this, (i.e. the questions)

    You are right about the max per packet payload is 512 at high speed. But as I browse through the USB spec... Things like...
  47. Bulk versus Interrupt USB Endpoints

    Paul and maybe others,

    I know that some of this may be really Fundamental USB stuff, but I am not sure of the functionality
    differences of end points that are type 2(BULK) versus type...
  48. @Paul and all, Follow on to previous post. ...

    @Paul and all,

    Follow on to previous post. Tried similar on Ubuntu 20.04.. Installed Wireshark again plus modprobe ...

    Moved the same Teensy board plus SSD to machine (running same sketch...)...
  49. Paul and others: @mjs513 had a good idea of...

    Paul and others: @mjs513 had a good idea of trying to capture these USB issues of either windows dropping the MTP or we miss some packets when doing SendObject...
    and sent me a capture of when it...
  50. Follow on from above: I was curious about if...

    Follow on from above:

    I was curious about if maybe there might be hints in the USB information received on stuff missing.

    So I updated the usb_mtp.c.h code to have a new extended function:...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4