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. Thread: WaveplayerEx

    by Frank B
    Replies
    105
    Views
    4,989

    @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?
  2. 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..
  3. Replies
    15
    Views
    206

    Yes - it works good.

    Yes - it works good.
  4. 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?
  5. Replies
    15
    Views
    206

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

    Ok, that's right. Confused that with Kurt`s version with enabled buffer.
  6. 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...
  7. Replies
    15
    Views
    206

    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...
  8. 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.
  9. Replies
    15
    Views
    206

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

    Does it help to reduce the SPI clock? Can you try that?
  10. 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...
  11. Replies
    15
    Views
    206

    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...
  12. Replies
    6
    Views
    994

    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:
  13. 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.
  14. 0xABCD...

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

    And exactly this is your understanding problem....

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

    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?
  17. Replies
    23
    Views
    272

    "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.
  18. Replies
    23
    Views
    272

    : 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.
  19. Replies
    23
    Views
    272

    /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
  20. 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"...
  21. 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.
  22. Progmem has the advantage that you don't need...

    Progmem has the advantage that you don't need PSRAM.
  23. 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
    //
    //
  24. 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
    //
    //
  25. 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...
  26. Yes, of course it never hangs, there is no...

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

    @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...
  28. 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.
  29. 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.
  30. 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)
  31. Replies
    17
    Views
    271

    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...
  32. Replies
    33
    Views
    505

    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.
  33. 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
  34. Replies
    33
    Views
    505

    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...
  35. Replies
    15
    Views
    206

    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.
  36. Replies
    17
    Views
    271

    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)
  37. Thread: WaveplayerEx

    by Frank B
    Replies
    105
    Views
    4,989

    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!
  38. 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:...
  39. 200/200 or 300/300 (div1 ) could be interesting -...

    200/200 or 300/300 (div1 ) could be interesting - with disabled RAM2 cache, which is not needed, then.
  40. No hurry. It's not your job :)

    No hurry.
    It's not your job :)
  41. You can also just decrease the divisor to two....

    You can also just decrease the divisor to two. The lets you use CPU 600MHz / BUS 300MHz, so you overclock the bus only. No overheating.
    But even that is sometimes unstable. I tried that in the T4...
  42. And sorry, the problem ist not fixed. LittleFS...

    And sorry, the problem ist not fixed.
    LittleFS is still too slow with NAND and still not threadsafe.
  43. No problem :) In addition FS.h makes no sense...

    No problem :)

    In addition FS.h makes no sense at all, too.
    You can ONLY use in a sketch, and ONLY if you don't need extended features of the underlying FS.

    You just can't use it in a library,...
  44. No, makes no sense. It's an old copy of the...

    No, makes no sense. It's an old copy of the original. This old copy has not all features and is not thread-safe. Where is the sense?
    Is it somehow better to uses outdated copys?
  45. Resoldered the faulty board with NOR flash. My...

    Resoldered the faulty board with NOR flash.

    My theory is that when I took it out of the cold cellar, it warmed up and the chip lost contact.
    I have re-soldered - works now.
  46. Ok, resoldered my faulty board with NOR flash....

    Ok, resoldered my faulty board with NOR flash.
    These times look way better:



    546 us
    418 us
    593 us
  47. Well... tested it with non existing files The...

    Well... tested it with non existing files
    The times match the times which Defragster and MJS posted, then.
    Not that surprising.

    Are you both sure you have used existing files? :)


    Then, I...
  48. Well, the original is here, I think:...

    Well, the original is here, I think:
    https://github.com/littlefs-project/littlefs/

    It shows version number:
    #define LFS_VERSION 0x00020004 and is >9 month old

    and has:
  49. Replies
    4
    Views
    210

    Serial.println(Q_1_rec.available()); ...

    Serial.println(Q_1_rec.available()); //print number of blocks in queue to serial monitor. should be 2
    ptr_in1 = Q_1_rec.readBuffer(); //copy addresses of 128...
  50. If the file open takes 10ms it gets interrupted 3...

    If the file open takes 10ms it gets interrupted 3 times by the audio library. This goes wrong, obviously. I added some testcode, and some of the hangs/crashes occur in open().
    In your special case...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4