Search results

  1. G

    Teensy 4.1 crashing when closing SD card file after read.

    h4yn0nnym0u5e , Thank you for the help in spotting this bug. And thank you defragster for taking your time to reproduce the issue. I was focused more on the SD library change as being the problem since this code has always worked in the past. I have somehow dodged a bullet for years with this...
  2. G

    Teensy 4.1 crashing when closing SD card file after read.

    Looks like I would have to give you the file that is on the SD card. When you are running it, it isn't finding a file so it doesn't read data, close, then crash. Attached is the file that is on the DATA folder on sd card. Rename it to "0000001.csv". You should be seeing.. Opening: 0000001.csv...
  3. G

    Teensy 4.1 crashing when closing SD card file after read.

    With those latest two SD libraries, it still crashes.
  4. G

    Teensy 4.1 crashing when closing SD card file after read.

    I am willing to try that but I have a million things going on in this project and I don't want to break anything else. You don't have to read this but here is what i'm dealing with as far as features...
  5. G

    Teensy 4.1 crashing when closing SD card file after read.

    I have reverted the SD library back to the 1.2.2 located here: https://github.com/PaulStoffregen/SD/tree/master I found that at Teensyduino 1.54, Paul changed the SD library to be just a wrapper for SDFat. Changing back to earlier library resolves the crash. Something about the change to SDfat...
  6. G

    Teensy 4.1 crashing when closing SD card file after read.

    I'm going to try and keep this simple. After upgrading from: Arduino 1.8.8, TeensyDuino 1.4.5 to Arduino 1.8.19, Teensyduino 1.56 My SD card code for reading data from files no longer works. It now crashes the T4.1. I have tested on T3.5 and it crashes now as well. This is code that previously...
  7. G

    Teensy 4.1, RA8875 Display. Teensy reboots after entering Loop()

    I have made a little more progress on this. I was still having intermittent issues with SPI comms to the display while running T4.1 at 150Mhz. I have now added 33ohm inline resistors to SCK, MOSI, and MISO. Luckily I had space to cut traces and add in 0603's. I also initialized all unused pins...
  8. G

    Teensy 4.1, RA8875 Display. Teensy reboots after entering Loop()

    I've been taking a closer look at my PCB layout and I have noticed that since I was mostly reusing the layout from the T3.2, did not connect the additional GND pins that are on the T4.1 to my GND plane on PCB. The only GND pin that was connected on the 4.1 was the one across from 5V on the end...
  9. G

    Teensy 4.1, RA8875 Display. Teensy reboots after entering Loop()

    EDIT: Ignore title of post. Solved the rebooting issue immediately after posting. It was a duplicate instance of tft that was being created in setup function.. edited it out of code below. Fine if an admin wants to delete this thread. Here is the real problem: I am working on changing a...
  10. G

    What's the best way to communicate between a Teensy 4.1 and an Arduino Leonardo?

    I would say that Serial is the simplest/easiest approach. I have seen several recommendations for using the EasyTransfer library but have not used it myself. Here is a similar question/answer. https://forum.pjrc.com/threads/70077-How-to-send-from-esp32-to-teensy?highlight=serial+library+communicate
  11. G

    Switching Product from T3.5 to T4.1

    Thank you all for the helpful info. There are more pin changes than I originally anticipated. I hadn't looked into the T4.1 much until deciding that it was about the only way to go based on availability. Its a bummer that pin 14 isn't available for SCK because of course that's what I used to...
  12. G

    Switching Product from T3.5 to T4.1

    I'm starting to work on switching my product from the T3.5 to the T4.1 for obvious reasons. I've shipped almost 350 units with T3.5 but I am down to my last 20(ish) T3.5's on hand. Here are the areas of concern I have with functionality that I'm using with the T3.5. I'm trying to find and...
  13. G

    How does Teensy-Reboot.exe communicate ?

    Here is another reference to the Magic Bytes (feature report)... But sadly, noone ever mentions what it actually is.. Looks like this was from person who wrote tyTools (Koromix)...
  14. G

    How does Teensy-Reboot.exe communicate ?

    I'm thinking that setting the baudrate to 134 only applies if the USB port shows up as a Serial Port. You can't really set a RAW HID usb port's baud rate. I think the code we are looking for would just be monitoring for some magic bytes to be sent to the Teensy. Paul mentioned it up in Post 6...
  15. G

    How does Teensy-Reboot.exe communicate ?

    luni, The TeensySharp library is a huge help. Thank you. The only issue I've ran into so far is that it will only start the HalfKay bootloader for boards that are enumerated as a Serial device. This is an issue for any boards that don't appear as a Serial device. Such as one setup for RAW HID...
  16. G

    RA8875 from Buydisplay

    @KurtE i was about to post an issue over on Github for sumotoy's library and your last issue you posted there lead me here. I am interested if you all have decided if someone else is going to permanently host a fork that is maintained since sumotoy isn't maintaining it anymore. I have used...
  17. G

    T3.5 Locks Up when assigning Long to Float... (Surprised)

    Sorry. Looks like I got more than I bargained for. I was just up half the night trying to hit a deadline and decided to post this while i took a break. My main program is currently 4014 lines of code and has 11 #includes for libraries so it isn't trivial to pair it down to something that can...
  18. G

    T3.5 Locks Up when assigning Long to Float... (Surprised)

    Just a thought for discussion on something that Surprised me. I have an Array of Floats, a Long, and an Int. float graphData[80][2]; long weight = 0; int graphPoint = 0; The code below was locking up the T3.5. Why? graphPoint = 0; graphData[graphPoint][1] = weight; << Locks up here...
  19. G

    Teensy 3.2 INPUT_PULLUP. Problems with Pushbutton

    & Paul, You are a good guesser. I determined the problem was software.. It just wasn't my main program since I knew it hadn't changed. Thank you for the Information. And since everyone is hanging on the edge of their seat waiting to see what the resolution to the problem was, I will explain...
  20. G

    Teensy push button

    When you say that it just "prints a string of numbers"... Do you mean it prints several characters in a row due to button chatter or does it continue sending characters constantly? If it is chatter, take a look at the Bounce2 library and you may want to change library to LOCKOUT method using...
  21. G

    Teensy 3.2 INPUT_PULLUP. Problems with Pushbutton

    Hello All, I am stuck on a seemingly simple problem.. I build a product using the T3.2. I have built and shipped about 120 units that have all worked great. Thanks Paul for the great product. I have now assembled 10 more units that need to ship and most of them are having problems with 2...
  22. G

    Teensy 3.2 using Mahony/Madgwick AHRS. Should it be this Slow...

    Maybe this is a simple question but I cant seem to find an answer. How long should it take for the Heading (Yaw) to converge once it is rotated 90 degrees when using Mahony filter(or Madgwick..). My setup seems to take at least 15 Seconds to converge and stabilize when I rotate the board 90...
  23. G

    Teensy 3.2, Using AGND or GND when using external AREF?

    @WMXZ, Not really a typo but I should have figured that would cause some confusion... The 5V power Supply that I was using at the time this was drawn labeled its output as such. It seems to depend on who you talk to as to how it should be labeled. I would have labeled it 0V or GND but I had...
  24. G

    Teensy 3.2, Using AGND or GND when using external AREF?

    Hi All, I am going with a LM4132 Precision Voltage Reference to supply AREF for a Potentiometer Measurement.http://www.ti.com/lit/ds/symlink/lm4132.pdf My question is whether to tie my 10k Potentiometer into AGND or GND? My concern with using AGND is that the LM4132 Voltage Reference is getting...
  25. G

    Teensy 3.2 Analog Input using LM4040 3V Reference

    I thought this would have been an easy question to answer but maybe I had to much additional info in my post. I have edited it down to be just a simple question to clarify something Paul said in another post. Thanks.
  26. G

    Teensy 3.2 Analog Input using LM4040 3V Reference

    Hi All, I was planning on using an LM4040 or similiar 3V-3.3V Precision Voltage Reference for an Analog Input from a String Pot. http://www.ti.com/lit/ds/symlink/lm4040d82.pdf I ran across this thread where Paul Mentioned *Not* to use the AREF Pin when measuring Pots...
Back
Top