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
    7
    Views
    67

    That's the easy part. attachInterrupt() Then,...

    That's the easy part. attachInterrupt()
    Then, you can take a look at the audio-library SPDIF input and look at the code. Remove all the DMA stuff, and it is almost done..
  2. Replies
    3
    Views
    39

    The Audio library provides raw data. Just use the...

    The Audio library provides raw data. Just use the AudioRecordQueue: https://www.pjrc.com/teensy/gui/?info=AudioRecordQueue to read the data - and then print it.
    What is printing useful for?
  3. Replies
    7
    Views
    67

    IMXRT1060 Reference Manual Rev2, Page 2028 shows...

    IMXRT1060 Reference Manual Rev2, Page 2028 shows that it can gegerate an interrupt depending on the fill-state of the FIFO.

    Of course there is no example code to do that, as the audio library is...
  4. Replies
    7
    Views
    67

    Well, first it would be needed to define what...

    Well, first it would be needed to define what "realtime" is.
  5. Replies
    3
    Views
    39

    Don't know why you posted this in Announcements -...

    Don't know why you posted this in Announcements - I moved this thread to "Audio".
  6. Serial flash is - compared to other memory -...

    Serial flash is - compared to other memory - incredible slow.
    I don't think there is a way to make it much faster.
  7. Replies
    192
    Views
    13,081

    I would say the Pico would be more than busy with...

    I would say the Pico would be more than busy with the sound emulation alone. The sound chip is very complex, and was the best of its time. The code for the sound emulation is quite complex, too.......
  8. Replies
    464
    Views
    6,229

    The ILI9341_T3 lib sets it to 119Hz. I did this...

    The ILI9341_T3 lib sets it to 119Hz. I did this some years ago by adding it to the init data.
  9. Yes :-) In the meantime I have now learned that...

    Yes :-)
    In the meantime I have now learned that __aeabi_uldivmod is used here for 64 bit data types.
    So, everything is OK.
  10. Replies
    6
    Views
    128

    See this Forum, "Announcements". All your...

    See this Forum, "Announcements".

    All your files will be deleted when you upload a new sketch.
    As far as I know it is planned to change that. May take some months.
  11. Glad that it works now. Yes, please!

    Glad that it works now.

    Yes, please!
  12. _svfprintf_r includes aeabi_uldivmod which in turn includes software divisions..?

    Teensy 4, see title.
    Do we have a bug with printf? Perhaps include a wrong library?
    T4 shouldn't need integer divisions in software...
    The added code is a) slow and b) very large... and not...
  13. Teensy 4.1 builtin SD does not use pin 10. The...

    Teensy 4.1 builtin SD does not use pin 10. The Audio Board uses pin10 if you use its SD.
    I think it should be natural to look at everything carefully before connecting anything, and I can't see an...
  14. Replies
    18
    Views
    315

    I'd double-check if you really need more than...

    I'd double-check if you really need more than 400kHz instead. Humans tend to overestimate some things..
  15. The audio shields uses Pin 15 - it's for the...

    The audio shields uses Pin 15 - it's for the optional potentiometer and has a capacitor to smooth its readings..
    It's always a good idea to take a look at the used pins before connecting something :)
  16. Hi, I never tried that. The code uses the SD...

    Hi,
    I never tried that.
    The code uses the SD from an interrupt, so I'd expect problems.
    You can try to surround your code by AudioNoInterrupts() [..] AudioInterrupts()n and make sure it computes...
  17. Replies
    1
    Views
    84

    How should the board connect to your instrument?...

    How should the board connect to your instrument? Which interface? Or is it usb?
  18. You can use the godbolt link I gave you, and...

    You can use the godbolt link I gave you, and modify the foo() function on the left to see the influence of different ways to write code. Even if you don't know assembler, you get an idea of what is...
  19. Whenever you call set_arm_clock.. Or try to copy...

    Whenever you call set_arm_clock.. Or try to copy the lines form set_arm_clock (regarding the IPG) to your program.

    The other things..and "assembler".
    Note, it is not really assembler.

    a)
    This...
  20. No I said the other chip just does not blink. The...

    No I said the other chip just does not blink. The blink codes are not needed for boards sold by PJRC, because they are all tested.

    The blink still indicates a problem that should be fixed, and you...
  21. Yes these chips use a different firmware - for...

    Yes these chips use a different firmware - for the normal 4.0/4.1 the blink codes are just not needed :)
  22. Replies
    28
    Views
    1,108

    Remember the pins are in swapped order.

    Remember the pins are in swapped order.
  23. https://github.com/PaulStoffregen/cores/blob/a2368...

    https://github.com/PaulStoffregen/cores/blob/a2368ad57e9470608a234d942c55a2278c6cd72b/teensy4/clockspeed.c#L148

    You could try to change the both "4" to 3 or even 2.. (600 / 3 = 200MHz or 600 / 2=...
  24. Replies
    17
    Views
    503

    I think we have to wait for Paul, and that he...

    I think we have to wait for Paul, and that he tests that board.
  25. Replies
    17
    Views
    503

    Hm that looks correct...

    Hm that looks correct...
  26. it's possible to overclock that IPG - in the past...

    it's possible to overclock that IPG - in the past when I tried it, it was not 100% stable in every case. But it leads to pretty amazing speedup..
  27. I tried it with godbolt:...

    I tried it with godbolt: https://godbolt.org/z/dbbefx5K7
    Looks like the compiler does translate the code above optimal (with -O2):


    foo():

    ldr r0, .L2
    ldr r1, .L2+4
    ldr...
  28. Great .... :o)

    Great .... :o)
  29. You can try something like { uint32_t...

    You can try something like
    {
    uint32_t gpt1=GPT1_CR | GPT_CR_EN;
    uint32_t gpt2=GPT2_CR | GPT_CR_EN;
    asm("":::"memory");
    GPT1_CR = gpt1;
    GPT2_CR = gpt2;
    asm("dsb":::"memory");
    }
  30. ..and what is the format of the wave file? It...

    ..and what is the format of the wave file? It needs to be 44kHz, 16 Bit, Stereo. Everything else does not work..
  31. You are using AudioOutputPT8211_2 ...

    You are using
    AudioOutputPT8211_2 pt8211_2_1; //xy=557,951

    Are you sure you are using the correct pins? Can you show your a photo of your hardware, please`?
    And did you try one of the...
  32. Replies
    17
    Views
    503

    If the ADAU is I2S compatible, the timing is not...

    If the ADAU is I2S compatible, the timing is not an issue.
    a) did you close the jumper R15?
    b) How did you sample it? It works with 1.8V levels.

    24374
  33. Add some Audio memory.. void setup() { ...

    Add some Audio memory..


    void setup() {
    AudioMemory(20);
  34. Replies
    66
    Views
    2,716

    Hi Chichiwoof, yes, you'll need the latest...

    Hi Chichiwoof,
    yes, you'll need the latest Teensyduino beta.
  35. Most likely the problem are all the out of bound...

    Most likely the problem are all the out of bound accesses to the array (Post #6) - there may be more than the String strings[5] array.
    ist has 5 elements. the first is [0] - the last element is [4]...
  36. AH... Not sure if this is the case here... but...

    AH...
    Not sure if this is the case here... but it almost looks like!
    Sounds it reasonable when I say the freeze is about 1.6 .. 1.7 seconds?
    If yes, please try to update Teensyduino to 1.54 Beta...
  37. String strings[5];// An array with 5 entries....

    String strings[5];//

    An array with 5 entries.

    Pretty fascinating that this works on AVR..


    for (int i = 0; i <=5 ; i++)
    {
    strings[i]= myString.substring(0,myString.indexOf("|"));
  38. all the code in this style void thirteen() {...

    all the code in this style

    void thirteen()
    {
    digitalWrite(demux0,LOW);
    digitalWrite(demux1,HIGH);
    digitalWrite(demux2,HIGH);
    digitalWrite(demux3,LOW);
    digitalWrite(0,LOW);
    ...
  39. Normally, a freeze is a hardfault. ...

    Normally, a freeze is a hardfault.
    Unfortunatley, Teensyduino jumps to a endless loop, then, instead of showing them ;)
    I'd look for array / buffer overflows, nullpointers, etc.
  40. Replies
    177
    Views
    21,044

    Note, there is a newer revision (Rev.4 10/2019)...

    Note, there is a newer revision (Rev.4 10/2019) of the Hardware Development Guide on the NXP website than the one mentioned here: https://www.pjrc.com/store/ic_mkl02_t4.html (which is Rev 0).
    Needs...
  41. Can you post a photo of the hardware you built?...

    Can you post a photo of the hardware you built? (i.e. the connections of the board and display should be clearly visible)
  42. Replies
    464
    Views
    6,229

    Oh... the comments are not very enthusiastic.

    Oh... the comments are not very enthusiastic.
  43. Replies
    7
    Views
    186

    again, you use pins that are used by the audio...

    again, you use pins that are used by the audio board.
  44. Replies
    78
    Views
    5,243

    Perhaps we should review the PAD settings for I2C...

    Perhaps we should review the PAD settings for I2C and use very conserative settings.
    From my experients they work well, even for higher I2C speeds and may cause less problems.


    edit: Perhaps the...
  45. happens :) Been there.. Glad that it works...

    happens :)
    Been there..

    Glad that it works now :)
  46. Replies
    19
    Views
    281

    As said, the unused-pins things does not help...

    As said, the unused-pins things does not help much and is the last useful thing. But you can view the waveform of I2c with the scope and perhaps use the PAD settings and add small caps until the...
  47. Take a look at the clock tree in the reference...

    Take a look at the clock tree in the reference manual.
    On Clock change, only PLL1 changes its frequency. Besides the ARM-Core-clock, IGP ist connected to this clock. Everything else is not...
  48. Replies
    605
    Views
    123,801

    ..and from my experience, the Elektor board is...

    ..and from my experience, the Elektor board is not very good, but sufficient for the fist experiments. Just don't expect great results.
  49. Some general rules: Don't use a low quality...

    Some general rules:
    Don't use a low quality breadboard, no low quality china cables. If cables, they should be a short as possible (really).
    Minimum - for audio - pins are 7, 8, 18, 19, 20, 21, 23,...
  50. Replies
    464
    Views
    6,229

    The library says the circle is at x=4 mm (90...

    The library says the circle is at x=4 mm (90 turned), the edge of the board at 11mm. 11-4 = 7mm

    Normally, dimensions are in mm and this is the case here, too. Some crooked value makes no sense,...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4