cancel
Showing results for 
Search instead for 
Did you mean: 

Programming STM32 through SPI using stm32cubeprogrammer software (STM32L031K6)

stf2lrn
Associate II

Hi,

I am trying to program stm32 through SPI. I am trying to use C232HM USB 2.0 HI-SPEED TO MPSSE CABLE (C232HM-DDHSL-0 - FTDI (ftdichip.com)). I have connected the microcontroller through SPI1. The SPI connections is as follows with the FTDI cable:

SCK: Pin 11

MISO: Pin 12

MOSI: Pin 13

CS: 10

When I run the STM32CubeProgrammer software and try to detect it in the software, the software does not detect it. I am not sure if the steps that I am following is correct. I selected USB as an interface in the software if that matters (since I am using USB to SPI converter).

Any suggestions?

3 REPLIES 3
TDK
Guru

Related/duplicate:

https://community.st.com/s/feed/0D53W000019cdtESAQ

STM32CubeProgrammer doesn't have an SPI interface. "USB" is USB DFU mode.

Actually looks like I'm wrong here, sort of, per the user manual. But I don't see a way to select it. Seems like it's only available using a ST-Link as the USB->SPI bridge.

https://www.st.com/resource/en/user_manual/dm00403500-stm32cubeprogrammer-software-description-stmicroelectronics.pdf

If you feel a post has answered your question, please click "Accept as Solution".

Yes, that uses the ST-LINK/V3 as a known entity.

Realistically if you're using different different SPI interface boards on the PC side, and specialized requirements at the target, you're almost certainly going to have to own the PC side software, and perhaps drivers/ioctl interfacing to implement the programming.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Houda GHABRI
ST Employee

Hi @Community member​ ,

As mentioned by Tesla only ST-LINK/V3 is supported, STM32CubeProgrammer will not detect others bridges .

Hope this helps you.

Houda