9 years, 6 months ago.

How to develop for ST Nucleo L152RE with IAR

Hi,

The project I am working on requires me to have strict control of the development environment I'm using, so the mbed online IDE will not work for me. Is there any recommended way for me to set up IAR for ARM to get started developing for the ST Nucleo L152RE? I've seen that exporting my project to IAR is not an option for the L152RE, so I'm looking for a way to build a project from the ground up in IAR.

Thank you in advance,

-Ian

2 Answers

9 years, 6 months ago.

Hi,

I am actually working to add IAR on NUCLEO_L152RE. It will be in GitHub next week.

Regards

Accepted Answer

Any estimates on when this will be posted?

Thanks, -Ian

posted by Ian Wichmann 27 Oct 2014
9 years, 6 months ago.

Hello Ian,

if L152RE does not have IAR support (missing CMSIS files for IAR), you can add them. The second step is to add IAR template for the board, which is in tools/export/. You can find there other 2 nucleo boards, so its matter of copy/paste and edit.

Use build.py script to build mbed lib and project.py to generate a project (simple hello world). That's how you can work offline. If you do all this to add IAR support for a target, please send a pull request to our github repository https://github.com/mbedmicro/mbed, we can add it there and then make it available in the online IDE.

Side note: There's a separate project called project generator, which can do exporting/building IAR for you, its just matter of writing records files. Look at the example using mbed-SDK https://github.com/0xc0170/project_generator_mbed_examples. You still need to add IAR support to mbed SDK, it's just to use different tool to export any project to various toolchains.

Regards,
0cx0170