Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years 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
10 years 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