Skip to main content
Iwan Attwood
Visitor II
November 6, 2017
Question

SPI2 peripheral on STM32L083RZ

  • November 6, 2017
  • 1 reply
  • 550 views
Posted on November 06, 2017 at 08:30

I have been attempting to use the SPI2 peripheral to drive a flash memory chip using the LL drivers on an STM32L083RZ without success. Microcontroller is the master and flash memory the slave.

The following pins have been configured based on the information in DM00140762

SPI2_SCK  - GPIOB, LL_GPIO_PIN_13, LL_GPIO_AF_0

SPI2_MISO - GPIOC, LL_GPIO_PIN_2,  LL_GPIO_AF_2

SPI2_MOSI - GPIOC, LL_GPIO_PIN_3,  LL_GPIO_AF_2

It is this specific pin configuration I am having problems with, the standard examples for SPI appear to work correctly.

When using the SPI2 peripheral there is apparently no clock generated on Pin 13 of Port B (probed at the MCU pin using an oscilloscope), probing with an oscilloscope does show a sequence of logic level changes on pin 3 of Port C corresponding to the expected data being sent.

Due to time constraints it has been necessary to implement SPI over these pins by bit banging, this is working but loses the ability to use DMA transfers and interrupts. It would be very interested to know if there are limitations in mixing these specific pins with the SPI2 peripheral on the STM32L083RZ

    This topic has been closed for replies.

    1 reply

    ST Technical Moderator
    November 6, 2017
    Posted on November 06, 2017 at 16:53

    Hello,

    Have you checked if you have same condition as described in the related errata sheet.

    Otherwise, please try to provide some details in your post and share your configuration or ioc file,  so that it will be easier to understand the issue.

    Best 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