Discussion:
[Arm-netbook] SPI stress!
Luke Kenneth Casson Leighton
2015-10-19 14:34:43 UTC
Permalink
RRRRRR :)

i'm attempting to get the yunlea spi lcd with an hx8357 up and
running. i'm resorting to bit-banging the spi at the moment because
it needs 9-bit initial "control" signal followed by 8-bit
"parameters"....

but once again just like with the I2C i have "unknown hardware"
combined with "unknown software". sooo.... i think what i will do is
try a loop-back SPI software test. connect SPI1 to SPI2 on the
STM32F072, and put SPI2 into slave mode and SPI1 into master.... then
see if i can get them to talk to each other.

*sigh*... :)

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-n
joem
2015-10-20 13:32:57 UTC
Permalink
Post by Luke Kenneth Casson Leighton
RRRRRR :)
i'm attempting to get the yunlea spi lcd with an hx8357 up
Sample code https://github.com/adafruit/Adafruit_HX8357_Library

Try with Arduino first maybe?

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-***@files
Luke Kenneth Casson Leighton
2015-10-20 19:16:39 UTC
Permalink
Post by joem
Post by Luke Kenneth Casson Leighton
RRRRRR :)
i'm attempting to get the yunlea spi lcd with an hx8357 up
Sample code https://github.com/adafruit/Adafruit_HX8357_Library
Try with Arduino first maybe?
i decided to do a back-to-back SPI1 to SPI2 connection, to get
familiar with SPI on the STM32F. that *alone* is proving tricky. and
that's with just "simple wires" on a loopback arrangement.

the advantage of the loopback arrangement (and having a digital 72mhz
scope) is i can see both ends of the conversation.

once i've got that, then i'll introduce the hardware. linux kernel
has hx8357.c which is simpler (and GPL'd).

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-***@file
Luke Kenneth Casson Leighton
2015-10-20 20:02:01 UTC
Permalink
okaay, so i have very unreliable SPI1->SPI2 data transmission, NSS
appears to be permanently held low which probably isn't helping. i'll
try setting up manual NSS selection from master, see how that goes.

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm

Loading...