Mohammad NabidoustFatemeh Nabidoust
Published

STM32G474 Development Kit

The STM32G474 Development Kit is a hardware platform designed by STMicroelectronics or any other company for evaluating and proto-typing app

ExpertProtip220
STM32G474 Development Kit

Things used in this project

Software apps and online services

STM32CUBEPROG
STMicroelectronics STM32CUBEPROG

Hand tools and fabrication machines

Soldering Station Power Supply, For Weller WX Soldering System
Soldering Station Power Supply, For Weller WX Soldering System

Story

Read more

Custom parts and enclosures

STM32G474 Development Kit

Schematics

STM32G474 Development Kit

The STM32G474 Development Kit is a hardware platform designed by STMicroelectronics or any other company for evaluating and proto-typing applications using the STM32G474 microcontroller family. These kits provide an easy way to develop, debug, and test embedded systems leveraging the advanced features of the STM32G4 series, such as high-resolution timers, math accelerators, and precision analog peripherals.

STM32G474 Development Kit

Code

STM32G474 Development Kit

C/C++
Test PWM Generation
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */

/* USER CODE END PTD */

/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */

/* USER CODE END PD */

/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */

/* USER CODE END PM */

/* Private variables ---------------------------------------------------------*/
TIM_HandleTypeDef htim1;

/* USER CODE BEGIN PV */

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_TIM1_Init(void);
/* USER CODE BEGIN PFP */

/* USER CODE END PFP */

/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */

/* USER CODE END 0 */

/**
  * @brief  The application entry point.
  * @retval int
  */
int main(void)
{

  /* USER CODE BEGIN 1 */

  /* USER CODE END 1 */

  /* MCU Configuration--------------------------------------------------------*/

  /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  HAL_Init();

  /* USER CODE BEGIN Init */

  /* USER CODE END Init */

  /* Configure the system clock */
  SystemClock_Config();

  /* USER CODE BEGIN SysInit */

  /* USER CODE END SysInit */

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_TIM1_Init();
  /* USER CODE BEGIN 2 */

  /* USER CODE END 2 */

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  HAL_TIM_Base_Start(&htim1);
  HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1);
  while (1)
  {
    /* USER CODE END WHILE */

    /* USER CODE BEGIN 3 */

  }
  /* USER CODE END 3 */
}

Credits

Mohammad Nabidoust
2 projects • 2 followers
STM32xx projects Design, Circuit PCB Design, Medical, Industrial, Power supply
Contact
Fatemeh Nabidoust
6 projects • 6 followers
•Founder & CEO : PishgamanIEA Co,LTD •(Electronic, Computer Science, Aerospace) Engineer •Senior Programmer
Contact

Comments

Please log in or sign up to comment.