This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Porting a IAR Project to Keil (stm32 + freertos)

Hi,

so I uploaded a Project from STMicroelectronics. It is the IAR Project of the iNEMO Sensor Eval-Board from STmicro.

sourceforge.net/.../download

I failed a plenty times to converting it to KEIL.
(missing header files - but I surely added every folder into the includes in the settings and some points more)

If there is somebody who could help me it would be perfect.

In the uploaded file there is also my Keil Project in the EWARM-Project folder.

I have to setup a ROM offset (rom is starting at 0x8003000, because there is a ST DFU bootloader for firmware upgrade applications) in IAR the offset was done by a .icf file.

- i copied the startup file from the KEIL directory and replaced it with the IAR one.
(backup also in folder)

anyway take a look into the zip archive please.

It works perfectly in IAR.

- why am I need the project in keil? Because we want to switch from the lite version of IAR to the Keil prof. and we want to debug some code with the keil compiler.

I have a ST-Link and a KEIL uLINK2 and a ULINK PRO debugger.

Please help.

I found a application note for this topic but its seems not to be for free :(
url: www.cmc.ca/.../CMC-00200-01917.aspx

with regards
Sam

Parents
  • Look again!

    "i think the problem is the ICF file which contains the offset and stack informations.
    I can't get it run it with Keil."

    Presumably, because ICF files are entirely an IAR thing?

    But what would that have to do with headers?

    You said you have IAR, so you need to study its documentation, and use whatever features the IDE may have, to understand what this "ICF file" is doing.

    Then you need to study the Keil documentation to determine how to achieve the same things with the facilities that Keil provides.

    From what you say, that will need you to study the Linker Manual and look at Scatter files...

    You might also look at the Configuration Wizard.
    http://www.keil.com/support/man/docs/uv4/uv4_ut_configwizard.htm

    As the responder in your cross-post says, are you able to set-up a Keil Project for an STM32 from scratch - or from one of the DevKit or Discovery Board examples?
    That would seem like a sesible first step...

    Similarly, have you looked on the FreeRTOS site for Keil examples?

Reply
  • Look again!

    "i think the problem is the ICF file which contains the offset and stack informations.
    I can't get it run it with Keil."

    Presumably, because ICF files are entirely an IAR thing?

    But what would that have to do with headers?

    You said you have IAR, so you need to study its documentation, and use whatever features the IDE may have, to understand what this "ICF file" is doing.

    Then you need to study the Keil documentation to determine how to achieve the same things with the facilities that Keil provides.

    From what you say, that will need you to study the Linker Manual and look at Scatter files...

    You might also look at the Configuration Wizard.
    http://www.keil.com/support/man/docs/uv4/uv4_ut_configwizard.htm

    As the responder in your cross-post says, are you able to set-up a Keil Project for an STM32 from scratch - or from one of the DevKit or Discovery Board examples?
    That would seem like a sesible first step...

    Similarly, have you looked on the FreeRTOS site for Keil examples?

Children
No data