Compile Micropython By MDK or IAR
Posted: Tue Apr 25, 2017 7:55 am
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.
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
