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

  1. Replies
    63
    Views
    1,382

    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...
  2. Replies
    63
    Views
    1,382

    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?
  3. Replies
    63
    Views
    1,382

    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....
  4. Replies
    63
    Views
    1,382

    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...
  5. Replies
    63
    Views
    1,382

    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.
  6. Yup, with teensy.

    Yup, with teensy.
  7. 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...
  8. Replies
    41
    Views
    1,868

    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...
  9. Replies
    18
    Views
    393

    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.
  10. There is a great arduino nunchuck library...

    There is a great arduino nunchuck library somewhere. Used it often.
  11. Replies
    18
    Views
    393

    Post a photo

    Post a photo
  12. Replies
    18
    Views
    393

    Just align the pin 0 to the corresponding Teensy...

    Just align the pin 0 to the corresponding Teensy 0-pin. Yes, they can stack...
  13. Replies
    63
    Views
    1,382

    - How often is allocBuffer called? one time, on...

    - How often is allocBuffer called?
    one time, on init or when playing a new file
    - And for what sizes?
    Forgot that... wasn't a problem for the 3.2 - in sum around ~30kB if I remember correctly
    -...
  14. Replies
    18
    Views
    393

    Nope... the pins are printed on the bottom of the...

    Nope... the pins are printed on the bottom of the shield..

    https://www.pjrc.com/store/teensy4_audio_back.jpg
    They correspond to the Teensy pins..

    Paul should probably post a photo how it...
  15. Replies
    63
    Views
    1,382

    Yes, the blocksize is a real showstopper for FLA...

    Yes, the blocksize is a real showstopper for FLA on microcontrollers. The memory usage is ... pervert... :)
    I've added some example files here (Blocksize up to 1024) :...
  16. Ok, make the variables you use volatile. Then it...

    Ok, make the variables you use volatile. Then it should not happen anymore.
  17. Just remove the delay() and the Serial.print....

    Just remove the delay() and the Serial.print.
    Delay() is unpredictable with the short times.

    If a delay is really needed, replace it by delayNanoseconds().
  18. A bad example is this : short...

    A bad example is this :



    short CLIPTOSHORT(int x){
    int sign; /* clip to [-32768, 32767] */
    sign = x >> 31;
    if (sign != (x >> 15)) x = sign ^ ((1 << 15) - 1);
    return (short)x;
    }
  19. Replies
    1
    Views
    102

    Yes, Teensyduino still says it's AVR...

    Yes, Teensyduino still says it's AVR...
  20. GCC is smart enough to do that without ASM.... ...

    GCC is smart enough to do that without ASM....

    Note, the mov and bx is only there because it's a not inlined function.. don't underestimate the compiler. In general, we can assume that he is...
  21. Replies
    63
    Views
    1,382

    Since I'm currently back on topic (ESP), and I...

    Since I'm currently back on topic (ESP), and I also briefly struggled with the -6 and -.9, I can say that this is almost 100% an offset issue. The decoder reads wrong data.
    Whenever it is called,...
  22. Yes, it will not work to just play the audio...

    Yes, it will not work to just play the audio slower.
    If you listen to a motor, it will not change pitch. The time between ignitions changes.
    I could imagine to cut the audio in short pieces (with...
  23. Replies
    63
    Views
    1,382

    It can play from SD, from serial flash (uses the...

    It can play from SD, from serial flash (uses the serial flash library) and from Teensy-Memory (give it a pointer).
    No work has been done to add LittlFS so far.

    I currently only use the ESP32....
  24. Replies
    86
    Views
    7,117

    Yes, there is a capacitor on pin 15 on the...

    Yes, there is a capacitor on pin 15 on the shield.
    You can remove it, it's for the optional potentiometer only.

    See here:
    https://github.com/TeensyUser/doc/wiki/Teensy-40-SPDIF-in-and-Audioshield
  25. The hardware switch can also be a simple...

    The hardware switch can also be a simple transistor for the clock line, which enables/disables the clock for each sensor... but for two sensors onyl, it makes mores ense to just use the Teensys both...
  26. https://forum.pjrc.com/threads/59673-Teensy-3-5-Ro...

    https://forum.pjrc.com/threads/59673-Teensy-3-5-RoHS-compliance
  27. Replies
    86
    Views
    7,117

    The problem is, sometimes the latency is *much*...

    The problem is, sometimes the latency is *much* higher, when the card decides to do some internal operations.

    Some hints:

    - use a large buffer
    - write in Blocks of 4096 Bytes
    - use a fast...
  28. Replies
    6
    Views
    251

    The cpu internally works with a even less voltage...

    The cpu internally works with a even less voltage - it's adjustable, and the teesy core automatically adjusts it with the CPU speed.
  29. You can't.

    You can't.
  30. Replies
    4
    Views
    488

    It does not have the bootloader, so it's not...

    It does not have the bootloader, so it's not compatible. And it will not work to use "The arduino framework" and Teensyduino "without modifications" because it does not work with the Teensy loader....
  31. Replies
    4
    Views
    212

    Note, you can get much better output with these...

    Note, you can get much better output with these tricks:
    https://github.com/TeensyUser/doc/wiki/GCC#list-and-symbol-files
  32. Yes, add a battery.

    Yes, add a battery.
  33. Try...

    Try this:*https://github.com/FrankBoesing/Teensy-WavePlayer
    (Can record to wav, despite of the name, and can play +record)
  34. Thread: WaveplayerEx

    by Frank B
    Replies
    115
    Views
    7,777

    Ok, that was last month, and the new month is ...

    Ok, that was last month, and the new month is again 3 weeks old.
    Any news?
    If not, (or again no answer - a simple "yes" or "no I will no use it " would have been enough...) I'd prefer to change...
  35. Replies
    20
    Views
    9,477

    Try this:...

    Try this: https://github.com/FrankBoesing/Teensy-WavePlayer
    (Can record to wav, despite of the name)
  36. Replies
    15
    Views
    1,000

    My ma might be more interested, but I thought,...

    My ma might be more interested, but I thought, ok, never give up, and test if that gets fixed before I put work into and do a fix for (many) other things that not get merged ;)

    ... TD misses...
  37. Why don't you just disable interrupts during the...

    Why don't you just disable interrupts during the memcpy to see if a ISR is the reason? (for this test only)
    If it still crashes it can't be a ISR..
  38. The memcpy is used in a million sketches and...

    The memcpy is used in a million sketches and "thousand" of times in the core - both T3 and T4. I can't imagine any reason why memcpy should be the problem. It just shows the problem.

    Don't work...
  39. It could be possible that memcpy crashes if it...

    It could be possible that memcpy crashes if it accesses a a) unaligned address where it is not allowed (0x20005300 IS allowed and aligned) - or b) if the MPU is confused. - or c) - well ... have no...
  40. Normally, nothing is wrong with LTO. It works...

    Normally, nothing is wrong with LTO. It works good.
    But LTO will produces crashes earlier if there are existing issues or bugs in the software - it just makes makes them more visible. Its not a...
  41. You need to add something that is responsible for...

    You need to add something that is responsible for the timing.
    Add an i2s output for example.
    It's ok if it just exists - does not need any patchcords.
  42. Replies
    2
    Views
    245

    Oh, you can set the sample rate. Pretty easy....

    Oh, you can set the sample rate. Pretty easy. Wonder why Kurt did not mention it..
  43. That means some Sketches will not work anymore,...

    That means some Sketches will not work anymore, as they do now? (re: timing) That's incompatible.
    And will that still work with Teensy LC without using more Flash and RAM? The LC is very limited..
  44. A thing like the WT32-SC01 but with Teensy...

    A thing like the WT32-SC01 but with Teensy instead ESP would be great, if it had a comparable price (and wlan).
  45. Replies
    16
    Views
    10,855

    For more detailed info, look here:...

    For more detailed info, look here: https://github.com/TeensyUser/doc/wiki/Memory-Mapping
  46. We had this in several other threads - the reason...

    We had this in several other threads - the reason are missing memory barriers (wrong use of "volatile") which produce race conditions, missed interrupts (you miss some if there are more than one when...
  47. Replies
    2
    Views
    313

    Hi, it's installed by default. Just #include...

    Hi, it's installed by default.
    Just
    #include <Audio.h>
  48. Replies
    10
    Views
    518

    If you place the Teensy on a border of your...

    If you place the Teensy on a border of your board, you can still use USB.
    However, to use both, SD and USB, you have to flip it, I think.
  49. Depending on what you output is, I'd think of...

    Depending on what you output is, I'd think of DMA, perhaps... but to get the timing reliable is not that easy.
  50. Replies
    10
    Views
    518

    Don't use a connector. Use wires. I've done that...

    Don't use a connector. Use wires. I've done that and used the pins from a pack of old though-hole resistors I had no other use for..
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4