Connection via SPI interface
According to UM2237, the Connect command in the CLI (command line interface) supports SPI, but what is the device used to connect the Nucleo board to the PC? How does the device look like from the PC side (device manager)?
---> start (added to question on 10/09/2021)
I purchased the STLINK-V3SET and tried it with the STM32CubeProgrammer, but I cannot establish a connection with the device via SPI.
The board I am using is NUCLEO-L4R5ZI, and the following are the pins that are connected to it:
(1) STLINK, CN5, Pin#1(SPI_NSS) to NUCLEO, CN12, Pin#16(PB12, NSS)
(2) STLINK, CN5, Pin#3(SPI_MOSI) to NUCLEO, CN12, Pin#26(PB15, MOSI)
(3) STLINK, CN5, Pin#5(SPI_MISO) to NUCLEO, CN12, Pin#28(PB14, MISO)
(4) STLINK, CN5, Pin#7(SPI_SCK) to NUCLEO, CN12, Pin#30(PB13, SCK)
(5) NUCLEO, CN11, Pin#5(VDD) to NUCLEO CN11, Pin#7(PH3-BOOT0)
I operated as follows:
(a) Press RESET button on NUCLEO to start STM32 Bootloader
(b) Select SPI as Port in STM32CubeProgrammer and press Connect button
(c) Failed to establish connection
The following is the log obtained by STM32CubeProgrammer:
15:59:17:352 : STLinkUSBDriver.dll loaded
15:59:17:358 : ST-LINK FW : V3J8M1
15:59:17:359 : Voltage : 0.00V
15:59:17:359 : Bridge freq : 48000 KHz
15:59:17:359 : SPI connection parameters
15:59:17:360 : Baudrate : 24000 KHz
15:59:17:360 : mode : MASTER
15:59:17:360 : direction : 2LINES_FULLDUPLEX
15:59:17:360 : dataSize : 8B
15:59:17:360 : Format : MOTOROLA
15:59:17:361 : nsspulse : NO_PULSE
15:59:17:361 : nss : SOFT
15:59:17:361 : delay : FEW_MICROSEC
15:59:17:361 : cpha : 1EDGE
15:59:17:361 : cpol : LOW
15:59:17:362 : firstbit : MSB
15:59:17:362 : crc : DISABLE
15:59:23:924 : Timeout error!
15:59:23:924 : Error: ST-LINK error (BRG_TARGET_CMD_TIMEOUT)
15:59:23:924 : Error: Establishing connection with the device failed
I have tried changing the baud rate and other parameters, but cannot connect.
Is there any documentation that describes in detail how to connect via SPI using the STM32CubeProgrammer?
<--- end (added to question on 10/09/2021)
