This is a very simple code I'm using to send some data to the card connected , that tested with an Arduino works :
Code: Select all
import pyb
from pyb import LED
from pyb import SPI
spi=SPI.init(1,SPI.MASTER, baudrate=600000, polarity=0, phase=0, bits=8, firstbit=SPI.MSB)
led = LED(1)
while True:
spi.send(68)
print('Done')
led.toggle()
pyb.delay(1000)
Using a logic analyzer in the picture is what exit from the SPI :
On REPL I don't see any error and any print out as expected and led is not flashing.
I'm using the SPI 1 on X pins (5,6,7,8) but the same happen if I try with SPI2 on Y pins
Firmware version : MicroPython v1.9.2-123-gbdc6e86e on 2017-09-29; PYBv1.0 with STM32F405RG
What could be wrong ?
The code or the PyBoard damaged ?
Thanks for any help .
Roberto