Latest activity

  • C
    Thank you for your suggestion Chris. I tried adding the suggested change, as follows. // slew rate CORE_PIN11_CONFIG |= PORT_PCR_SRE; CORE_PIN12_CONFIG |= PORT_PCR_SRE; CORE_PIN14_CONFIG |= PORT_PCR_SRE; CORE_PIN15_CONFIG |=...
  • PaulStoffregen
    Indeed SPI bus to 8 devices can become a signal quality nightmare, especially if the wires are "long" and there is any substantial space between each signal wire and its return GND path.
  • N
    This would be very welcome on my project as it would save it needing to be placed in probably 40 places across the code (No there's not 40 different interrupts, but different functions that could be called depending on config/state). Having it...
  • E
    Thanks for your comment. But my data set is small and I should reach the .csv file, that I saved during the mission, after the mission immediately. With the SD card, I can access my data faster. Am I wrong?
  • E
    As I understand, flash is not integrated into Teensy's MCU, so its interface is not DMA. I researched W25Q64JV. I believe it is using Quad SPI. If I am true about the Quad SPI thing, can you provide the average SD card(4bit SDIO) and...
  • S
    Hi, I am looking for some clarity about the AudioAnalyzeRMS function. I am applying it to the mic input and getting fine results but I am curious about what 1.0 scales to in this case. Is the maximum of the normalised value floating or is it...
  • S
    In answer to question 1): no, pull-up will not help you out. Except maybe just after power on reset while SPI pins (which are also I2C on ST MEMS…) are still floating. As mentioned in earlier post: unless I2C mode is actively disabled after ST...
  • mjs513
    you may want to read through this: Better SPI Bus Design in 3 Steps Are you using the library or did you roll your own? When I used the library and did see any issues. Not sure what you mean by glitches.
  • I
    insolace replied to the thread Midi 2.0.
    A whole host of MIDI 2.0 resources including c++ and arduino focused libraries are now available here: https://midi2.dev/
  • Z
    Update : Sorry for not being active during kast week, I was really busy because of work. Firstly, a HUDGE thanks to mjs513 as now I have a reliable way to interface my lsm6dsox. Secondly, I tried the program and got mixed results : it works well...
  • KurtE
    KurtE replied to the thread SPI with 2 or 4 data lines?.
    Looking at my excel document I see: So it looks like those 16 pins are all on the upper part of GPIO1 (In default mode) Or GPIO6 in Fast mode. And startup.c changes all of the pins to High speed mode. You can probably read all of them in...
    • 1702241485546.png
  • M
    mkoch replied to the thread SPI with 2 or 4 data lines?.
    > Agreed, parallel mode is (probably) simpler. On Teensy 4.1 you can read all 16 bits with a single GPIO register if you connect the data pins to all the "AD_B1_xx" GPIO pins. What's the name of the register that must be read? Thanks, Michael
  • PaulStoffregen
    PaulStoffregen replied to the thread How to reset Teensy++ 1.0.
    Turn off Auto mode in the small Teensy Loader window, and keep it visible while you try this test. Physically unplug the USB cable, and then hold the pushbutton while you plug it back in. While watching the Teensy Loader window, release the...
  • J
    John W. replied to the thread How to reset Teensy++ 1.0.
    Yes.
  • J
    I don't believe internal exceptions like SVC or PendSV need it because they don't go through the NVIC. But for externally triggered exceptions that require writes to memory-mapped registers to clear their interrupt triggers, especially if those...
  • J
    For anyone who finds this later: I can confirm Teensyduino 1.18 works with original Teensy++ and requires Arduino v. 1.0.5 available here: https://www.arduino.cc/en/Main/OldSoftwareReleases Are you using TeensyDuino 1.18 and Arduino 1.0.5 per...
  • B
    Thank you for your suggestion Chris. I tried adding the suggested change, as follows. // slew rate CORE_PIN11_CONFIG |= PORT_PCR_SRE; CORE_PIN12_CONFIG |= PORT_PCR_SRE; CORE_PIN14_CONFIG |= PORT_PCR_SRE; CORE_PIN15_CONFIG |=...
  • S
    I proposed this a while back (for other internal handlers too) but Frank B had pointed out that we shouldn’t do this always. I still don’t always know when it’s appropriate. My current mental model is that when the interrupt register is handled...
  • J
    Hi, I have found an old Teensy++ 1.0 and don't want to throw it away. I found this Thread with old Software to make it work again: https://forum.pjrc.com/index.php?threads/teensyduino-support-for-teensy-1-0.60870/ But all code examples do not...
  • G
    And also, we need anti aliasing. I also learning about distortion. No good result so far.
  • snowsh
    snowsh replied to the thread The strangest thing….
    yeah, i think that is probably right.
  • D
    I use this library: Timezone
  • BriComp
    ...but __DATE__ and __TIME__ are NOT lost, they are baked into the code.
  • defragster
    IIRC:: Teensy 3.x before 4.x put the time in the hex when building and that would be used to set on starting if 'not set' - even days later. For T_4.x the better usable solution was to have the Loader Teensy.exe pass the time during programming...
  • nodemand
    Thank you sooo much! That did it!!!
  • J
    Update to a more recent version of Teensyduino, e.g. https://forum.pjrc.com/index.php?threads/teensyduino-1-59-beta-4.73995/ The errors are caused by wiring.h declaring abs() as a macro, conflicting with the standard library definition.
  • nodemand
    Hi, I'm trying to include a library that was not specifically written for Arduino/Teensy in a project. It compiles perfectly on a Raspberry Pi 5 with gcc/g++, but can not get it to compile for Teensy 4.0. To me, the weird thing is that I'm...
  • G
    Thanks! Let me know if you have any problems / questions with anything. Your xr-1 groovebox looks amazing and am enjoying the jams you've posted! I'll be following your progress. On a related note, I've been screwing around with FM as too. The...
  • J
    There is startup code that detects if the RTC is uninitialized and sets the current time to Jan 1, 2019: https://github.com/PaulStoffregen/cores/blob/master/teensy4/startup.c#L171 This sets the "initialized" flag so you can't tell if the clock...
  • J
    Can you add a "dsb" to the end of the GPIO interrupt handler too? It really should have one...
  • J
    jmarsh replied to the thread The strangest thing….
    Where did you get the second Teensy from? Sounds like it has been pre-programmed to act as a USB Keyboard.
  • C
    I backed up 'usb_desc.c.' and 'usb_names.h' and copied the contents of the attached files above to each respective file. This resulted in multiple errors. A way to fix would be awesome.
  • C
    Are these changes compatible with Teensy 4.1? I'm new to the Teensy world and would rather not make assumptions that could lead to weird bugs down the road.
  • Davidelvig
    I'll review my code. Thanks for this guidance, @BriComp !
  • V
    calbertoferreira: Yes, I confirm that you have the correct pins. In addition to these pins, as you said in your earlier post, you will also need to connect GROUND & the 3.3VDC pins. The T4.x has multiple GROUND pins, but the Audio Adapter...
  • defragster
    EEPROM write versus SDHC is an odd comparison? As noted the EEPROM writes are done with the focus on minimizing wear with overhead in each byte written to do that and then when needed and on the fly block format will happen to restart the data...
  • C
    That is correct, you have only adjusted the first instance in which it is checking the input buttonRecord to see when the handset is lifted. There are many other IF statements used to see when the handset is replaced. You will need to adjust...
  • M
    Well for any digital input really, though its especially advantageous to stop interrupt storms for floating inputs.
  • K
    Hello, is there a way of getting a "heads up" flag or similar when a teensy 4 firmware update is going to happen? I have some DC motors connected to my Teensy 4 and whenever i engage in a firmware update they go full blast while the update is...
  • snowsh
    snowsh replied to the thread The strangest thing….
    Close serial monitor and it starts writing to the sketch again, with the hello world text prefixing the counter.
  • snowsh
    snowsh replied to the thread The strangest thing….
    Finally got a port in arduino and serial monitor to open. Now I see the numbers and it’s no longer writing to the sketch.
  • snowsh
    snowsh replied to the thread The strangest thing….
    Ah well it gets even weirder. The teensy is outputting this hello world message with the counter. Must be the blink sketch? But it’s writing code directly into arduino sketch file at the cursor position.
  • snowsh
    snowsh replied to the thread The strangest thing….
    Odd . Every time I plug this other teensy in I get this hello world text appears in the ide in my code at the cursor position. The integer increases each time. Still can’t see it as a port, but teensyduino responds to a button press on tge 4.1. I...
  • snowsh
    So I’m compiling and uploaded to my t4.1. Everything goes weird. The teensy does not boot. I can no longer see it as a port in arduino. I check the pc, leads to a restart. Get a blue screen. Finally manage to get the pc back up. Open up arduino...
  • E
    Thanks for your detailed answer. However, I am confused about calculating W25Q64JV speed as MB/S.
  • SmashedTransistors
    First things first: are you using pinMode() to set all your ADC pins to INPUT_DISABLE (to disable the digital input schmitt trigger) ?
  • BriComp
    When first programmed the Teensy will automatically have the Compile/Date time. If you wish to get that date/time on subsequent powering of the Teensy you can use the code below: Serial.print("Compile: Date "); Serial.print(__DATE__)...
  • E
    Hi! I've seen in other posts that it's possible to use the USB_MIDI_AUDIO_SERIAL flag to use teensy as a USB soundcard and write to the Serial console. Is it also possible to communicate using OSC on the same USB port? I've tried but I couldn't...
  • W
    For my project I want to measure the phase between two input signals. The input signals have a sinusoidal shape and the exact same frequency. The frequency can be in the range from 100 Hz to 10 kHz. The AudioAnalyzePhase_F32 object from the...
  • KurtE
    Sorry I don't know the CYD... Mine are mostly RED... In some places in the code, I have simply winged it. That is I setup a sketch that echos the raw touch points and figure out MIN/MAX values. Like in one sketch I have: #define TS_MINX 337...
Back
Top