Skip to main content
sav gas
Associate II
May 13, 2017
Question

SPI and ST7565

  • May 13, 2017
  • 5 replies
  • 1945 views
Posted on May 13, 2017 at 08:58

Hi to all,

I'm new to stm32. I start working with 'NUCLEO-F030R8' and i wish to control a display 128x64 monocromatic via SPI.

To do thisI started using STM32CubeMX to configure GPIO and SPI, but SPI doesn't works.

Someone can help me to correct my mistakes?

Thanks,

Gas

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    May 13, 2017
    Posted on May 13, 2017 at 17:45

    Hi ,

    You may refer to the SPI examples within

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef0.html

     , this help you on your application

    STM32Cube_FW_F0_V1.8.0\Projects\STM32F030R8-Nucleo\Examples\SPI

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    sav gas
    sav gasAuthor
    Associate II
    May 16, 2017
    Posted on May 16, 2017 at 11:11

    Hi Imen,

    thank you for you help. Now it's works. It's remains the question: why the spi clock doesn't works if it's configured with STM32CubeMX?

    Best Regards

    Gas

    Technical Moderator
    May 16, 2017
    Posted on May 16, 2017 at 11:19

    Hi,

    Could you please precise which CubeMX version are you using?

    If you are using an old version, I recommend you to use the latest one : 

    http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

    Thanks

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    sav gas
    sav gasAuthor
    Associate II
    May 16, 2017
    Posted on May 16, 2017 at 13:07

    Hi,

    I'd installed the new version, I'd created a new project, but I don't understand why that it's not creates a file .uvprojx to use with ide keil uvision.

    Thanks,

    Gas

    Technical Moderator
    May 16, 2017
    Posted on May 16, 2017 at 14:07

    Hi,

    When you create a new project, you should update Project Settings and select the Toolchain 'MDK-ARM V5' for  Keil, this will create the project folder and save in there the .ioc file only.

    You will have to click 'generate code' to create MDK-ARM folder with a .

    uvprojx file.

    If your issue is not resolved, you can attach your .ioc file to check with you this case.

    Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    sav gas
    sav gasAuthor
    Associate II
    May 18, 2017
    Posted on May 18, 2017 at 12:19

    Hi Imen,

    now it's works. Thanks for your precious helps.

    Best regards,

    Gas