cancel
Showing results for 
Search instead for 
Did you mean: 

B-L072Z-LRWAN1 LoRa Board.Is PB12 available as SPI chip select?

Diego Colombo
Associate III
Posted on July 16, 2017 at 13:08

Hi to all

At first let me say that i'm a newbie ,an old newbie.

I'm trying to add a SPI display to LoRa board based on

STM32L072CZ

I have used STM32CubeMx to select the pins,clock and so on,the programming enviroment is the AC6 Workbench,

i was encouraged to use the Hal libraries,and so i did.

Once the simple project was generated i added in the code a call to a simple blocking SPI function(despite i set SPI interrupt handler in Cube MX)

while (1)
 {
 Delay(10);
 HAL_SPI_Transmit(& hspi2, my_pdata, 4, 10);
 /* USER CODE END WHILE */
 /* USER CODE BEGIN 3 */
 }
 /* USER CODE END 3 */
}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

I can see the data and the clock,but the SPI_NSS pin PB12 stays low.

On the schematic it looks that it has to do with T_SWD IO_IN.

Does this mean that PB12 is not available?

If i check in the I/O register window ,PB12 results assigned to MODE2,as the other SPI2 pins are.

What can i do or check to understand the reason of this inactivity?

Thanks

#b-l072z-lrwan1-spi-pb12-stm32l072cz* #b-l072z-lrwan1-spi-pb12*
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on July 16, 2017 at 16:03

>>

On the schematic it looks that it has to do with T_SWD IO_IN

You're looking at the wrong chip, you shouldn't be interested in the PB12 of the F103 part implementing the ST-LINK function.

PB12 of the Murata module is wired to the shield header, position D9. This doesn't seem to be routed via a solder bridge (SB), but you'd want to check SB for other pins you use.

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

View solution in original post

4 REPLIES 4
STOne-32
ST Employee
Posted on July 16, 2017 at 15:57

Dear Diego,

Have a look at similar discussion :

https://community.st.com/0D50X00009XkYEnSAN

,

and check all of your SPI NSS settingseither software or Hardware.

Cheers,

STOne-

Posted on July 16, 2017 at 16:03

>>

On the schematic it looks that it has to do with T_SWD IO_IN

You're looking at the wrong chip, you shouldn't be interested in the PB12 of the F103 part implementing the ST-LINK function.

PB12 of the Murata module is wired to the shield header, position D9. This doesn't seem to be routed via a solder bridge (SB), but you'd want to check SB for other pins you use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 16, 2017 at 16:08

 ,

 ,

Pin list here

https://community.st.com/community/stm32-community/blog/2017/04/05/lora-discovery-kit ♯ comment-2338

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on September 19, 2017 at 18:18

Thanks to you all for help

some settings in my ST community account were wrong and i got no messages in email ,warning me that some answers are present.

Apologies for being so late to check your hints

Diego