Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Teensy 3.6 SPI Slave

  1. #1
    Junior Member
    Join Date
    Jul 2020
    Posts
    2

    Teensy 3.6 SPI Slave

    Hi, I'm new to using Teensy boards and I'm having issues with using Teensy 3.6 as an SPI slave.

    I'm using an STM32 as Master and have checked SPI output with a logic analyser to make sure I'm sending the correct data (it's a simple string) and it's working fine.

    The problem I have is that although data is being output on the serial monitor for the Teensy board, it only outputs 255.

    I'm using the TSPISlave library found here:
    https://github.com/tonton81/TSPISlave

    I have checked the wiring (MOSI, SCK and CS (I'm not using MISO)) and they're all correct and I have a common ground for the two boards.

    For me, it looks like the serial monitor is just displaying the clock.

    Any help would really be apprciated.
    Last edited by BenjC; 07-31-2020 at 03:30 PM.

  2. #2
    Junior Member
    Join Date
    Jul 2020
    Posts
    2
    Figured it out, the MISO line needed to be connected on GPIO of both boards even though it's not in use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •