Search results

  1. W

    New CP/M-80 computer: Z80, SD cards, VGA, USB keyboard and power... Teensy 4.1

    May I ask two question? I have some asm code from the 80s (on paper). So, I simply can type it in and is should work, right? Also, I recall that one of the nice features of the Z80 was that it had 2 independent register sets, so that context switching was fast. Is that also implemented?
  2. W

    Let's talk of possible new accessory boards

    I second Paul's item high performance ADC chip (not audio focused) battery power / management power over ethernet lower priority single pair ethernet or ethercat wifi
  3. W

    MPT reset

    I use MTP.reset() when informing PC to reset the MTP connection. This is useful when Teensy is writing to disk while connected to PC, as PC will not be aware of new files and will never enquire. There are multiple ways of informing PC that Teensy files have changed. -MTP.reset() which original...
  4. W

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    yes, for example a dual microSD card reader will show up as two devices, even without SD card inserted
  5. W

    The real-time clock forgets the time.

    Or your use (cabling,etc) of the RTC battery
  6. W

    Teensy 4.1 SD card compatibiliy questions

    I have frequently used 1TB SD cards formatted with a PC (exFAT)
  7. W

    3.2 Serial question

    I noticed (on T4.1) similar missing early print statements where I was waiting for serial to come up and printed some text that never showed up. In the end it turned out, that the Win PC (in my case, not Mac) enumerated USB so that Serial was available, but was still busy with other...
  8. W

    Teensy 4.1 to use SPI instead of SDIO for on-board SD card

    So, there seems to be no way to use the on-board SD disk with SPI. Why I'm interested in using a slower SPI, is that with SPI and CS I can deactivate the SD disk between writes by simply putting SPI into shared mode, which significantly reduces the consumption. Not sure if that can be done with...
  9. W

    Teensy 4.1 to use SPI instead of SDIO for on-board SD card

    I can easily access the on-board SD card of T4.1 using standard sdio. Now I wanted to test it using the SPI interface (I guess SPI2) However, the following code Serial.println(SPI2.pinIsChipSelect(46)); Serial.println(SPI2.pinIsMISO(43)); Serial.println(SPI2.pinIsMOSI(45))...
  10. W

    Pin doesn't exist teensy micropython

    To see the available pins go to "micropython\ports\mimxrt\boards\TEENSY4\pins.csv" (for example on github) where in column A you see the names you can use (here D24 and D25 without 'minus' or 'underscore')
  11. W

    Pin doesn't exist teensy micropython

    Are you sure that 'O-24' and 'O-25' is the right syntax. Never have seen such in python. Assume you have the latest firmware you should have something like 'D24' and 'D25'
  12. W

    Pin doesn't exist teensy micropython

    yes, please provide full program (using the </> code tag), as the error is not in the python snippet
  13. W

    AudioAnalyzePeak processing incorrectly

    Suggest to check the time series of the acoustic data. Some (or all?) I2S mems seem to be DC-coupled before ADC and have terrible DC-offset and DC-drifts. As a consequence they lost the dynamic range one would expect. Alternatively to checking the timeseries, use the FFT module and inspect the...
  14. W

    I2S misalignment with CS4272

    Unwanted Audio noise depends heavily on the wiring of the analog part. Especially the power supply of the analog frontend. They easily can pickup electronic noise (highspeed data transmission, etc) via air and via electric interferences. The drivers, per se, may not help to understand the...
  15. W

    CircuitPython v Arduino for real time audio analysis

    Only two small modifications to Michael's valid answer: You do not NEED to install or use Arduino/Teensyduino. I'happily use Makefiles with hand installed C++ toolchain and Teensy libraries and use Teensy.exe for downloading. Installing Arduino/Teensyduino, however, simplifies the setup and use...
  16. W

    CircuitPython v Arduino for real time audio analysis

    While basic Circuitpython firmware for T4.1 is available, there is not very much development/support. Knowing the quality support you can find on this forum, I would suggest to use Teensyduino (based on Arduino). The acquisition chain is trivial (audio tool) and nearly no-coding. You only may...
  17. W

    Teensy 4.1 doesn't boot with VBAT applied. No v3.3 generated.

    @VictorFS I have no idea on the cause-effect chain, but without pull-up of the program pin this particular system will not boot.
  18. W

    Teensy 4.1 doesn't boot with VBAT applied. No v3.3 generated.

    It may, or may not be related, but for one of my systems T4.1 does only boot (from hibernate or power plug-in), if Program pin is pulled high. I do this with a 68 k resistor. It seems that the boot chip, to which prog pin is connected, inhibits boot. To test this simply touch prog pin t with VBAT.
  19. W

    Improvements to FFT

    @h4yn0nnym0u5e , I guess your approach is not good, and is destroying the spectrum. For an 1024 point FFT you need 1024 points spanning 8 blocks of 128 samples. Of course, you can construct your own algorithm and process the 8 blocks individually and combine the frequencies. For this to work...
  20. W

    Improvements to FFT

    Sorry, but could explain the algorithm how you distribute, say a 1024 point FFT over eight 128 data blocks (i.e. 8 update() calls). This is not obvious from the code, at least to me.
  21. W

    Dead Teensy 4.1

    USB connection does NOT require 5V, only D+,D- and GND. A lot of people cut the USB-5V in the cable instead of the VIN-VÙSB Pad connection. 2nd, You should power Teensy with 5V either from USB or VIN. Powering with 3.3V (Bypassing the LDO) is NOT recommended as the powerup sequence of Teensy is...
  22. W

    Possible Teensyduino modification to ease debugging...

    @tician, did you really check that you have in your DMA_ISR the "arm_dcache_delete(...)" line to clear the cache as indicated by @jmarsh?
  23. W

    weird power startup

    I have a weird power startup issue. system: T4.1 to be powered by 5V (4-alcaline D-cells) with Pololu D24V10F5 DC/DC converter Attached to Teensy are custom ADC attached to Battery in parallel to DC/DC converter is a Preamp (to be switched on by teensy) Teenys connected to PC (Vin-VUSB cut)...
  24. W

    Enabling/Disabling USB Audio at runtime

    Without modifying the library source code, you could insert a queue object, which has a begin() and end() method. It may do what you wanted.
  25. W

    Next new Teensy , USB-C Please.

    As this discussion already happened some years ago, I repeat my suggestion to elongate the d+ d- pads to make the more solder friendly. That would IMHO be sufficient for most cases. Through holes invite to complex wiring, reducing possible throughput.
  26. W

    NXP CMSIS FFT on Teensy4?

    If you need the last two bits, you cannot use the optimized 16 bit DSP, then, AFAIK, there are no special DSP optimizations. Or you give up the top 2 bits and modify the Audiolibrary to extract you the 16 bits of interest,
  27. W

    Teensy wont turn on, soldered the audio shield rev d on 4.1

    Put the solder back between red pin (VIN) and the Pad. Or apply 5 V to the red pin (VIN). What you have done is equivalent to cutting the connection between the two pads (separating VIN from VUSB)
  28. W

    NXP CMSIS FFT on Teensy4?

    As the last two bits are anyway noise, to could easily use the teensy audio library that is optimized for 16 bit DSP. Nothing specific for T4. A 1k FFT is already implemented. To make a 8k FFT, you could easily extend the 1 k FFT module to 8k.
  29. W

    NXP CMSIS FFT on Teensy4?

    OK, if you really wanted to use 16 bit that is optimized for 16 bit integer DSP, with a T4 having float32 and float64 processors then... BUT, these optimizations have not changed from CMSIS4 or earlier to CMSI5
  30. W

    NXP CMSIS FFT on Teensy4?

    Yes, If you look to the butterfly operations you see a one-to-one relation to the math as given in the comment above every instruction. The differences, for example radix 4 to radix8 is simply programming style but not specific to processor architecture. We all know that loop unwrapping will...
  31. W

    NXP CMSIS FFT on Teensy4?

    There is not very much CMSIS optimization for T4. FFT is plain float multiplications-addition that are typical for all FFT implementations. 16-bit integer FFT for T3 are different. Here you find DSP optimization (as implemented in Audio Library). If you wanted to do 8 k FFTs then you leave the...
  32. W

    Unix on Teensy 3.5

    What I like about the history is that IIRC the name Unix was chosen to indicate singe user single task operating system to run on a small computer. contrary to the mainframes at that time. And BTW Linux is Linus Thorwalds Unix (kernel) implementation coming slightly after A. Tannenbaum's Minix...
  33. W

    Problems interfacing with adafruit flash sd card with teensy 4.1

    And you soldered the connection, right?
  34. W

    Teensy 4.1 PSRAM Random Access Latency

    OK, missed that this were Read tests, so using this for buffering would require read/write access.
  35. W

    Teensy 4.1 PSRAM Random Access Latency

    Which would be not a problem for a fast data logging program with producer/consumer queue to buffer latencies of uSD cards.
  36. W

    Teensy 4.1 PSRAM Random Access Latency

    So, that would allow to use PSRAM also with T4.0, or do I mis-undertand the flexibility?
  37. 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)
  38. 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...
  39. 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.
  40. 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...
  41. 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...
  42. 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...
  43. 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?
  44. 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...
  45. 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...
  46. 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...
  47. W

    Alternative boot loader for WiFi firmware updates on Teensy 4.1?

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

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

    looks like robot to collect answers to train LLM
  49. 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.
  50. 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...
Back
Top