Search results

  1. W

    MTP file size limits.

    Yes, I know and there are some things better done in MTP-Teensy, but that is what progress is about and I'm happy that Paul, who kickstarted my interest in MTP, finally found some time to work on it to get rid of the experimental tag (@Paul: we still need some unique PID for MTP-Serial)
  2. W

    Adding MTP to a Teensy 4.1 project (and 3.2) that is already SERIAL + MIDI

    MPT.loop() simply communicates with PC and handles USB-MTP-requests. Each call to MTP.loop() handles a single MTP request by PC. Other USB requests by PC and Teensy (e.g. USB-Serial) are handled in parallel (transparently). USB per se is handled at an elevated priority level. Running MTP-loop...
  3. W

    MTP file size limits.

    Makes sense, as there was no mechanism in place to detect storage removal, or to 'error' handle the absence of a disk.
  4. W

    Adding MTP to a Teensy 4.1 project (and 3.2) that is already SERIAL + MIDI

    run MTP.loop() in loop() (lowest priority) and if ADC is running on elevated priority then there is no issue, Anyhow, I, myself, only call MTP.loop() when ADC is stopped, or I'm not interested in captured data. MTP_teensy may run MTP.loop using a 20Hz timer: I would stop this timer during...
  5. W

    MTP file size limits.

    That is a good point. Detecting disk removal/insertion is one aspect, but content management on responder (teensy) is another one. The original MTP version had the index file on the disk, so it was easy to synchronize index file with disk related mtp actions and after reset, the file was simply...
  6. W

    Compiler warnings

    OK, the actual derived class (in common/ArduinoFiles.h) is /** * \class PrintFile * \brief PrintFile class. */ template<class BaseFile> class PrintFile : public print_t, public BaseFile { public: using BaseFile::clearWriteError; using BaseFile::getWriteError; using BaseFile::read...
  7. W

    Teensy.exe icon

    Using TD on Arduino2.0.3/4 on Windows11, I got this Icon, missing the program and reboot icon. Is that normal behavior?
  8. W

    Compiler warnings

    So, I get this warning (using Makefile and GCC 13.3.1 ) : In file included from \Users\zimme\AppData\Local\Arduino15\packages\teensy/hardware/avr/0.60.2/cores/teensy4/Stream.h:24, from...
  9. W

    Interrupt End?

    figure out the interrupt level and check if more important task are processed at higher interrupt level. Interrupt level processing requires considerations of all other tasks. Also, ANY interrupt level processing will block main setup() and loop() functions. Having said that interrupt level...
  10. W

    Teensy 4.1 reset behaviour

    but a reprogramming and factory-reset button. short press: reload program from PC (must be connected to Teensy) 15 s press: erase all flash and copy original blink program into correct flash position and restart To shutdown Teensy connect on-off pin to GND for ~5 s. To wake-up Teensy connect...
  11. W

    Alternative boot loader for WiFi firmware updates on Teensy 4.1?

    Really? Do you wanted to hear: "go to school!" ?
  12. W

    Teensy 3.2的建议编程环境是Arduino IDE吗?

    looks like robot to collect answers to train LLM
  13. W

    Synchronizing teensies (again)

    Also the SPH0645 (especially the board from Adafruit) needs some 'tolerant' users (large negative offset) DMA does give a fixed delay , so only 'jitter' is driven by asynchronous frame-sync.
  14. W

    Alternative boot loader for WiFi firmware updates on Teensy 4.1?

    You cannot change the Teensy bootloader, which is on a dedicated chip. This is by design, but you can, as others have done, write a secondary bootloader, that resides in your program and allows updating the flash on Teensy. If you use WiFi with ESP32, you need to pass hexcode from ESP32 to...
  15. W

    teensy serial port problem Win 11

    And on T_3.6 there is no factory program after 15s holding of program button only empty flash and for programming you need to press the program button again (IIRC)
  16. W

    Teensy 4.1, Sleep mode and wakeup by RTC

    hibernate (switch off teensy) can only be woken up by RTC alarm (which is done by the code in other thread). once woken up, program starts with setup(). I cannot talk about snooze library that I do not use.
  17. W

    Teensy 4.1, Sleep mode and wakeup by RTC

    Try the code in https://forum.pjrc.com/index.php?threads/audio-library-wakes-up-teensy-from-hibernate.45034/post-345963
  18. W

    Unexpected FFT Peak with Disconnected Sensors

    Or, GND and line-wires are swapped where wires are connected to
  19. W

    Unexpected FFT Peak with Disconnected Sensors

    Could you have not said before that you did already this and that the spectrum peak you see corresponds to the signal you transmit. Now we needed 13 replies to understand that you record always the outgoing signal. In other words there is a loopback, which could be in hardware (somewhere...
  20. W

    Can't Install Teensyduino into Arduino IDE 2.3.2

    MTP_teensy from @KurtE is not part of the official TD (AFAIK), and must be downloaded and copied to your local Arduino/libraries Have a look on https://github.com/KurtE/MTP_Teensy. It is worth.
  21. W

    How to recover from Teensy 4.1 flash memory chip failure without pushing PROGRAM button

    you can also put Teensy into 'original' state by pressing the program button until red light shows up (around 15 s). you release the program button and teensy wipes out all memory and installs original blink program.
  22. W

    Updated 8x8 and 16x16 audio

    You can change polarity of BCLK using I2S_(R/T)CR2_BCP (R for RX, T for TX)
  23. W

    audio library wakes up teensy from hibernate

    on T4 wake-up from hibernate is only by RTC alarm. The wake-up digital pin of MCU is not accessible. Note, the snippet in #47 handles only hibernate (lowest power consumption with all but RTC switched off) and not other type of sleep modes.
  24. W

    How do you organize large sketches?

    I always tend to keep the *.ino file as short as possible, and put all my other stuff into .cpp with associated .h files within a src sub directory. Arduino IDE 2. has no issues with this and by not using multiple ino files, I avoid surprises due to Arduino preprocessor. I also tend to code the...
  25. W

    FIR bandpass with >500 taps and 96 kHz sample rate

    can go higher, see https://github.com/WMXZ-EU/test_sgtl5000, some test I did 6 years ago
  26. W

    audio library wakes up teensy from hibernate

    If you wanted true hibernate with wake-up by RTC alarm, here is what I'm using #if defined (__IMXRT1062__) #define SNVS_LPCR_LPTA_EN_MASK (0x2U) ///< mask to put MCU to hibernate // see also https://forum.pjrc.com/threads/58484-issue-to-reporogram-T4-0?highlight=hibernate /**...
  27. W

    FIR bandpass with >500 taps and 96 kHz sample rate

    I get lost here, can you give a link? IMHO, any FIR (time-based or spectrum based) or convolution, being partitioned or not, has an information (group) delay (i.e. is complete) that corresponds to half the number of tabs. Not to be confused with phase delays, but I guess, we are all aware of this.
  28. W

    FIR bandpass with >500 taps and 96 kHz sample rate

    As the band-pass needs coefficients for intrinsic low- and high-pass, why not split the filter in first low-pass and then high-pass. maybe the 2x200 tabs give you sufficient steep transition bands. Concerning 96 kHz, there are multiple threads on how to do that. If you need a working example...
  29. W

    Export Restrictions for Teensy 4.1?

    Mouser refused to send me (in Germany) a Teensy 4.1 some years ago. They even did not even get a chance to fill out a questionnaire. No problems with DIGIKEY (only the standard questions on purpose of purchase)
  30. W

    audio library wakes up teensy from hibernate

    does https://forum.pjrc.com/index.php?threads/audio-library-wakes-up-teensy-from-hibernate.45034/post-182213 (this thread) help?
  31. W

    Teensy 4.1: SdFat interferes with GUIslice

    SD access must IMHO be always at the lowest priority level and all other continuous activities should run on interrupt level.
  32. W

    MEMS microphones into Audio Shield???

    maybe you could learn from Chipaudette's Tympan project see for example: https://openaudio.blogspot.com/ and search this forum for Chipaudette
  33. W

    Teensy 4.1: SdFat interferes with GUIslice

    what are the interrupt levels the two SPI's are invoked?
  34. W

    U4 power IC

    The schematic is consistent with the pictures of U4 showing 6-pin. I guess the first question is where and when did you buy Teensy4.1 and maybe you can post a picture?
  35. W

    SD.h and RDWR

    Best to check the examples of SD library Edit: AFAIK, Problem is that O_RDWR and similar SdFat declarations are not Arduino compatible
  36. W

    MTP file dates

    My own use case is that I exclude MTP while doing data acquisition, and respond to MTP only when acquisition is stopped. I asynchronous handling of MTP request is possible and I have done it in the past. Simply use a timer to run the MTP loop()
  37. W

    MTP file dates

    To access a teensy file from a program, you need some SW that lets you mount the file. I use windows and there is no easy way to get the device letter assigned to Teensy disk without another interface layer. Also one needs very likely partial access to file. Do not recall if this was implemented...
  38. W

    MTP file dates

    There may be a speed issue with USB2 (Teensy sending data too fast while scanning directories). I admit that I have not worked on MTP_t4 for a while (especially after KurtE's version was getting speed). However I use it in nearly all my data acquisition systems). Further, I always structure my...
  39. W

    Are doubles really doubles on Teensy4.1

    AFAIK, c_cpp_properties.json is not controlling the compiler (maybe Platformio uses it to generate Makefile, I do not know). What is your Makefile saying?
  40. W

    MTP file dates

    @hyn0nnym0u5e. Storage.h is from MTP_t4 Maybe one can get rid of the definitions, They arise from the fact that PJRC's SdFat implementation is diverged from Greiman's original without following Greimans modifications. As the symbol is only used in 3 locations, I will modify it to avoid...
  41. W

    MTP file dates

    Updated Github. There is a conflict to Fs.h, which I'm not using in Storage. I removed SD.h from Storage and use SdFat directly in Storage Note: if you are using SD.h, somewhere else, check if this generates issues, and let me know
  42. W

    MTP file dates

    Updated github. Archive your old version (simply zip it) before updating with github version. A quick test of mine shows the creation/modification timestamp
  43. W

    MTP file dates

    I guess, I have not added creation/modification date to the property list. I personally do not need it, but if important I can have look.
  44. W

    Powerbank usage; running Teensy 4.1 + sensors on 5v vs. powering sensors from Teensy 3v

    I would agree to keep it simple. But if I wanted to have an data acquisition system that I setup, start, check the functionality, and replace PC with Powerbank without restarting Teensy, then this requires a little bit more than a USB cable.
  45. W

    TDM in slave mode

    If you read the whole other thread, you will see TDM in slave mode has been done (at that time on T3.6, but also on T4.1)
  46. W

    Question about Regulator Enable & Termination

    AFAIK, LDOs are enabled by either connecting to GND (disabled) of to VIN (enabled), whereby any voltage above a certain level is valid for enable. So Teensy 3V level is sufficient.
  47. W

    Powerbank usage; running Teensy 4.1 + sensors on 5v vs. powering sensors from Teensy 3v

    My experience is, that it can work if consumption is not too low. Writing to microSD is usually sufficient to keep powerbank on. I trick I also did is to run Teenys4.2 from LiPo and attach it via adafruit backpack (id 2124) to powerbank (outdoor type with solarpanel). Powerpank will either load...
  48. W

    Teensy 4.1 Pin 22 disabled by AudioOutputI2S

    Can you provide a picture of your setup?
  49. W

    Teensy 4.1 Pin 22 disabled by AudioOutputI2S

    Not on my T4.1. Commented or not, analogRead(22) provides the expected values.
Back
Top