2017-07-16 04:08 AM
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*Solved! Go to Solution.
2017-07-16 07:03 AM
>>
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.
2017-07-16 06:57 AM
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-
2017-07-16 07:03 AM
>>
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.
2017-07-16 09:08 AM
,
,
Pin list here
https://community.st.com/community/stm32-community/blog/2017/04/05/lora-discovery-kit ♯ comment-2338
,2017-09-19 11:18 AM
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 hintsDiego