Search results

  1. J

    Access to more GPIOs on Teensy4.1

    OK so this is an update on extending the GPIO on Teensy4.1 up to 106 GPIO on a custom board. The files have been triple checked and verified. They need to be copied to the right places for Arduino IDE and/or Visual Studio Code. Attached is some script to help you target the correct locations...
  2. J

    No SPI on Teensy4.1

    Msg#19 is the update and I am still connecting up devices one by one. I still have not had any lock ups. So I suspect that there is an error on the custom board somewhere. Or there is ringing on the SPI that could be causing it. Please can we put this on hold and I will report my findings...
  3. J

    No SPI on Teensy4.1

    To update you. I have taken a original Teensy4.1 with ethernet, and a DAC8775 EVM board. Connected them up and SPI_MODE1 does NOT hang the code. And also the comms is perfect and the method written to do a comms check with the DAC8775 comes back GOOD. So that means that firmware and the SPI...
  4. J

    No SPI on Teensy4.1

    Hi Paul The code for the project is quite large and too complex to be sending on this forum. However, just a simple SPI sketch does the same thing. // include the SPI library: #include <SPI.h> // set pin 10 as the slave select for the SPI device const int slaveSelectPin = 10; void setup() {...
  5. J

    No SPI on Teensy4.1

    OK. So the whole reason for getting the logic analyser out in the first place was because SPI_MODE1 locks the firmware. I had a few devices on the SPI bus and I have debugged them all individually and they are all working a absolute treat (thanks for all your help), devices include ADG1414...
  6. J

    No SPI on Teensy4.1

    For info FlexIO sketch below. Question is, is there any advantage to using FlexIO over using SPI? #include <Arduino.h> #include <SPI.h> #include <FlexIO_t4.h> #include <FlexIOSPI.h> #define PIN_MOSI 11 #define PIN_MISO 12 #define PIN_SCK 13 #define PIN_CS 10 FlexIOSPI flexSPI(PIN_MOSI...
  7. J

    No SPI on Teensy4.1

    Thanks for all your support it is really appriciated. Knowing that I was on the right track helped me to diagnose this down to a corruption possible of files after a MACOS update and also settings on the Logic Analyser. I now have it all running as smooth as silk! Also managed to get the...
  8. J

    No SPI on Teensy4.1

    I have tried a whole lot of sample rates on the Saleae and in the SPI.beginTransaction(SPISettings(100000, MSBFIRST, SPI_MODE0)); It is not a case of it not quite working, there is just no SCK at all. I have even written a direct LPSPI sketch, but I get the same issue; no clock. I have rolled...
  9. J

    No SPI on Teensy4.1

    I have done this on a Teensy4.0 too and it works and use what ever CS pin you want. I did all my development for the custom board on a Teensy4.0 and it was working an absolute treat. I have now tried to run SPI MOSI (Pin11) - White trace MISO (Pin12) - Brown trace SCK (Pin13) - Red trace CS...
  10. J

    No SPI on Teensy4.1

    There are a few posts on this subject but none that specific address the issue. So I have a custom built PCB based on the Teensy4.1 with ethernet; schematic is exactly the same to the letter. Chip fires up nicely and it connects to the ethernet and the internet. Other functions I2C work nicely...
  11. J

    TPD3S014 needed

    No it will never be the host for anything. So that means it is NOT needed. And from this, it means I can reassign EMC_40?
  12. J

    TPD3S014 needed

    From the schematic https://www.pjrc.com/teensy/schematic.html for 4.1 I am creating a board that is simply powered using VUSB at 5v and have used the power sequence to ensure that the processor boots correctly. The question is do I need the TPD3S014 at all, it is not even on the Teensy 4.0? If...
  13. J

    Access to more GPIOs on Teensy4.1

    To be fair, I did say that I have not built this board yet. However, I did compile the code and didn't see anything like that. I will ensure that it is pointing to the correct files and try again. Did you get anywhere with this in the meantime?
  14. J

    Access to more GPIOs on Teensy4.1

    SD_B1_05 is the only pin to avoid as per Paul's comments above. I just picked the pads that where next on the list. To be honest I should have perhaps picked them based on the registry so only need to read in from a minimum number of registries to get all pin states that I am interested in...
  15. J

    Access to more GPIOs on Teensy4.1

    Hi All So I have done a lot of work to extended the pins available to 107 (0-106) Attached is a xls that shows the 196 Pads for the MIMXRT1062DVJ6 and the references and descriptions of each pin. Also attached are the files that need to be replaced in the Arduino reference library for the...
  16. J

    Access to more GPIOs on Teensy4.1

    I have searched the forum, but I can't seem to find an xls that lists out the pin mapping for the MIMXRT1062DVJ6 I have found a detailed pinout by KurtE. However, I need an extra column that maps the actual pin on the chip to the Native, including those that are not being used. Is this available...
  17. J

    Access to more GPIOs on Teensy4.1

    Paul Thanks for your help it is much appreciated, and helps tremendously. For the prototype I can use less pins to make it easier to access pins that are easier to get to. As for using mux or extenders, for my application this would not be fast enough as I am using the 600MHz and the 3-5 clock...
  18. J

    Access to more GPIOs on Teensy4.1

    Looking at a project that needs 100 dedicated GPIOs to monitor state changes. They would be set as pull-up interrupts, and then a few other GPIOs for control/comms with a host Teensy (code already written and working). MIMXRT1062DVJ6 datasheet says that the chip has 127 GPIOs (124...
  19. J

    Teensy 4.0 SPI Clock Speed

    SPI Clock Speeds OK, like all digital problems there seems to analog gremlin. Thanks to some of the replies, and one asking for logic anlayser outputs, it seems I can not reproduce the issue. Using the code SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE1)); without any follow on...
  20. J

    Teensy 4.0 SPI Clock Speed

    I am working with the Teensy4.0 and compiling in both Arduino IDE and using Visual Studio with Visual Micro plugin (shame the debug does not work!!!) Arduino 1.8.13 and TeensyDuino 1.53 Anyway using SPIClass to communicate on SPI channel0 to a DAC8775 development board. The SPI links are very...
  21. J

    Programming Teensy 4.0 in a Windows10 VirtualBox machine

    Revised process for programming Teensy via VirtualBox Windows Machine OK scrub that. The timings in the usb.c seems to be a red-herring! I have done further testing and have found the following. The Arduino IDE or Visual Studio via Visual Micro sends the HEX to the Teensy Loader after it has...
  22. J

    Programming Teensy 4.0 in a Windows10 VirtualBox machine

    Programming Teensy via a VirtualBox Windows machine Paul, thanks for the reply. I have amended that line to read usb_reboot_timer = 500; Plus ensure that the Teensy is connected through the VM Then when press Compile/Upload watch for the upload prompt and then review the VM USB inputs and...
  23. J

    Programming Teensy 4.0 in a Windows10 VirtualBox machine

    I am working on a Mac using VirtualBox. The VM is running Arduino IDE 1.8.13 and TeensyDuuino 1.53 Plugging in the Teensy into the USBC on the MAC it does show in the VM and is accessible. However, when you go to programme it, it times out. But now the Van Ooijen Technische Informatica Teensy...
  24. J

    Teensy 4.0 External Power

    I am using Blink, as this is not a code issue but a hardware one. When the Vin is powered by VUSB (ie PAD connected) the Teensy works 100% and shows in the IDE monitor. Cut the pads and connect the positive feed via Vin, and not VUSB, and the Gnd from the external power is connected to board...
  25. J

    Teensy 4.0 External Power

    I am having issues power the Teensy 4.0 from an external source to the USB ie VUSB. I have cut the pads to separate Vin from VUSB. I have then applied 5v to Vin and I get nothing from the Teensy. Probe the 3.3v pin and there is 3.3v there. If I remove 5v from Vin, and then apply 3.3v to the 3.3v...
Back
Top