Skip to main content
Visitor II
September 22, 2024
Question

STM32F030CC IWDG and SPI1 doesn't work properly.

  • September 22, 2024
  • 1 reply
  • 549 views

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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 24, 2024

    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.