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
    27
    Views
    2,707

    Here my "solution" - works without any board, on...

    Here my "solution" - works without any board, on T4
    https://github.com/FrankBoesing/USB_Tester/blob/master/Programmer_Frank.ino

    Attention, quick&dirty, but tested with T4.1 as "master", and...
  2. Replies
    4
    Views
    160

    I would be surprised if it works. There is...

    I would be surprised if it works.
    There is nowhere a check if really all characters were received.
    The only check is if something was received.
    But not how much.
    Of course, it could be that it...
  3. Thread: WaveplayerEx

    by Frank B
    Replies
    96
    Views
    3,465

    Thought I can make a little advertisement for the...

    Thought I can make a little advertisement for the new player.

    Features



    Sample rate agnostic (does not check it)
    (up to) 8 Channels / 8- or 16-bit
    delay() after start no longer...
  4. That was an experiment. Havn't tried since...

    That was an experiment.
    Havn't tried since then. But you're using way too much player objects. Try a low number, perhaps 4.
    Sorry, I can't help if that does not work, too, and I do not intend to...
  5. Replies
    35
    Views
    1,216

    Sticky: All is good. I have a backup of that file now....

    All is good. I have a backup of that file now. And I found that I can disable encryption. That saves some 100 milliseconds.
  6. Replies
    68
    Views
    1,911

    Just to chime in a last time: I doubt you read...

    Just to chime in a last time:

    I doubt you read this thread or understood the problem.
    To mention (again...) the other issue of the existing code: Call it with a (somewhere calculated) length of...
  7. Thread: Goodbye

    by Frank B
    Replies
    14
    Views
    1,417

    Ok, banning myself does not work. Tim, please be...

    Ok, banning myself does not work.
    Tim, please be so kind.

    Thanks.
  8. Thread: Goodbye

    by Frank B
    Replies
    14
    Views
    1,417

    Goodbye

    I think it's time to say goodbye here.
    Maybe forever. Maybe only for a few months.

    Edit: rmvd blab blah here

    Take care, I wish you all the best.
    Take a vacation.
  9. Thread: Arduino 1.8.16

    by Frank B
    Replies
    7
    Views
    607

    These are good news :)

    These are good news :)
  10. Replies
    68
    Views
    1,911

    again: it has nothing to do with malloc. This...

    again: it has nothing to do with malloc.
    This thread is about dcache_flush - not malloc.

    Maybe use it with a temp file in your "RAM"-littleFS - its the same. Oh, wait, your littlFS should...
  11. Replies
    68
    Views
    1,911

    So you would flush & delete the whole 32 Bytes....

    So you would flush & delete the whole 32 Bytes.
    Interesting. Tell us why it's "not harmless" to delete less. despite the user *wanted* to delete and not to flush.
    Hm... what happens with a DMA...
  12. Replies
    68
    Views
    1,911

    I think i stop here now. 37 posts for a 3 minute...

    I think i stop here now.
    37 posts for a 3 minute edit.
    that's enough. I'm tired about such discussions.
    I posted a solution.

    Or use a other , *correct* one., I don't care.
    But fix it.
  13. Replies
    68
    Views
    1,911

    We had this discussion. Scroll up. Why should I...

    We had this discussion. Scroll up.
    Why should I call *delete* then? There is already a better function "flush and delete". its totally against its intention. and it's just not needed. there is...
  14. Replies
    68
    Views
    1,911

    Yes, and that's good. You can't delete a part of...

    Yes, and that's good. You can't delete a part of a cache line.
    So, deleting 32 bytes would mean to delete *more* than wanted. And this is *not* wanted.
  15. Replies
    68
    Views
    1,911

    Now to the remaining two: Rethinking about...

    Now to the remaining two:

    Rethinking about them.. no, I think they work as they are. They may flush more than needed, and this is ok. Objections?
  16. Replies
    68
    Views
    1,911

    My code protects all data, not only the leading...

    My code protects all data, not only the leading :)
    And the malloc is only one possible issue. Its just nice as example. But the bug has nothing to do with malloc.
    Only the cache lines count. Its...
  17. Replies
    68
    Views
    1,911

    Why not just this, or has it a bug I don't see? ...

    Why not just this, or has it a bug I don't see?


    __attribute__((always_inline, unused))
    static inline void arm_dcache_delete(void *addr, uint32_t size)
    {
    uintptr_t location = (31 +...
  18. Replies
    68
    Views
    1,911

    Flush before delete makes not any sense if you...

    Flush before delete makes not any sense if you dont need it flushed. The function is used to *prevent* a flush, for speed reasons.

    It just invalidates the cache lines.
  19. Replies
    68
    Views
    1,911

    Yes mentioned above. Start: add +32 End: add...

    Yes mentioned above.
    Start: add +32
    End: add the "and"
    Use a while loop instead of do..while.
    This may delete less than wanted - but that is OK.

    For the other functions: just make sure they...
  20. Replies
    425
    Views
    10,012

    It would work perhaps to use a special name const...

    It would work perhaps to use a special name const with the same attributes as PROGMEM

    So.. would translate to PROGMEM _EXTMEMINIT = {1,2,34} and then just copy it from flash to PSRAM on power-on....
  21. Replies
    425
    Views
    10,012

    Ah..ok I can try a bit on the weekend, maybe....

    Ah..ok
    I can try a bit on the weekend, maybe.
    The issue with a newer toolchain is, they are all a little bit slower :-(
  22. Replies
    425
    Views
    10,012

    Support for initialized EXTRAM is missing. Has...

    Support for initialized EXTRAM is missing.
    Has there already been a decision to (not) implement this?

    Maybe one could check some T4 registers if there was a "power on"n and copy the data in this...
  23. Now take the drum machine out of the equation and...

    Now take the drum machine out of the equation and let the Teensy synth the drums!
  24. Above, click "Rate This Thread"

    Above, click "Rate This Thread"
  25. Thread: Arduino 1.8.16

    by Frank B
    Replies
    7
    Views
    607

    Are there any changes worth mentioning? Editor or...

    Are there any changes worth mentioning? Editor or builder changes?
  26. Cool! Wow..

    Cool! Wow..
  27. Replies
    68
    Views
    1,911

    One last goodie: void setup() { ...

    One last goodie:


    void setup() {
    memcpy(0,0,0); // or memset, or...
    Serial.println("Bubu");
    }

    void loop() {}
  28. Replies
    68
    Views
    1,911

    Now, sleep well, take a look again tomorrow,...

    Now, sleep well, take a look again tomorrow, think of all kinds of checks.. null pointers.. digitalWrite..and tell me again that it is an documentation issue.
    Ok. You can declare any bug as doc....
  29. Replies
    68
    Views
    1,911

    Exactly :) the heap is corrupted. Try to debug...

    Exactly :) the heap is corrupted.
    Try to debug that, without a debugger, when the free() happens 500 lines later. Probably in a library.

    Its a serious problem.
    It wasn't that easy to find the...
  30. Replies
    68
    Views
    1,911

    Indeed :-) void setup() { ...

    Indeed :-)


    void setup() {
    Serial.begin(8600);
    if (CrashReport) {
    Serial.println(CrashReport);
    CrashReport.clear();
    }
    void *p1 = malloc(100);
  31. Replies
    68
    Views
    1,911

    Tim, the problem is, in my example, that p3 is...

    Tim, the problem is, in my example, that p3 is not valid.
    But there is no obvious reason for that.

    The heap is corrupted.
    Remove the cache delete and everything is fine.
    A miracle for most...
  32. Replies
    68
    Views
    1,911

    Hm. re-thinking about the other both,...

    Hm. re-thinking about the other both, arm_dcache_flush_delete() and arm_dcache_flush(), i'd probably leave them as they are, as they do not destroy things and it's wanted that everything gets flushed...
  33. Replies
    68
    Views
    1,911

    You don't want to do that.

    You don't want to do that.
  34. Replies
    68
    Views
    1,911

    + turn the while{} do .. while into a while {}.....

    + turn the while{} do .. while into a while {}.. ;-)
  35. Short answer: No. The CPU is only a small part...

    Short answer: No.

    The CPU is only a small part of a Microcontroller.
    All periphals are different.
    There is no reason for NXP to make their chips ST compatible, and vice versa.
  36. Just use the Teensy audio library, and use 44100,...

    Just use the Teensy audio library, and use 44100, not 11025. But I'm not sure what you mean with "Interrupt rate" - Which interrupt exactly?
    11025 are not enough if you want to use a 10kHz signal....
  37. Replies
    68
    Views
    1,911

    @all: I think you don't see the real problem. I...

    @all: I think you don't see the real problem. I thought it was easy....
    Ok.
    Invested more time and wrote a short demo for you:


    void setup() {
    Serial.begin(8600);
    if (CrashReport) {
    ...
  38. Replies
    68
    Views
    1,911

    and yes, a workaround means, that if you want to...

    and yes, a workaround means, that if you want to malloc a single byte (malloc (1)) you have to malloc 32
    Not your code only, 3rd party code, too.

    It must be a joke.
    "You can't use malloc()...
  39. Replies
    68
    Views
    1,911

    Of course it works with aligned data. The...

    Of course it works with aligned data.
    The problem is unaligend data.
    Malloc returns unaligend data.
    Yes you can do workarounds in your code.
    3rd party code does not have Teensy workarounds.

    So...
  40. Thread: WaveplayerEx

    by Frank B
    Replies
    96
    Views
    3,465

    The cards are not equal. Did you know there is a...

    The cards are not equal. Did you know there is a 8-BIT cpu inside? It's better than a AVR 8-Bit arduino ;)
    Not sure about the 8-bit.. got that info long years ago.. quite possible the cpus are even...
  41. Replies
    425
    Views
    10,012

    Ah :) Like it :)

    Ah :) Like it :)
  42. Thread: WaveplayerEx

    by Frank B
    Replies
    96
    Views
    3,465

    Hm. It should not be like that! That's not normal...

    Hm. It should not be like that! That's not normal - it really should work at first try. Every time.
    For the other issues.. is it the same for all your SD Cards?
    Did you try to format them with th...
  43. Replies
    425
    Views
    10,012

    @Kurt: What is KISS?

    @Kurt: What is KISS?
  44. Replies
    3
    Views
    167

    If they are INPUT, without pullup, the reason...

    If they are INPUT, without pullup, the reason must be something different - not the GPIOs.
    Can you post the schematic?
  45. Replies
    8
    Views
    1,571

    PAul S: Have you asked the LED Edit team about...

    PAul S: Have you asked the LED Edit team about the output format? They are on "faceboook" (I don't use that)
  46. Replies
    425
    Views
    10,012

    Just to mention.. there are few opens bug I...

    Just to mention.. there are few opens bug I reported (last one here, which is a serious issue), and a fix that I did for a other user (PR unmerged).. would be really nice if that could happen before...
  47. Replies
    68
    Views
    1,911

    Attention, same bug is in...

    Attention, same bug is in arm_dcache_flush_delete() and arm_dcache_flush().
    In arm_dcache_flush() it may not lead to crash, but it's wrong, too.
  48. Replies
    68
    Views
    1,911

    BUG in arm_dcache_delete

    // Delete data from the cache, without touching memory
    //
    // Normally arm_dcache_delete() is used before receiving data via
    // DMA or from bus-master peripherals which write to memory. You
    //...
  49. Replies
    10
    Views
    346

    If you post your program, some of us can have a...

    If you post your program, some of us can have a look and can give more detailed hints, maybe..
  50. Replies
    10
    Views
    346

    ERAM will be much faster with sequential accesses.

    ERAM will be much faster with sequential accesses.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4