SPI initialization not working
Posted: Wed Aug 29, 2018 4:24 pm
I am using a PyBoard 1.1, with the latest 1.9.4 firmware:
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
I try to create an SPI object, but it does not seem to take my initialization.
Here is from REPL:
>>> spi=SPI(1, SPI.MASTER, baudrate=600000, polarity=1, phase=0, bits=16, firstbit=SPI.MSB)
>>> spi
SPI(1, SPI.MASTER, baudrate=328125, prescaler=256, polarity=1, phase=0, bits=16)
>>>
The baudrate is wrong, and there appears to be no firstbit attribute.
Checking on a scope, the baudrate is indeed around 330kHz.
What am I doing wrong?
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
I try to create an SPI object, but it does not seem to take my initialization.
Here is from REPL:
>>> spi=SPI(1, SPI.MASTER, baudrate=600000, polarity=1, phase=0, bits=16, firstbit=SPI.MSB)
>>> spi
SPI(1, SPI.MASTER, baudrate=328125, prescaler=256, polarity=1, phase=0, bits=16)
>>>
The baudrate is wrong, and there appears to be no firstbit attribute.
Checking on a scope, the baudrate is indeed around 330kHz.
What am I doing wrong?