2014-08-25 12:10 PM
Please
where can I find correct header files for the 20 pin STM32F030F4 devices? Cheers Felix2014-08-25 01:58 PM
Not sure the number of pins impacts the header files.
Bottom of page, red download button.http://www.st.com/web/en/catalog/tools/PF257884
http://www.st.com/web/en/catalog/tools/PF259447
Design Resources?http://www.st.com/st-web-ui/active/en/catalog/mmc/FM141/SC1169/SS1574/LN1826/PF258968
2014-08-26 11:04 AM
Clive1
thanks for the fast answer. I found those already and looked into them. I was woundering because I never saw a define like STM32F030x4. Only defines like STM32F030x6. In your opinion I could go straight forward and: - use the Define STM32F030x6 - copy a F030x6 linker to a F030x4 linker file and change the amount of RAM/ROM Thanks Felix2014-08-26 01:07 PM
Yes, you'd basically want to configure the RAM/ROM to match the device, select the appropriate (or most appropriate) startup_stm32fs, with the vector table, and then the suitable define for the part (STM32F030)
STM32F0xx_StdPeriph_Lib_V1.3.1\Libraries\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h...
#elif defined (STM32F030)
/****** STM32F030 specific Interrupt Numbers *************************************/
WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
RTC_IRQn = 2, /*!< RTC through EXTI Line Interrupt */
FLASH_IRQn = 3, /*!< FLASH Interrupt */
RCC_IRQn = 4, /*!< RCC Interrupt */
EXTI0_1_IRQn = 5, /*!< EXTI Line 0 and 1 Interrupts */
EXTI2_3_IRQn = 6, /*!< EXTI Line 2 and 3 Interrupts */
EXTI4_15_IRQn = 7, /*!< EXTI Line 4 to 15 Interrupts */
DMA1_Channel1_IRQn = 9, /*!< DMA1 Channel 1 Interrupt */
DMA1_Channel2_3_IRQn = 10, /*!< DMA1 Channel 2 and Channel 3 Interrupts */
DMA1_Channel4_5_IRQn = 11, /*!< DMA1 Channel 4 and Channel 5 Interrupts */
ADC1_IRQn = 12, /*!< ADC1 Interrupt */
TIM1_BRK_UP_TRG_COM_IRQn = 13, /*!< TIM1 Break, Update, Trigger and Commutation Interrupts */
TIM1_CC_IRQn = 14, /*!< TIM1 Capture Compare Interrupt */
TIM3_IRQn = 16, /*!< TIM3 Interrupt */
TIM14_IRQn = 19, /*!< TIM14 Interrupt */
TIM15_IRQn = 20, /*!< TIM15 Interrupt */
TIM16_IRQn = 21, /*!< TIM16 Interrupt */
TIM17_IRQn = 22, /*!< TIM17 Interrupt */
I2C1_IRQn = 23, /*!< I2C1 Interrupt */
I2C2_IRQn = 24, /*!< I2C2 Interrupt */
SPI1_IRQn = 25, /*!< SPI1 Interrupt */
SPI2_IRQn = 26, /*!< SPI2 Interrupt */
USART1_IRQn = 27, /*!< USART1 Interrupt */
USART2_IRQn = 28 /*!< USART2 Interrupt */
#elif defined (STM32F072)
WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
...