cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030CC IWDG and SPI1 doesn't work properly.

kpkang
Associate

Hi Expert,

Now, I am testing IWDG and SPI based on STM32F030CC chipset but I met some difficulty. 

At first, I used STM32F030R8-Nucleo example which was based on STM32F030x8 so I changed it to STM32F030xC. 

I changed GPIO/SPI interface for my test board. 

In the case of IWDG, I set LSI and the relevant registers, but reset is not executed after hard fault. I checked that NVIC_SystemReset() API works properly. 

 

Regarding SPI, I checked that GPIO works properly.. to test IO port, first set GPIO mode of SPI interface and checked HIGH and LOW states as GPIO... then set SPI mode but CLK was not generated. 

I leveraged the example code but strangely it doesn't work as expected. 

I attached two examples like below. Please help me make it work properly. 

Examples\IWDG\IWDG_Reset

Examples\SPI\SPI_FullDuplex_ComPolling

1 REPLY 1
Saket_Om
ST Employee

Hello @kpkang 

It is better to start a new project with STM32CubeMX, select your MCU, and configure it as shown in the example. After generating the code, you can use the example as inspiration for your application.

If your question is answered, please close this topic by clicking "Accept as Solution".

Thanks
Omar