Search results

  1. P

    Teensyduino 1.59 Beta #2

    Did some testing and 1.59 seems to run much more stable than 1.58. I am seeing far less glitches with the Teensy hanging on boot for certain optimization flags: I checked (with --specs=nano.specs as well): - DTEENSY_OPT_DEBUG_LTO - DTEENSY_OPT_DEBUG - DTEENSY_OPT_FAST - DTEENSY_OPT_FASTEST_LTO...
  2. P

    DEBUG: undefined reference to `vtable for USBDriver'

    Ok, managed to fix the issue :) USBDriver::claim() and USBDriver::disconnect() were not properly marked pure virtual. Made a fix PR here: https://github.com/PaulStoffregen/USBHost_t36/pull/125
  3. P

    DEBUG: undefined reference to `vtable for USBDriver'

    I saw some post mentioning this error (https://forum.pjrc.com/threads/58979-duplicate-Arduino-Debug-via-Serial), but it doesn't say if/how the issue was reoslved. Basically, when I am building my project in debug (-DTEENSY_OPT_DEBUG) I am getting this weird linker error: usb_drive.cpp only...
  4. P

    How to add a Teensyduino (beta) release to PlatformIO

    @shawn Seems that the "toolchain-gccarmnoneeabi" package is now called "toolchain-gccarmnoneeabi-teensy". The guide should be updated.
  5. P

    usbMIDI.sendNoteOn not recognized by Traktor PRO

    NVM I fixed the issue. Turns out I have to select the MIDI controller as the Out-Port not the In-Port :) Works now!
  6. P

    usbMIDI.sendNoteOn not recognized by Traktor PRO

    Not sure if this is the right place to ask, but I am trying to get my Teensy-based MIDI device recognized by Traktor PRO (DJ Software). I tested the MIDI connection using MidiView and it looks all good. However, Traktor doesn't seem to pick up the MIDI notes that I send. //Called when a...
  7. P

    arm_cfft_q15: What am I doing wrong?

    Well AudioAnalyzeFFT256 is also using q15 albeit the deprectated arm_cfft_radix4_q15 function: https://github.com/PaulStoffregen/Audio/blob/7346c5401cbbe5d78f41ab9c68bb4a35270d8a7c/analyze_fft256.cpp#L75
  8. P

    Simple 3 band EQ

    I am trying to create a simple 3-band EQ. My current approach uses a BiquadFilter and sets low shelf / high shelf to control lows and highs. There I can simply pass a gain. But for the mids I am not too sure. Should I use a bandpass filter there? void set_filter_lowpass(float v) { constexpr...
  9. P

    arm_cfft_q15: What am I doing wrong?

    To color some waveforms I decided to experiment a bit with FFTs: constexpr auto FFTSize = 256; // imaginary & real buffer combined std::vector<short> fftBuffer(FFTSize * 2 + FFTSize); auto fftRealBuffer = fftBuffer.data() + FFTSize * 2; for (size_t i = 0; i < numSamples; i +=...
  10. P

    -flto with T4 (Teensyduino 1.58)

    Yeah, PIO doesn't really provide any predefined optimization profiles for Teensy AFAICT. You can only set raw compiler flags. Are there any other flags that Teensyduino uses that I have to manually set in PIO?
  11. P

    -flto with T4 (Teensyduino 1.58)

    @luni Oh, I had no idea about this. This fixed the issue. Went from -2816 to 96000 for local variables. Awesome! What does it actually do? This should be the new default for PlatformIO.
  12. P

    -flto with T4 (Teensyduino 1.58)

    Tried compiling with -fdata-sections -ffunction-sections -Wl,--gc-sections. That doesn't seem to make much of a difference though.
  13. P

    -flto with T4 (Teensyduino 1.58)

    So I am working on bigger project with quite a few external dependencies. It seems that despite -Os some of these still have quite the code bloat and my T4 is running out of memory. These seem to be the biggest offenders at the moment: Forking each of these libraries and removing things I...
  14. P

    Detecting noise in noise

    Off-Topic: @PaulS Cool, didn't know we have an arm library with cross-correlation function included. Will be quite interesting for the WSOLA time-stretching I am writing. Do you happen to know if the library is vectorized for Arm Cortex M7 instruction set?
  15. P

    CrashReport crashes T4 on startup

    @PaulStoffregen Ah, that's good to hear. Would be nice to get an official beta channel for PlatformIO at some point. I tried following the instructions in but it wasn't working for me. It didn't set the correct gcc path. Would really love to test 1.58 Beta.
  16. P

    CrashReport crashes T4 on startup

    Ok, spent some time investigating the issue and it seems that it has something to do with optimization flags. I was compiling LVGL with -Os since it would otherwise exceed the memory of the Teensy. PIO was set to debug, so -Og I assume. By forcing everything to compile with -Os it does not crash...
  17. P

    CrashReport crashes T4 on startup

    Seems that the trying to print out CrashReport crashes my T4 right on startup (I can see it appear as serial device briefly but then it directly disconnects): if (CrashReport) { Serial.print(CrashReport); } Not sure if this directly related with CrashReport. I often get really weird...
  18. P

    How to add a Teensyduino (beta) release to PlatformIO

    Followed the guide but somehow it fails to find arm-none-eabi-g++: PIO version: version 6.1.5 Also seems that everytime I compile it reinstalls the packages. I checked .vscode/c_cpp_properties.json and it seems that it doesn't set the complete path: "compilerPath": "arm-none-eabi-gcc",
  19. P

    Teesnsy 4 USB Host not working

    Update: It works now! I was refactoring my code and thought it was OK to put the usb objects in fields (i.e. not static). Making them static again resolved the issue. Thanks for your help though :)
  20. P

    Teesnsy 4 USB Host not working

    I double-checked the USB connector board. No shorts, solder bridges or anything. Important to note that this did actually work at some point (with only 12Mbit/s though), but somehow stopped working. I didn't change any wiring. Paul Stoffregen mentioned in some thread: Could this be the problem...
  21. P

    Teesnsy 4 USB Host not working

    Sorry for the late reply. It's a regular USB 2.0 stick (JetFlash Transcend 32GB)
  22. P

    Teesnsy 4 USB Host not working

    Hey, I am trying to get the "ListFiles.ino" example from the USBHost_t36 library to work. However, it seems to get stuck somehow: Tried both 480MBit and 12MBit mode (by modifying ehci.cpp) but no luck. I basically just soldered pin header to D+/D- and connected jumpers to a usb breakout board...
Back
Top