Porting stm32f105 project to stm32f103 on IAR platform

Publisher:泥匠手Latest update time:2018-08-12 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Since stm32f105 and stm32f103 belong to the same series, there are few changes during porting.

1. Switch chip model


2. Select the startup file through comments in the stm32f10x.h file.


3. Pay attention to setting the debugging tool when performing hardware debugging.


Reference address:Porting stm32f105 project to stm32f103 on IAR platform

Previous article:Causes and solutions for stm32 chip failure
Next article:STM32F105 serial port garbled code problem

Recommended ReadingLatest update time:2024-11-22 02:52

STM32F103V---Firmware library usage---GPIO
I used the STM32F10X firmware library and practiced the simplest port application, which seems to be very convenient.  /******************** GPIO application******************** stm32 library file application---GPIO chip model: STM32F103V pin: LED- GPIOC_Pin_6 Date of writing: March 20, 2012 Author: Zheng Wen Ef
[Microcontroller]
How to use SysTick of STM32F103
Write it down for later use. void SysTick_Configuration(void) {   /* Setup SysTick Timer for 10 msec interrupts */   if (SysTick_Config(SystemCoreClock / 100)) //SysTick configuration function   {      /* Capture error */      while (1);   }    /* Configure the SysTick handler priority */   NVIC_SetPriority(SysTick_IR
[Microcontroller]
STM32 clock module STM32F103RCT6
    Compared with 51, the clock module of STM32 has become more complicated. This is mainly due to the powerful functions of STM. Different modules require different clock frequencies. And higher frequencies will cause more energy waste. The following is my summary of the process of learning STM32.     First of all, w
[Microcontroller]
STM32F103 Independent Watchdog IWDG Use Notes
This article uses STM32CubeMX 1. Activate IWDG independent watchdog at Pinout 2. In Configration, click System- IWDG to set the watchdog parameters. I use 700ms setting as follows, In the generated initialization code, it has been initialized in the Main function MX_IWDG_Init(); Feeding Dogs Reference: HAL_IWDG_
[Microcontroller]
STM32F103 reset and clock control module header file
Before the processor works normally, some initialization work must be done, and the most important one is to initialize various clocks. After analyzing the reset and clock control (RCC) module of STM32F103, I wrote a header file of RCC, which is more convenient to use. The header file first defines the most basic regis
[Microcontroller]
External interrupt learning based on stm32f103zet6
1. About the prototype of the structure EXTI_InitTypeDef in the interrupt : uint32_t EXTI_InitTypeDef::EXTI_Line  { uint32_t EXTI_Line  FunctionalState EXTI_LineCmd  EXTIMode_TypeDef EXTI_Mode  EXTITrigger_TypeDef EXTI_Trigger  } Contains 4 members 1. Specifies the EXTI lines to be enabled or disabled. This parameter
[Microcontroller]
stm32f103 adc acquisition program configuration
This routine is to collect voltage adc value How to choose the channel: Here in the adc initialization function, setting the sampling rate of the channel is just to set the channel to be used, not to select the channel. The real selection of the channel is in the Get_Adc() AD sampling function, ADC1- SQR3|=ch; the con
[Microcontroller]
stm32f103 adc acquisition program configuration
STM32F103 shutdown mode test
environment: Host: WIN7 Development environment: MDK4.72 MCU:STM32F101 source code:   //Define IO initialization structure   GPIO_InitTypeDef GPIO_InitStructure;          //Set the zigbee module to low power mode   inf_zigbee_sleep();          RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIO
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号