Build project with IAR compiler on windows

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Yonatan
Posts: 3
Joined: Sun Sep 04, 2016 1:39 pm

Build project with IAR compiler on windows

Post by Yonatan » Sun Sep 04, 2016 1:49 pm

Hi all.
I am trying to start-up a micropython system on my STM32F407 DISCO board.
Can I do it using windows OS and an IAR IDE?
Or should I using linux OS and gcc?
If the answer is yes (i.e., I can) - how to find a quick start for that?
Thanks in advance

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Build project with IAR compiler on windows

Post by shaoziyang » Sun Sep 04, 2016 2:55 pm

Yonatan wrote:Hi all.
I am trying to start-up a micropython system on my STM32F407 DISCO board.
Can I do it using windows OS and an IAR IDE?
Or should I using linux OS and gcc?
If the answer is yes (i.e., I can) - how to find a quick start for that?
Thanks in advance
You can find it in here:
https://github.com/micropython/micropyt ... ter/stmhal

Yonatan
Posts: 3
Joined: Sun Sep 04, 2016 1:39 pm

Re: Build project with IAR compiler on windows

Post by Yonatan » Mon Sep 05, 2016 5:45 am

Thank you, but It is for Linux only

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Build project with IAR compiler on windows

Post by dhylands » Mon Sep 05, 2016 6:16 am

Yonatan wrote:Thank you, but It is for Linux only
Well that's definitely not true. You can build MicroPython under Windows, OSX, and linux (and I've done it in all 3 environments).

I was using gcc in all 3 platforms. I'm not sure whether MicroPython will compile under non-gcc compilers or not since I haven't tried it.

Yonatan
Posts: 3
Joined: Sun Sep 04, 2016 1:39 pm

Re: Build project with IAR compiler on windows

Post by Yonatan » Mon Sep 05, 2016 7:10 am

I assume you are right.
My question was about the IAR, rather than the OS.
Anyway, that is my I am trying to do:
I have an "empty" (but working) project for the STM32F4DISCO in IAR IDE.
I want to add the minimal number of files that implementing the mpython on the MCU,
write a short-and-simple script of calling to a python-function that wrapping a simple c
function that I know it works (toggle LEDs for example)
Is there any way to do that?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Build project with IAR compiler on windows

Post by dhylands » Mon Sep 05, 2016 7:16 am

The minimal port of MicroPython would be a good place to start.

Check this thread:
http://forum.micropython.org/viewtopic. ... 11&p=12028
for discussions around calling C and python.

Post Reply