Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
SPI frequenzy
Hi, I´m testing the Nucleo to work with the Adafruit TFT Touch Display with SPI Interface. I have found several helpfull librarys and I have got output to the screen. But I can not raise the SPI frequenzy above 4MHz. When I initalisize the SPI interface with 5 or 10MHz I got a SPI frequenzy of 30KHz. Did anyone have a solution? Is there a bug in the mbed lib? Thanks in advance.
Question relating to:
2 Answers
10 years, 8 months ago.
You have to increase the working frequency of the board to use a faster SPI clock. The boards are running at 16MHz out of the box.
You can multilpy this with the internal pll. See https://mbed.org/users/dreschpe/code/ST_L152_32MHZ/ to have a starting point. You have to change this code to fit for the F103.
10 years, 8 months ago.
Thank you Martin and Peter. Yesterday I took a look on the F401 code from Peter but the Cube is no help for the F103. But I forgot that you wrote a patch for the 152 also. Many thanks and also for the TFT.lib I have to make litle changes for my Adafruit SPI TFT but the roots are from your code. Regards Jörg
Hello Jorg Rohde,
it's a known limitation by current nucleo implementation, here some information : http://mbed.org/forum/bugs-suggestions/topic/4752/
Regards,
posted by Martin Kojtal 16 Mar 20140xc0170