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

Search:

Type: Posts; User: Frank B

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. WhoAmI sounds good. It could just return a unique...

    WhoAmI sounds good. It could just return a unique ID (enum)
  2. TD does not allow to generate crash reports with...

    TD does not allow to generate crash reports with custom texts.
    I proposed that, and my original crash report supported that and even had a "assert", but it seems such messages are not wanted.
  3. Thought I just try "new" on a ESP32: [ ...

    Thought I just try "new" on a ESP32:



    [ 1][D][esp32-hal-cpu.c:211] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz

    abort() was called at PC 0x4016b1af on core 1

    ...
  4. Preallocation is normally not needed and in case...

    Preallocation is normally not needed and in case of SD only there to speed up writing. Preallocating blindly, independend of the medium would be worse and not helpful. It should be used for this...
  5. The main missing part are concurrent accesses...

    The main missing part are concurrent accesses from interrupts (like audio lib). Everything else is nice to have.

    And what happens when the PC accesses a file that is opened by the user program. A...
  6. RVH, cool :) Which chip do you emulate? I ported...

    RVH, cool :) Which chip do you emulate?
    I ported a Commodore C64 SID emulation (reSID by Dag Lem) long time ago.

    Sound it not too bad on a Teensy:...
  7. I've set it back to "Public". This...

    I've set it back to "Public".

    This functionality should *really* be in the official Teensyduino.
    It's not a task for a user contributed lib.

    (And at least for some time I'll will not...
  8. Yes, it should be possible to reach lower...

    Yes, it should be possible to reach lower frequencies. There are several prescalers in the chain. Best is to take a look at the reference manual.
    However, from memory I don't know which ones are...
  9. Replies
    113
    Views
    2,898

    It all does not matter much. It just needs the...

    It all does not matter much. It just needs the #include.
    You can add it to your Sketch, too (after #include <Audio.h>)

    You can append the keywords, too:...
  10. The question is, what your exact definition of...

    The question is, what your exact definition of "simple" is. Best is to take a look at the SGTL-5000 datasheet - and the audio shield schematic - if there are open questions.

    Easiest is to use the...
  11. Yes, this demo uses my old (and outdated) ILI9341...

    Yes, this demo uses my old (and outdated) ILI9341 T3 DMA lib that Kurt used as the basis for his great library.
  12. Could this cause problems with CDC, too? (Tx)

    Could this cause problems with CDC, too? (Tx)
  13. Currently, there is no way. Teensyduino does not...

    Currently, there is no way. Teensyduino does not support anything like that.
    Perhaps with SD in SPI mode..

    What you can try: Stop the Audio library interrupts, then access the card. This *might*...
  14. https://internetofthingsagenda.techtarget.com/defi...

    https://internetofthingsagenda.techtarget.com/definition/microcontroller

    Excerpt:


    Perhaps one of the first linux <30Years old? would run after some modifications. Worst is, that Arm Cortext...
  15. As said. Depends ... :) Yes they are passed as...

    As said. Depends ... :) Yes they are passed as pointers. There can be a difference, esp. if the loop/array (or pointer) index is used for other things, too. And the compiler can choose to either -...
  16. Do yourself a favor and take a quick look at the...

    Do yourself a favor and take a quick look at the audio library and design tool :)

    And yrs, video is cool:
    This was with a Teensy 3.6, many years ago:

    ...
  17. That looks like 1 bit shifted. Are you sure SPI...

    That looks like 1 bit shifted.
    Are you sure SPI MODE 1 is correct?

    Very unlikely, that Platformio produces other code than Arduino for SPI re: the Bit shift.
    Esp with knowing that they just use...
  18. Replies
    23
    Views
    9,641

    This might be better suited:...

    This might be better suited: https://forum.pjrc.com/threads/52175-Audio-Recording-Logging-to-SD-card-gt-microSoundRecorder?highlight=sound+recorder
  19. Replies
    23
    Views
    9,641

    I recommend a Teensy 4.1, to use its inbuilt SD...

    I recommend a Teensy 4.1, to use its inbuilt SD Slot (not the one from the shield) and a really good SD Card (There is a thread about good cards here). Note, both: Teensy 4.1 PLUS fast card :)
    The...
  20. Replies
    113
    Views
    2,898

    Teensyduino doesn't allow errormessages. Only...

    Teensyduino doesn't allow errormessages. Only Serial.prints (with all its disadvantages)
    But, right, play() could at least return an error - an enum or similar.
  21. SD-Pin settings hit us every time with a new...

    SD-Pin settings hit us every time with a new model.. ;)
    Good catch.
    I hope any future model will have the required (and acc. to the standard mandatory) pullups on all data-lines + cmd...
  22. Oops, yes, right. Been confused by all the...

    Oops, yes, right. Been confused by all the different MCUs (not Teensy only)..
  23. Replies
    113
    Views
    2,898

    They probably use a newer header than the...

    They probably use a newer header than the waveplayer supports.
    Microsoft-typical (not sure about the history - i think they just took the apple aiff-header and senseless modified it(?) - as usual...
  24. But as general hints for speed: - Don't make...

    But as general hints for speed:
    - Don't make the array const - this way it will be in RAM and does not have to be read from the flash.
    - Make it a local variable if possible, so that the...
  25. Replies
    113
    Views
    2,898

    What is "DiskIOMB"?

    What is "DiskIOMB"?
  26. Depends... :) ..on how the compilers decides to...

    Depends... :)
    ..on how the compilers decides to translate it.
    If he is out of registers in a more complicated loop, it is of some use not to need an index. Often, it is possible to remove the index...
  27. Replies
    113
    Views
    2,898

    Thanks :) and..it worked all the time (ok,...

    Thanks :)

    and..it worked all the time (ok, till last month when encryption was added... :-)
  28. Also, I'd add a debug-print for all cache...

    Also, I'd add a debug-print for all cache handling (flush, delete, etc), directly inside these funcs that prints an error if address is not 32-alinged (lower bits all == 0) or size is not a 32...
  29. Try the cache-test (by switching it off for a...

    Try the cache-test (by switching it off for a test) again ... behaves it differently? if yes, you found a reason..
  30. Replies
    113
    Views
    2,898

    @wwatson, Thank you for the PR :)

    @wwatson,

    Thank you for the PR :)
  31. Replies
    3
    Views
    136

    I'd try without the PLL. And, the T4 (Which...

    I'd try without the PLL.
    And, the T4 (Which Teensy do you use?) uses exactly 44100Hz. It has its own high precision audio, low jitter PLL.
    MCLK over a dupont may not work. I never had luck with...
  32. Replies
    113
    Views
    2,898

    If you (@wwatson) do a PR, I'll merge it.

    If you (@wwatson) do a PR, I'll merge it.
  33. Replies
    113
    Views
    2,898

    @Paul, yup, this thread is about the aac/mp3/flac...

    @Paul, yup, this thread is about the aac/mp3/flac codecs - has nothing to do with "my" waveplayer.

    I wouldn't merge the codecs to the offcial library. Although it works pretty good and stable...
  34. Replies
    113
    Views
    2,898

    ..and I would porbably do this in...

    ..and I would porbably do this in queue_Data_Transfer() in ehci.cpp

    Are writes not affected?? I guess yes.. so it would be needed for the other direction, too?
  35. Replies
    113
    Views
    2,898

    Is it needed to flush it? If it gets overwritten...

    Is it needed to flush it? If it gets overwritten anyway (by the read), an arm_dcache_delete() would be faster.
  36. Replies
    113
    Views
    2,898

    I hope the sectorBuffer is _always_ aligned?...

    I hope the sectorBuffer is _always_ aligned? Otherwise it will crash the heap in other cases.
    Would probably be needed to check this (and if the size is guraranteed to be a multiple of 32) with an...
  37. Replies
    113
    Views
    2,898

    26784 Is there a case where it is not on the...

    26784

    Is there a case where it is not on the heap?
  38. Replies
    113
    Views
    2,898

    I've fixed FLAC (Tested with 3.6 only - T4 seems...

    I've fixed FLAC (Tested with 3.6 only - T4 seems to be not reliable at the moment?)

    https://github.com/FrankBoesing/Arduino-Teensy-Codec-lib/commit/576d62c4f15da3f80fc5b9ee14332bfae175ccf8
  39. Replies
    15
    Views
    365

    I guess it's a pretty cheap or old one, set to...

    I guess it's a pretty cheap or old one, set to AC.

    @Italian is it set to DC?
    Measure a 1.5 battery - what does it show?
  40. Replies
    113
    Views
    2,898

    @MJS: Indeed, 55 is the BEE interrupt. Cab...

    @MJS: Indeed, 55 is the BEE interrupt. Cab produce problems since there is encryption..
    The reserved interrupt for T4 came later.

    So, that change makes sense.
    Can you do a PR, please?

    (I can...
  41. Replies
    113
    Views
    2,898

    Oh my... If you keep this up, you'll make me...

    Oh my... If you keep this up, you'll make me bring out the Teensy again :)... I hope I can hold off until the weekend...
    My radio works very reliable now (playing 48k 256kbsp AAC stream without...
  42. Replies
    113
    Views
    2,898

    If it works differently with cache than without -...

    If it works differently with cache than without - what reason is there that is not related to the cache?

    I lack the imagination for this conclusion.
    Say an example?
  43. Replies
    113
    Views
    2,898

    I don't know now. I don't use opus on ESP - for...

    I don't know now. I don't use opus on ESP - for Radio streams, AAC and MP3 are enough.
    Opus was a user contribution some month ago.
    I guess it's intended and that line seems to be by the Opus team....
  44. Replies
    113
    Views
    2,898

    Note the codecs just use "RAM". They don't need...

    Note the codecs just use "RAM".
    They don't need to know if it is OCRAM, cached or whatever. It's just heap. Dumb RAM without any needed extras. Works with T3.2.

    BUT: If the malloc fails or the...
  45. Replies
    113
    Views
    2,898

    Ok, noted that... i'll look at this, when I...

    Ok, noted that... i'll look at this, when I connect a Teensy again. Can take some weeks.
  46. Yup, with teensy.

    Yup, with teensy.
  47. From that absolute minimal information nobody can...

    From that absolute minimal information nobody can answer it.
    The code is the same on T4/T4.1.
    Maybe the crystal is a bit off. It gets better when you cool or heat the teensy, it's a crystal...
  48. Replies
    51
    Views
    2,452

    I'm not sure it somehow matters that these old...

    I'm not sure it somehow matters that these old cards work.... if you can afford a Teensy, you can buy a <$10 card.... ;)
    Some of mine have long since ended up in the trash....

    I have ONE Card...
  49. Replies
    18
    Views
    534

    Oops.. do not see any photos. Hm? Ok, maybe a...

    Oops.. do not see any photos. Hm? Ok, maybe a forum or other problem.
    If these pins are aligned, everything should be ok.
  50. There is a great arduino nunchuck library...

    There is a great arduino nunchuck library somewhere. Used it often.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4