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. 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...
  2. Replies
    7
    Views
    117

    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...
  3. Replies
    6
    Views
    965

    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:
  4. 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.
  5. 0xABCD...

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

    And exactly this is your understanding problem....

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

    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?
  8. Replies
    23
    Views
    266

    "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.
  9. Replies
    23
    Views
    266

    : 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.
  10. Replies
    23
    Views
    266

    /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
  11. 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"...
  12. 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.
  13. Progmem has the advantage that you don't need...

    Progmem has the advantage that you don't need PSRAM.
  14. 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
    //
    //
  15. 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
    //
    //
  16. 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...
  17. Yes, of course it never hangs, there is no...

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

    @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...
  19. 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.
  20. 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.
  21. 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)
  22. Replies
    17
    Views
    269

    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...
  23. Replies
    24
    Views
    409

    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.
  24. 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
  25. Replies
    24
    Views
    409

    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...
  26. Replies
    7
    Views
    117

    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.
  27. Replies
    17
    Views
    269

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

    by Frank B
    Replies
    104
    Views
    4,940

    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!
  29. 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:...
  30. 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.
  31. No hurry. It's not your job :)

    No hurry.
    It's not your job :)
  32. 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...
  33. 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.
  34. 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,...
  35. 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?
  36. 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.
  37. 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
  38. 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...
  39. 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:
  40. Replies
    4
    Views
    196

    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...
  41. 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...
  42. Looks like there is no way to use several files...

    Looks like there is no way to use several files with Littlfs.
    It's just too slow.



    #include <LittleFS.h>

    //LittleFS_QSPIFlash myfs;
    LittleFS_QPINAND myfs;
  43. Indeed, playing multiple files seems not to work...

    Indeed, playing multiple files seems not to work with LittlFS.
    I'll have a look.
  44. No. Do you have some code?

    No.
    Do you have some code?
  45. Yes, you need 1.56 - or use an older version of...

    Yes, you need 1.56 - or use an older version of Paul`s LittlFS wrapper.
  46. Thread: Reading List

    by Frank B
    Replies
    4
    Views
    271

    Yes, that's right. But it has nice examples :)

    Yes, that's right. But it has nice examples :)
  47. Thread: Reading List

    by Frank B
    Replies
    4
    Views
    271

    That's a predecessor of this book as PDF:...

    That's a predecessor of this book as PDF: https://www.bell-labs.com/usr/dmr/www/ctut.pdf
    Still, it's not for the ANSI version of C - that came later. But still interesting :-)



    I.e. it still...
  48. Great :) Btw, MJS...

    Great :)

    Btw, MJS wrote it.
  49. Replies
    269
    Views
    7,552

    https://github.com/PaulStoffregen/cores/blob/maste...

    https://github.com/PaulStoffregen/cores/blob/master/teensy4/usb_serial.c#L349

    (Isn't sent = 0, then?)
    Well, usb_serial2 &3 definitely have a problem. That's out of question. They don't turn off...
  50. Replies
    269
    Views
    7,552

    In case of a timout it should return zero with...

    In case of a timout it should return zero with the next print, if I read it correctly.
    Windows drops packets, or the teensy. Or both.

    bool packetdrop = (windows || teensy) || (windows);
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4