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. Replies
    41
    Views
    397

    Does DMAMEM has to be volatile? We have to...

    Does DMAMEM has to be volatile? We have to invalidate the cache before using DMA anyway.

    Edit: it is not volatile. I thought, it was. Sorry.
  2. Replies
    41
    Views
    397

    ... so, in some cases it might be faster, not to...

    ... so, in some cases it might be faster, not to use "volatile", and use (something like) a gcc memory barrier (NOT dsb) instead. (???) A volatile seems easy here, but I doubt it is the best way.. it...
  3. Replies
    41
    Views
    397

    Read after write: I'd like to know, if there is a...

    Read after write: I'd like to know, if there is a difference for OCRAM, means "not strongly ordered memory"
    In theory, the cpu could just read the just before written value, without accessing the...
  4. Replies
    41
    Views
    397

    This is how I understand it, too. What I'm not...

    This is how I understand it, too.
    What I'm not sure about, is how this slows down everything. I might to have re-read everything.
    There is a write- queue. When we write, we write to the queue, and...
  5. Replies
    12
    Views
    104

    ... so, the master sends when CS is high, and...

    ... so, the master sends when CS is high, and receives when CS is low? (This might work with just a second SPI and a inverter for CS) or FlexSpi.
  6. Replies
    100
    Views
    3,475

    ..just to be sure: You're using the latest...

    ..just to be sure: You're using the latest example and library code from Github?
  7. Replies
    12
    Views
    104

    I see no reason why SPI wouldn't do that. Worst...

    I see no reason why SPI wouldn't do that.
    Worst case you had to decode/process somehow the received data afterwards.

    What do you means with "answer"? Spi has no such feature.
  8. Replies
    100
    Views
    3,475

    Good Morning. .. I don't have any hard or...

    Good Morning.
    .. I don't have any hard or software for that.
    For a test we can run it a bit slower, say 2 frames/second and print the data ('1' or '0' the the serial monitor) and look if we see...
  9. Replies
    100
    Views
    3,475

    Cool! Is this a I2C display? How fast is it? ...

    Cool! Is this a I2C display? How fast is it?

    You can reduce the lag by using a smaller audio block size.
    Then, there is no check if the data are correct. You could add a check for the parity or...
  10. Replies
    5
    Views
    69

    Is it possible, that the Teensy is not the only...

    Is it possible, that the Teensy is not the only problem?. A similar problem occurs with the Serial monitor?
  11. :) yes. Didn't know this java feature. Teensy...

    :) yes. Didn't know this java feature.

    Teensy was at 600MHz, every thing default, i can add the sketch here, but i'd say realy fast printing of short text with a newline to force really fast...
  12. I tried this :) I added a Serial.print("alarm")...

    I tried this :)
    I added a Serial.print("alarm") to the High_low_temp isr.
    Huston .. we have a problem.. it gets called again and again. Because..yes.. sure, the high temp stays high.
    Maybe we...
  13. Serial Monitor Bug - Prints own sourcecode? ;)

    alarm

    alarm

    alarm

    alarm

    alarm
  14. Replies
    12
    Views
    104

    ... why don't you use SPI?

    ... why don't you use SPI?
  15. That works, my Teensy shuts down! For the...

    That works, my Teensy shuts down!

    For the blink, wouldn't we use the "high" Temp Alarm? (Give the program time to shut down external hardware or do other things)


    Maybe like this?

    normal...
  16. Replies
    41
    Views
    397

    The div 4 is kind of default and mentioned in the...

    The div 4 is kind of default and mentioned in the manual, too.
    I don't know why.
    Maybe this bus got used in other CPUs and just wasn't tested for higher speeds? NXP internal Bureaucracy?...
  17. Replies
    41
    Views
    397

    We'd have to check if it is indeed stable to use...

    We'd have to check if it is indeed stable to use /2.
    We should look at the clock-distribution diagram (ref manual) which periphals are influenced (and hope that it is correct)
  18. Replies
    41
    Views
    397

    These numbers look impressive, but do not reflect...

    These numbers look impressive, but do not reflect the reality :)
    Real sketches just do several things with several periphals, have delays, interrupts and so on.
    The real gain is much less than...
  19. Replies
    3
    Views
    81

    I just lack imagination: what is it useful for?...

    I just lack imagination: what is it useful for? Can you name a few useful use cases? Pls help :)
  20. Replies
    41
    Views
    397

    The periphals on T4 are a bit slow sometimes....

    The periphals on T4 are a bit slow sometimes. This is because of the lower bus speeds and the needed internal syncing if you access a periphal register over the bus. A thing that NXP can do better......
  21. Replies
    81
    Views
    1,068

    The unused attribute prevents warnings by gcc....

    The unused attribute prevents warnings by gcc.
    In this case, if you don't use "dummy", it is not needed (because of volatile)
    You can use it for normal variables which may not be used - for...
  22. Replies
    3
    Views
    63

    A library that I will use often. Thank you very...

    A library that I will use often.
    Thank you very much.
  23. Replies
    81
    Views
    1,068

    @Luni, does gcc emit a warning? In my opinion, it...

    @Luni, does gcc emit a warning? In my opinion, it should not.
  24. Replies
    81
    Views
    1,068

    I bet not. But yes, please have a look! It would...

    I bet not.
    But yes, please have a look! It would be interesting to know it gets optimized away. In this case I would have to review all my sourcecodes... :confused:
  25. Replies
    81
    Views
    1,068

    That's read AND write.. hm, more than needed. I...

    That's read AND write.. hm, more than needed.
    I think the compiler shouldn't complain with


    ...
    callback();
    regs->CSCTRL;
    }
    ...
  26. Thread: Arduino 1.8.11

    by Frank B
    Replies
    11
    Views
    325

    The old problem linux != windows with cr+lf ?

    The old problem linux != windows with cr+lf ?
  27. eh.. call me silly, but I can't find your...

    eh.. call me silly, but I can't find your pullrequest anymore..

    Edit: Took your code from #12 (and deleted freeverb )
    MP3 works. Great, since it is WIP again (I'm working on parallel playing...
  28. Another great thing would be to find a way to...

    Another great thing would be to find a way to support different sampling frequencies. For example input SPDIF 48kHz (or qeues, or...) , another input 96kHz, things inbetween (i.e. mixer), output...
  29. Please do :) I've seen this too, a few month...

    Please do :) I've seen this too, a few month ago..


    I'll try your PR and then vote for it...
  30. @Wmxz: The least painful way to support different...

    @Wmxz: The least painful way to support different dataformats would involve a flag in every packet that tells the dataformat.
    The default receiveReadOnly();, receiveWritable, allocate.. would need...
  31. Are there any negative side effects with your...

    Are there any negative side effects with your pointer solution?

    Can I just use your pullrequest, and i.e. my MP3-thing or LTC, or other user-written code will still work?
  32. Replies
    10
    Views
    197

    This was solved (including watchdog issue) by...

    This was solved (including watchdog issue) by this patch: https://github.com/PaulStoffregen/cores/commit/d10668b560ef974fbac4e55249279f39e4b5bb72
    It will be in Teensyduino 1.50
  33. I'm working on mp3/aac/flac. On my experimental...

    I'm working on mp3/aac/flac.
    On my experimental version it plays just now 4 MP3s concurrently (on T4)
    So, more is possible, I think - but have not tried it so far.
    It will depend on speed of SD,...
  34. Replies
    100
    Views
    3,475

    I am curious :)

    I am curious :)
  35. Thread: piezo cable

    by Frank B
    Replies
    8
    Views
    100

    So you want much more than a factor 2? If yes,...

    So you want much more than a factor 2?
    If yes, you're right you'll need a circuit.. in this case, I can't help. Maybe one of the others .. I know, some have experience with piezos.
  36. Thread: piezo cable

    by Frank B
    Replies
    8
    Views
    100

    Why is the reduced range a problem? That's a...

    Why is the reduced range a problem? That's a factor of 2 only
    You could just multiply it with 2 (that's an amplification, too ).. without having trouble with additional parts...
  37. Replies
    1
    Views
    31

    oh, I stand corrected. It's actually working. I...

    oh, I stand corrected.
    It's actually working. I guess my code has a problem elsewhere.

    By the way, the ReadWrite demo says


    // open the file. note that only one file can be open at a time,...
  38. Replies
    1
    Views
    31

    SD - Open more than one file?

    Is there any way to open more than one file on SD?
    I spent some time to make some MP3 codecs work parallel.. then noticed that SD.h does not support more than one open file. Is there any way around?
  39. That's a good point. Maybe we can also extend...

    That's a good point.
    Maybe we can also extend startup.c so that it shuts down after reboot(?)
  40. @mjs, it's now part of T4_PowerButton...

    @mjs, it's now part of T4_PowerButton
    Sorry, no documentation so far - just see the .h file
    Attention, the lib uses the startup_late_hook() now for resetting the memory, so that maxstack() can...
  41. The memcpys are not that slow. In fact they are...

    The memcpys are not that slow. In fact they are quite fast, and most do not simply copy:
    We have to deal with different formats, a simple example is I2S input : The output is LRLR but we need LLRR....
  42. All Teensy libs that come with Teensyduino are...

    All Teensy libs that come with Teensyduino are very efficient and you'll find many optimizations.
    Best is to download Teensyduino and take a look at the core (you'll find your UART code there) and...
  43. As I said, not a big problem - but if you copy...

    As I said, not a big problem - but if you copy 99% of a whole program, modify just a very few lines and upload to another platform( Github) a little info there (Github) is nice.
    Here, it's not...
  44. Replies
    9
    Views
    189

    DMAMEM (somedummycharacterstoreach10)

    DMAMEM
    (somedummycharacterstoreach10)
  45. Replies
    9
    Views
    189

    - a byte is 8 bits. - a sample is 16 bits = 2...

    - a byte is 8 bits.
    - a sample is 16 bits = 2 bytes
    - a audio packet is 128 samples = 256 bytes.
  46. Replies
    100
    Views
    3,475

    I - still - don't think that it is a problem, but...

    I - still - don't think that it is a problem, but ok, here it is.



    void setup() {
    #ifdef USE_LTC_INPUT
    AudioMemory(4);
    #endif
    setSyncProvider(getTeensy3Time);
    pinMode(syncPin,...
  47. Yes :) I don't use it anymore. Edit: Would...

    Yes :)

    I don't use it anymore.

    Edit: Would have been nice to see my name there - but OK, not really needed for such a dumb program with a few lines.
    I'm using the sketch-version now - needs...
  48. Great. Not easy to use - It's quite possible that...

    Great. Not easy to use - It's quite possible that if you change only one line in your program, the free space can be the half or even near zero :) - or you can get the opposite effect if one more...
  49. No (addsomedummycharacters)

    No
    (addsomedummycharacters)
  50. Ok, I've ordered some samples of your soic...

    Ok, I've ordered some samples of your soic memory. I tried to add a CBRAM, but it was not possible on the page. No problem. Thank you!
    I am very curious if you deliver to "Makers" without company :)...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4