hi, in this forum i learn much knowledge about micropython .thanks very much.
this time , i want add micropython to my project,then provide a python interface to user,it will be simple to use my product.
if it can be compile by MDK or IAR is very greatful. it will be debug simpile and modify simpile .
but i qstr preprocess is very complex.i read Makefile and get this information:
1.gcc -E generate qstr.i.last
2.makeqstrdefs.py split $(DestDir)qstr.i.last $(DestDir)qstr $(QstrDefsCollected)
3.makeqstrdefs.py cat $(DestDir)qstr.i.last $(DestDir)qstr $(QstrDefsCollected)
4.i don't know how to gen qstrdefs.generated.h(it seems user sed ,on windows i have no idea use any command tools)
5.makeqstrdata.py $(DestDir)/qstrdefs.preprocessed.h qstrdefs.generated.h
i write above command into a bat command file. then add all micropython source files into IAR or MDK project. then execute this bat file before i compile the project.
Please give some advice! (what's problem on this way)
by the way,i use eclipse + gcc compile micropython use micropython Makefile. And It Can be debug by eclipse.but my workmate don't like use it .so MDK or IAR is my best choice.
Compile Micropython By MDK or IAR
Re: Compile Micropython By MDK or IAR
Hi fkeujjpdc
I want to do the same thing: Port micropython to IAR Compiler.
Did you get any longer with that?
I want to do the same thing: Port micropython to IAR Compiler.
Did you get any longer with that?
Re: Compile Micropython By MDK or IAR
I've been busy with other things recently, but I've been trying to find a solution in my spare time, so we can discuss it together. MDK and IAR can use GCC, you can correctly compile Micropython, and now the more troublesome is QSTR generation. If we refer to VS project ,we should be able to work out
-
- Posts: 81
- Joined: Fri Sep 02, 2016 9:26 am
Re: Compile Micropython By MDK or IAR
ok to do this easily, just compile on any linux box, and you'll get all the qstr files.. this is what I do