2008-04-07 08:43 AM
IAR Kickstart Question, STM32
2011-05-17 03:28 AM
I'm not sure if this is the best forum for this, but I have questions on how to compile some of the example code in the IAR Embedded WorkBench.
For example, there's a USART example, (example 7) I'd like to compile and then download to my IAR STM32-SK demo board using the Jlink. The instructions say: In order to make the program work, you must do the following : - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files : + stm32f10x_lib.c + stm32f10x_usart.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c - Link all compiled files and load your image into either RAM or Flash - Run the example Can someone give me a step-by-step as to how to set this up in the IAR GUI? Thanks2011-05-17 03:28 AM
Under um0427\STM32F10xFWLib\FWLib\project there is a pre-configured example for EWARM4.42A. Just copy the content of FWLib\examples\USART\Example7 folder except stm32f10x_conf.h file to \STM32F10xFWLib\FWLib\project and then rebuild your project.
PS: The example is for the STM32-Eval board so you need to update it according to your board.2011-05-17 03:28 AM
Thanks for your help, I got it working.
For others: the um0427 directory he refers to is the ST function library um0427.zip file on the ST web site. thanks again.