Hello I am using nucleo G031K8 with STM32 cube ide and I am trying to initialize the SPI1 peripheral with registers.Here is my init code and the corresponding wrong registers. The RCC and GPIO registers are fine. Only SPI1 registers are wrongHow can ...
Hi,I am using the serial wire debug SWDIO and SWCLK on PA13 and PA14 to program an stm32g031. Can I use these pin after the debug? If yes, do I have to modify some dedicated register (in addition to the GPIO registers) to use thiese pins as GPIO?
Hi all,I would like to develop some HW and FW to control DC and Stepper motor using stm32G0 or G4 family.The goal is to control low voltage (5 to 12V and <1A) DC and Stepper motor.I have seen that here Motor Control Solution Eval Boards - STMicroelec...
Hello, I am still learning about STM32 and I know that the slashes mean that several ports are bonded to the same pin (e.g. PB7/PB8), but what the square brackets mean in a STM32 pinout? and the dash? thanksBest regards
Hi @Community member and @Piranha Thanks a lot for the useful replies.Having the SSOE bit enabled made SPI working as I expected. I also managed to use the CMSIS defined bit-field names ( the issue was not related to this but I do agree that they m...
Hi @Community member ,I still have the same issue. The delay is produced only if I call TIM14_delay twice. Do you have any other suggestion?Below there is the updated code. void TIM14_init_delay(void){
RCC->APBENR2|=(1<<15);
TIM14->PSC= 16000-1; /...
Sorry @Community member Does not work means that the function does not produce the delay (I can see it because I blink a led). I will try to give you some more detailsForget what I wrote before. My function TIM14_delay_us produces the delay in the l...
Hi @Community member Sorry if I was not complete but I thought that the mistake was in myTIM14 functions.I discovered that they works correctly but only if TIM14_delay_us is put after this function MX_GPIO_Init(); that MX produces automatically (I ...
Hi @Community member and @Community member I am not interested in using the NRST pin as GPIO but only the PA13 and PA14 as GPIOSo your opinions are that I should simply code them as GPIO without any other cautions? Neither on the debug side? What ...