cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F03 STM32CubeMX and SPI ?

asrock70
Associate II
Posted on November 02, 2015 at 16:57

I play with

STM32Cube

and

I'm a little

confused

.

I create project for STM32F103RB

In Pinout select SPI2 Half-Duplex Master and hardware NSS Signal

In SPI configuration is NSS Signal Type as Output Hardware, but in GPIO Setiing is GPIO Mode Input mode.

I'm confused_

0690X00000604suQAA.png
3 REPLIES 3
Nesrine M_O
Lead II
Posted on November 03, 2015 at 17:32

Hi Charles,

Please avoid duplication of posts, Check this [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/STM32F03%20STM32CubeMX%20and%20SPI&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/AllItems.aspx&currentviews=17]thread for the response to your question.

Syrine-
stm32cube-t
Senior III
Posted on November 09, 2015 at 08:49

Dear user,

Thank you for reporting the issue. This will be fixed in a next release.

When enabling NSS by hardware, they are two modes: output enabled (MX configuration window calls it ''output hardware'') and output disabled (MX says ''input hardware'').

The GPIO mode should be aligned: output when output is enabled, input when output is disabled.

For now, you will have to change the GPIO mode settings manually.

Best regards
stm32cube-t
Senior III
Posted on March 22, 2016 at 19:46

Dear user,

This has been solved in 4.13.

Best regards