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
    6
    Views
    2

    That it is not possible to reach more than 8 MHz.

    That it is not possible to reach more than 8 MHz.
  2. Replies
    6
    Views
    2

    No it's a fundamental law....

    No it's a fundamental law.
    https://en.wikipedia.org/wiki/Nyquist_rate
  3. Thread: WaveplayerEx

    by Frank B
    Replies
    107
    Views
    5,087

    Ok, let's assume we use the...

    Ok, let's assume we use the Nums_7dot1_8_44100.wav file from the examples. There is a voice, counting from 1 to 8 (each number on a different channel - but this is not interesting here)

    There is a...
  4. Replies
    274
    Views
    7,915

    Hm. Not tried - does it help to just make the...

    Hm. Not tried - does it help to just make the timer slower? (That would be the perfect place to create a variable speed - IF that works)
    Tim? Can you test?

    edit:
    It would be a opportunity to add...
  5. Replies
    274
    Views
    7,915

    Yes, that's the challenge. Also, perhaps we have...

    Yes, that's the challenge.
    Also, perhaps we have to keep in mind slow PCs.

    And, a question - there are Tablets etc with Windows. Do they have the same problem? I own no such thing...
    The next...
  6. Not needed here - pressed() takes care of that....

    Not needed here - pressed() takes care of that. It returns true if the state changed.
    It's just the wrong pin.
  7. Could you both post the layout (the USB traces...

    Could you both post the layout (the USB traces should be visible) ?
  8. PIN 19 is used for I2C which is needed for the...

    PIN 19 is used for I2C which is needed for the Audio Shield.
  9. Replies
    5
    Views
    55

    As said, the lib is open source. Good...

    As said, the lib is open source. Good contributions are always welcome.

    And, as this is a commercial site, placing the link here is questionable.
  10. Replies
    5
    Views
    55

    __builtin_popcount(for 32Bit) looks like this on...

    __builtin_popcount(for 32Bit) looks like this on Teensy:


    1c68: 0843 lsrs r3, r0, #1
    1c6a: f003 3355 and.w r3, r3, #1431655765 ; 0x55555555
    1c6e: 1ac0...
  11. Replies
    5
    Views
    55

    The audio lib is open source on Github - he can...

    The audio lib is open source on Github - he can contribute to it anytime. But why do you speak for him?
  12. Thread: WaveplayerEx

    by Frank B
    Replies
    107
    Views
    5,087

    Ok... had too much time today... Some new...

    Ok... had too much time today...
    Some new functions:

    size_t position(); - returns the current sample number. Will increase in steps of 128 (or AUDIO_BLOCK_SAMPLES)
    bool setPosition(size_t...
  13. Thread: WaveplayerEx

    by Frank B
    Replies
    107
    Views
    5,087

    @Paul, I'm adding a "loop" feature. Please give...

    @Paul, I'm adding a "loop" feature. Please give me a few days.


    Other question: Can we use the existing "Resampler.cpp" to adapt to different samplerates?
  14. Yes, when I wrote the reply, I did not remember...

    Yes, when I wrote the reply, I did not remember the "feedback" thing. I edited the post later..
  15. Replies
    15
    Views
    263

    Yes - it works good.

    Yes - it works good.
  16. The Audio lib has resampling code...

    The Audio lib has resampling code (Resampler.h/.cpp) - it's used for S/PDIF.

    Does anyone know if it can be used i.e. for 11kHz - 44kHz or 48kHz->44kHz?
    What is Alexander's username here?
  17. Replies
    15
    Views
    263

    Ok, that's right. Confused that with Kurt`s...

    Ok, that's right. Confused that with Kurt`s version with enabled buffer.
  18. Hi Bill, this does not happen, there is no...

    Hi Bill,
    this does not happen, there is no conversion. Best is to look at the code, it uses a buffer.
    However, from time to time things like this happen:


    // buffer overrun, PC...
  19. Replies
    15
    Views
    263

    I think it is not completely impossible that...

    I think it is not completely impossible that bottlenecks can occur when both fast SPI and TDM are supplied via the slower OCRAM (DMA). Esp, as there not reads only, but writes too and the cache is...
  20. I can't answer this :) But I know - at least on...

    I can't answer this :)
    But I know - at least on windows, you can change the default samplerate to 44100. I *think* no conversion will happen then.
  21. Replies
    15
    Views
    263

    Does it help to reduce the SPI clock? Can you try...

    Does it help to reduce the SPI clock? Can you try that?
  22. An even more simple answer is, that the PSRAM...

    An even more simple answer is, that the PSRAM chips just need power to keep their data. If you lift of the VCC pin and _not solder it to that pad and provide its power by using an other method it...
  23. Replies
    15
    Views
    263

    What just comes to mind: Hardware - different...

    What just comes to mind:
    Hardware - different PCB, different layout, additional inbuilt SD, more pins.
    Software:

    - startup.c detects and initializes PSRAM
    - Different linker file (ok, its just...
  24. Replies
    6
    Views
    1,007

    Anno 2016 I used this to program an ESP8266...

    Anno 2016 I used this to program an ESP8266 through a Teensy - i think that should work for a ESp32, too.
    (But have not tried it)

    You have to comment out the "Flexiboard" things:
  25. Your PC converts the samplerate to 44100Hz before...

    Your PC converts the samplerate to 44100Hz before sending the data to the Teensy.
    The Teensy tells the PC that it can do 44100Hz only.
  26. 0xABCD...

    0xABCD Have you tried to edit the line I mentioned? Does it help for your issue?
  27. Replies
    30
    Views
    1,563

    And exactly this is your understanding problem....

    And exactly this is your understanding problem. The trick is the unsigned arithmetic.
  28. Replies
    9
    Views
    364

    While it's nice that the code is smaller, it only...

    While it's nice that the code is smaller, it only has an effect if you need 100% flash or RAM otherwise.

    Is it faster?

    @Luni: don't you use the Teensy size tool?
  29. Replies
    23
    Views
    279

    "Output": I meant the stuff you posted. And if...

    "Output": I meant the stuff you posted.
    And if Arduino says it can't find that file, well.. .then it can not find that file.
  30. Replies
    23
    Views
    279

    : fatal error: FilenameFunctions.h: No such file...

    : fatal error: FilenameFunctions.h: No such file or directory

    Please, just look at the output instead of posting kilobytes of useless logs.
  31. Replies
    23
    Views
    279

    /Users/alfredolivas/Documents/Arduino/libraries/Gi...

    /Users/alfredolivas/Documents/Arduino/libraries/GifDecoder/src/GifDecoder.h:5:25: fatal error: AnimatedGIF.h: No such file or directory
  32. Hi, no, it works as it is. You *may* have to...

    Hi,

    no, it works as it is.
    You *may* have to change the output device (it's a PT8211 in the sample code)
    , and if you're not using a Teensy with inbuilt SD some SPI settings.

    The "PROGMEM"...
  33. HI, no problem, it's here:...

    HI, no problem, it's here: https://github.com/PaulStoffregen/cores/blob/master/teensy4/startup.c#L438
    The Teensy startup-code autodetects PSRAM and sets the value.
  34. Progmem has the advantage that you don't need...

    Progmem has the advantage that you don't need PSRAM.
  35. From PROGMEM, it looks like this: // Simple...

    From PROGMEM, it looks like this:


    // Simple WAV file player example
    //
    // This example code is in the public domain.
    //
    // Plays a file from program flash
    //
    //
  36. Hi, ok, I just wrote this: // Simple WAV...

    Hi, ok, I just wrote this:


    // Simple WAV file player example
    //
    // This example code is in the public domain.
    //
    // Plays a file from PSRAM
    //
    //
  37. Would have been nice to get *any* response re:...

    Would have been nice to get *any* response re: the issues. So, we can't know if it ever get fixed, if it takes a year or two or some weeks or days.
    Best is not to use Littlfs until then.

    The...
  38. Yes, of course it never hangs, there is no...

    Yes, of course it never hangs, there is no interrupt that reads while open() runs.
  39. Replies
    17
    Views
    290

    @Nominal: If you re-read the posts, you will...

    @Nominal: If you re-read the posts, you will notice that I did not write a single word about the code.
    I said, that if you use godbolt, you may want to use the correct compiler settings. Otherwise...
  40. The problems are more the issues I mentioned.......

    The problems are more the issues I mentioned.... it crashed in open() for me, it will crash for others, too.. :) even if the open() is way faster with NOR - the underlying problem remains.
  41. You can also use a HEX editor and compare the...

    You can also use a HEX editor and compare the file you've recorded with an other file.
  42. Please upload a wave file. (or try this:...

    Please upload a wave file.
    (or try this: https://github.com/FrankBoesing/Teensy-WavePlayer - despite of the name, it can record, too)
  43. Replies
    17
    Views
    290

    I'd also use the real switches like Arduino does:...

    I'd also use the real switches like Arduino does:

    -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -O3

    especially you need -mthumb -mcpu=cortex-m7 to generate the same code. the other...
  44. Replies
    33
    Views
    537

    Quite possible that the pins of the port are not...

    Quite possible that the pins of the port are not long enough. Or, as Paul said, wrong pins used.
    Or the breadboard is defective.

    Chris, please try the LED test I described above.
  45. Just in the hope that it will help others...

    Just in the hope that it will help others troubleshoot I opened issues



    https://github.com/PaulStoffregen/LittleFS/issues/33

    https://github.com/PaulStoffregen/LittleFS/issues/34
  46. Replies
    33
    Views
    537

    Use the blink-example, make it a bit slower (2...

    Use the blink-example, make it a bit slower (2 seconds) and make it flash the tx pin instead pin 13. Then you can measure with your DMM (switch it to voltage mode, "DC" - never ever resistance (for...
  47. Replies
    15
    Views
    263

    No Idea. I only know that 4.0 and 4.1 use the...

    No Idea.
    I only know that 4.0 and 4.1 use the same code for audio. And the hardware is (almost) identical.
    So I would focus on the few differences.
  48. Replies
    17
    Views
    290

    Almost. They are executed as NOP -means, they...

    Almost. They are executed as NOP -means, they need one cycle (however, don't know how this behaves on CM7 re: dual issue)
  49. Thread: WaveplayerEx

    by Frank B
    Replies
    107
    Views
    5,087

    I think it works now. Wasn't that easy :) ...

    I think it works now. Wasn't that easy :)

    Please report any remaining bugs as issue @ github. Thank you!
  50. No, the FBi will find you. Be warned :) For an...

    No, the FBi will find you. Be warned :)

    For an experiment only, the easiest and fastest is to just edit this line:...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4