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.08 seconds.

  1. @defragster I ordered new set where I extended...

    @defragster I ordered new set where I extended out the pads, to see if my thumbs will have any success on soldering it then... :D
    26825

    As for Pins and which chip is on it... As you mentioned it...
  2. For the fun of it I will play around with the...

    For the fun of it I will play around with the board for smaller chips and increase the length of the pads and order another set... As this size board is pretty cheap to make...

    I do have two...
  3. Me too ;) I was thinking that if by chance we...

    Me too ;)

    I was thinking that if by chance we went with something like the get/set Context like stuff we could define values anyway we want so could do something like:

    enum {
    CONTEXT_FS_SD...
  4. Replies
    2
    Views
    84

    You might take a look at the example sketch: ...

    You might take a look at the example sketch:
    <examples>/teensy/USB Serial/USBToSerial - It turns your teensy into a usb to serial converter.
  5. As I mentioned earlier (maybe Github Issue), ...

    As I mentioned earlier (maybe Github Issue),

    In the old days like with DOS or the like, I don't remember there being a pre-allocate method, but instead a program might do something like:
    Open...
  6. Good Morning all: We could add some...

    Good Morning all:



    We could add some method like: bool preAllocate(uint64_t length)
    To the File and FileImpl classes. Which would be easy to know what to do with, for SD and MSC classes.
    ...
  7. 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...
  8. :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...
  9. 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;...
  10. 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...
  11. 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
  12. 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...
  13. Replies
    3
    Views
    208

    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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. Replies
    15
    Views
    367

    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...
  19. Replies
    15
    Views
    367

    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...
  20. 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...
  21. 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.
  22. Replies
    113
    Views
    2,879

    :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...
  23. 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...
  24. 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...
  25. Replies
    113
    Views
    2,879

    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...
  26. 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......
  27. 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...
  28. 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...
  29. 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...
  30. Replies
    113
    Views
    2,879

    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...
  31. Replies
    113
    Views
    2,879

    Yes I thought I pushed up change for the cast

    Yes I thought I pushed up change for the cast
  32. Replies
    113
    Views
    2,879

    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...
  33. Replies
    113
    Views
    2,879

    @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...
  34. Replies
    113
    Views
    2,879

    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...
  35. Replies
    113
    Views
    2,879

    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...
  36. Replies
    113
    Views
    2,879

    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.
  37. Replies
    113
    Views
    2,879

    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 ;) )
  38. Replies
    3
    Views
    152

    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...
  39. Thread: Second USB Port

    by KurtE
    Replies
    2
    Views
    126

    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,...
  40. Replies
    113
    Views
    2,879

    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...
  41. Replies
    113
    Views
    2,879

    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:
    ...
  42. Thread: 24 Keys Matrix

    by KurtE
    Replies
    8
    Views
    390

    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...
  43. Replies
    113
    Views
    2,879

    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...
  44. Replies
    5
    Views
    312

    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];
  45. Replies
    5
    Views
    312

    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:
    ...
  46. 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...
  47. Replies
    113
    Views
    2,879

    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...
  48. 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....
  49. 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...
  50. Replies
    113
    Views
    2,879

    Sounds like you are having too much fun!

    Sounds like you are having too much fun!
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4