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. 0xABCD...

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

    And exactly this is your understanding problem....

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

    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?
  4. Replies
    23
    Views
    258

    "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.
  5. Replies
    23
    Views
    258

    : 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.
  6. Replies
    23
    Views
    258

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

    Progmem has the advantage that you don't need PSRAM.
  10. 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
    //
    //
  11. 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
    //
    //
  12. 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...
  13. Yes, of course it never hangs, there is no...

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

    @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...
  15. 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.
  16. 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.
  17. 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)
  18. Replies
    17
    Views
    261

    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...
  19. Replies
    24
    Views
    406

    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.
  20. 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
  21. Replies
    24
    Views
    406

    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...
  22. Replies
    1
    Views
    67

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

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

    by Frank B
    Replies
    104
    Views
    4,927

    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!
  25. 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:...
  26. 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.
  27. No hurry. It's not your job :)

    No hurry.
    It's not your job :)
  28. 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...
  29. 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.
  30. 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,...
  31. 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?
  32. 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.
  33. 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
  34. 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...
  35. 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:
  36. Replies
    4
    Views
    190

    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...
  37. 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...
  38. 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;
  39. Indeed, playing multiple files seems not to work...

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

    No.
    Do you have some code?
  41. 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.
  42. Thread: Reading List

    by Frank B
    Replies
    4
    Views
    267

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

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

    by Frank B
    Replies
    4
    Views
    267

    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...
  44. Great :) Btw, MJS...

    Great :)

    Btw, MJS wrote it.
  45. Replies
    269
    Views
    7,490

    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...
  46. Replies
    269
    Views
    7,490

    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);
    ...
  47. Replies
    269
    Views
    7,490

    Hm in this case I read the code wrong, and...

    Hm in this case I read the code wrong, and whether it is compatible with the Arduino documentation is at least questionable.

    ...
  48. Replies
    269
    Views
    7,490

    Yes, both speed tests, mine and Paul's, have the...

    Yes, both speed tests, mine and Paul's, have the problem that they do not check if the data was sent at all.

    print() returns the number of bytes sent. This should be inserted in both tests.
    ...
  49. Thread: Reading List

    by Frank B
    Replies
    4
    Views
    267

    Pretty outdated (first printed 1978) , but I love...

    Pretty outdated (first printed 1978) , but I love "Kernighan & Ritchie, The C Programming Language" Ritchie was the developer of "C", and this is the first book about it.
    Still today, its respected...
  50. That's how it is. I think I read that some time...

    That's how it is. I think I read that some time ago on the NXP forum. If I remember correctly it's not only this pin (if not all). I think they recommended pulldowns to fix possible issues.
    Sorry,...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4