cancel
Showing results for 
Search instead for 
Did you mean: 

IAR Kickstart Question, STM32

bruce
Associate II
Posted on April 07, 2008 at 17:43

IAR Kickstart Question, STM32

3 REPLIES 3
bruce
Associate II
Posted on May 17, 2011 at 12:28

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?

Thanks

jilisegiar
Associate II
Posted on May 17, 2011 at 12:28

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.

bruce
Associate II
Posted on May 17, 2011 at 12:28

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.