Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: WMXZ

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. exactly. the loop() is called continuously from...

    exactly.
    the loop() is called continuously from (hidden) main. Every direct call to set the volume can generate a glitch. So, put all one-time settings into setup().
    If you need to modify volume...
  2. Don't touch continuously the volume within the...

    Don't touch continuously the volume within the loop, it only create noise.
  3. Are you sure? It is easy to verify. AFAIK, I2S...

    Are you sure? It is easy to verify.
    AFAIK, I2S input allocates 4 blocks for input and you have only 5. You need IMO at least 6 to allow allocation of new blocks while data are still written to USB. ...
  4. The few occasions I had similar problems, could...

    The few occasions I had similar problems, could be solved by reformatting with the official tool from sdcard.org
  5. short answer: one of the first statements in ISR...

    short answer:
    one of the first statements in ISR is to clear this particular interrupt, otherwise it can trigger again.
  6. Replies
    7
    Views
    171

    If you have access to GND (e.g. battery) then...

    If you have access to GND (e.g. battery) then behind the hole needs to be only a contact that is connected to program pin. A grounded needle / wire will put teensy into programming mode.

    or have...
  7. Replies
    7
    Views
    171

    Even without button, you still have the Program...

    Even without button, you still have the Program Pin, you can use to start programming by touching GND.
    It is fairly common for systems that are enclosed to have program pin accessible.
  8. Replies
    10
    Views
    6,564

    So much time has passed!

    So much time has passed!
  9. Replies
    14
    Views
    364

    No, connect I2S MEMS directly to Teensy replacing...

    No, connect I2S MEMS directly to Teensy replacing the Audio shield.

    Run the following program

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
  10. Replies
    587
    Views
    175,005

    I ended up with RP2040 as an LC replacement :-(

    I ended up with RP2040 as an LC replacement :-(
  11. Similar to @StefanPetrick delivery can take long...

    Similar to @StefanPetrick delivery can take long time (in my case > 3 weeks) for delivery from UK to Germany (standard shipping).
    In addition to VAT I had also to pay custom handling.
  12. Shipments from UK to EU are still ... lets say...

    Shipments from UK to EU are still ... lets say difficult.
  13. Replies
    100
    Views
    6,704

    Can someone explain in two sentences: Apart ...

    Can someone explain in two sentences:
    Apart from replacing "void (*funct)()" by "callback funct" is there any other advantage, and what is different to "typedef void (*callback)() ;" that I used in...
  14. Replies
    21
    Views
    354

    The standard procedure is to access microSD card...

    The standard procedure is to access microSD card within the loop() function and to sample the sensors on interrupt level (say running a timer)
    on a T4.1 a sample easily 6 sensors at 96 kHz and write...
  15. Replies
    21
    Views
    354

    these high latencies are quite normal and within...

    these high latencies are quite normal and within the specs and a couple of times discussed on this forum.
    They are due to microSD card internal activities (bad block handling, wear levelling). In...
  16. Replies
    86
    Views
    3,653

    with ctrl-shift-p I get list of commands...

    with ctrl-shift-p I get list of commands /short-cuts but not workplace settings (2.0.4 Win11)
  17. @sbfreddie, there are two methods to refresh MTP...

    @sbfreddie,
    there are two methods to refresh MTP on host (Mac in your case)
    1) unmount/mount disk (do not know how that is done on Mac)
    2) let Teensy send an resetEvent or addObjectEvent.
    ...
  18. I do it as follows stop I2S (I assume you are...

    I do it as follows
    stop I2S (I assume you are using I2S)
    modify frequency
    restart frequency
    code: e.g.: https://github.com/WMXZ-EU/record_sgtl5000/blob/master/i2s_mods.h
  19. Wiring is indeed a big issue. keep in mind SPI...

    Wiring is indeed a big issue.
    keep in mind SPI uses a clock rate of 16-33 MHz. That is HF radio frequency. So when the clock wire come close to other wires, lot of crosstalk and corruption may...
  20. Replies
    1
    Views
    162

    You need to add MTP, that allows you to transfer...

    You need to add MTP, that allows you to transfer files from and to Teensy.
    suggest to checkout https://forum.pjrc.com/threads/70553-Teensy-4-0-based-Audio-Guestbook?highlight=guestbook
  21. As you can see from the code, it does NOT change...

    As you can see from the code, it does NOT change AUDIO_SAMPLE_RATE_EXACT and in fact it cannot change this as it is a '#define' symbol.

    You can change this symbol in 'hardware/teensy/avr/...
  22. Replies
    6
    Views
    645

    My hunch is that near future is not promising...

    My hunch is that near future is not promising
    https://fortune.com/2023/03/11/chips-and-science-act-semiconductor-shortage-rakesh-kumar/
    as chip producer get 'confused' by geopolitics
    and 'fight' ...
  23. This to be expected. 120 blocks for AudioMemory...

    This to be expected.
    120 blocks for AudioMemory is too little for the occasional delays of the microSD cards that can last over 100 ms.
    Increase AudioMemory and if you need more space use...
  24. Replies
    8
    Views
    341

    Short answer: If you can draw it you can program...

    Short answer: If you can draw it you can program it
    If you use the GUI to connect parts of your system, you can simply rename modules and connections.
    The GUI is only for facilitating the module...
  25. remove/uninstall the com 8 port (using device...

    remove/uninstall the com 8 port (using device manager) as it seems locked for Teensy 3.2 (Windows problem, I guess)
  26. Replies
    6
    Views
    409

    @Gkatos, You still have not provided the code to...

    @Gkatos,
    You still have not provided the code to reproduce the problem.
  27. Replies
    29
    Views
    1,116

    As per documentation, conversion (sync) clock can...

    As per documentation, conversion (sync) clock can go high during clocking-out of data, so length is not an issue, as long is is longer than 1 bit clock.
  28. Replies
    29
    Views
    1,116

    If the chip is wired as in datasheet or in...

    If the chip is wired as in datasheet or in similar fashion
    why do you bother with SPI? use I2S it is easier and runs continuously.
    I have done that with other chips with similar SPI-type connection...
  29. Replies
    27
    Views
    973

    You can use standard SAI (stereo protocol) where...

    You can use standard SAI (stereo protocol) where frame-sync toggles every 16 bit. data will be converted and transferred at alternate frame-sync phases.
    In fact, I used 2 ADS8881 where frame-sync to...
  30. Replies
    27
    Views
    973

    I know, the datasheet says SPI-compatible, but I...

    I know, the datasheet says SPI-compatible, but I would try to use SAI/TDM and use frame-sync for conversion.
    I have done that in the past for TI ADS series.
  31. Replies
    8
    Views
    418

    Yes, when put into hibernate state all MCU but...

    Yes, when put into hibernate state all MCU but RTC is shut down. This includes USB and as I discovered during this test it "disables" the bootloader. In other words if in hibernate state, pressing...
  32. Replies
    8
    Views
    418

    So far, I have no issue with the following test...

    So far, I have no issue with the following test program

    #define SNVS_LPCR_LPTA_EN_MASK (0x2U)

    void hibernate(uint32_t nsec)
    {
    uint32_t tmp = SNVS_LPCR; // save control register
    ...
  33. Years ago, I had the same situation (programming...

    Years ago, I had the same situation (programming multiple Teensies connected to PC with same code), so I modified a teensy_loader_cli to enumerate first all Teensies on PC, and then downloaded the...
  34. Replies
    11
    Views
    755

    The T4.1 build-in SD card can easily handle 4...

    The T4.1 build-in SD card can easily handle 4 channels at 32 bit at 192 kHz sampling (more than you asked). External SPI SD cards are much more limited.
    Issue remains, that you need to prepare a...
  35. Yes, the T4.x and the T3.6 use the same amount of...

    Yes, the T4.x and the T3.6 use the same amount of audio memory: 229376 bytes

    Not sure if it helps to increase this number for T4.0 as it needs RAM for program.

    IMO, for longer delays you would...
  36. Replies
    2
    Views
    259

    I was once using a CSAC on a Teensy (3.3V, don't...

    I was once using a CSAC on a Teensy (3.3V, don't recall Teensy model) and it was working fine (maybe there is still trace of it on Forum),
    Never used it afterwards as these particular CSAC was known...
  37. @bicycleguy if you wanted to use the advantage...

    @bicycleguy
    if you wanted to use the advantage of VSCode (as I do), simply move all code from ino to a cxx file and let ino be empty.
    Obviously, your new cxx file must be logically correct an...
  38. Replies
    9
    Views
    1,171

    You can use Elm Chan's fatfs that uses the...

    You can use Elm Chan's fatfs that uses the fopen() etc API, that is used in non-Arduino environments
    There is a port to Teensy https://github.com/WMXZ-EU/uSDFS, which, however, has not been touched...
  39. Replies
    1
    Views
    377

    I would say, that does not work as intended. Not...

    I would say, that does not work as intended.
    Not for using DSPInt functions that are really not necessary for 32-bit operations, but compiler should be able to handle that.
    But for taking the 3rd...
  40. MTP can disabled/enabled using the device...

    MTP can disabled/enabled using the device manager, so I expect it can be done with "pnputil" a tool I was not aware of when we worked on PC-side refresh of MTP and I suggested the powershell script
  41. Replies
    6
    Views
    653

    No, only Teensy.exe can upload the bootloader...

    No,
    only Teensy.exe can upload the bootloader chip.
    Details of bootloader and Teensy.exe PJRC proprietary information.
    the Teensyloader CLI can only download a user program
  42. Replies
    8
    Views
    646

    most likely is it the python serial library that...

    most likely is it the python serial library that did not release serial port and act like a zombie.
    proof: reboot the system, does it resolve the issue?
  43. Replies
    109
    Views
    10,599

    I strongly support to split up according to board...

    I strongly support to split up according to board architecture types.
  44. Replies
    2
    Views
    223

    It is technically possible to combine different...

    It is technically possible to combine different USB devices. However, you have to write your own device driver (as we did with MTP+Serial)
  45. I also suggest that USB connection...

    I also suggest that USB connection (wiring/connector/length) is bad, even if cable is good (have been there also)

    T4.x run USB with 480 MHz while T3.x are running with 12 MHz
    Suggest testing by...
  46. Replies
    36
    Views
    2,557

    Why are you not simply process all in time...

    Why are you not simply process all in time domain? That gives you the location of the knock to the sample.
  47. Agree, solder need to be improved

    Agree, solder need to be improved
  48. Replies
    7
    Views
    1,326

    For the records Bill attributes this to a bug in...

    For the records
    Bill attributes this to a bug in SdFat that was removed with version 2.2.0
    see https://github.com/greiman/SdFat/issues/389
  49. Replies
    21
    Views
    1,428

    I guess you are right on the number. For the...

    I guess you are right on the number. For the rest, that was my idea also.
  50. Replies
    21
    Views
    1,428

    should work with custom software: T4.x has up to...

    should work with custom software:
    T4.x has up to 4 I2S data out ports, which could generate 16 out channels
    for 4 Audioboards you would need to use two different I2C controls ports.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4