1819341_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

1819341_en-US

1819341_en-US

Makefile execution generated by MCUxpresso IDE

Hi team,

We have used MCUxpresso IDE and imported a sample SDK example for imxrt1170 eval board and built the project file.

The MCUxpresso IDE itself has auto generated a makefile. So my query is how to execute this make file in my windows system without using MCUxpresso,like by using make all, make clean and make commands to generate the binary (.axf file here for MCUxpresso).

I have even attached the Makefile also just for reference below.

Re: Makefile execution generated by MCUxpresso IDE

Hello,

Windows user here. Using MCUXpresso's makefiles is all a matter of %PATH% variable.

I found that the easiest way to run "make"  commands from the command line is to Ctrl-click on the project name in the bottom right-hand corner of the MCUXpresso IDE:

danielholala_0-1784882835421.png



This will open a terminal window in your project directory with  %PATH% properly set, so you can enter "make clean" and "make -j8 all" and similar commands.

Of course, you can close the IDE and the terminal window stays open. You can also inspect the %PATH% variable. Set this path in any other terminal window and you can run make commands there as well. 

Hope you can put this to good use.

Best regards,
Daniel


Re: Makefile execution generated by MCUxpresso IDE

The auto-generated make file (managed make) in Eclipse is not portable. You could use the make file in the SDK (non-IDE), or better, use CMake to have a portable build system. I'm using the approach described in https://mcuoneclipse.com/2023/04/19/building-a-triumvirate-from-eclipse-cdt-to-cmake-cmd-and-visual-... to have both IDE, make and CMake for the builds.

Re: Makefile execution generated by MCUxpresso IDE

Hi @Jeevan ,

  I think you can refer to the gcc project to build it in the SDK, as that also use the makefile without the IDE.

 About the gcc build method, you can refer to the sdk document:

SDK_2_14_0_MIMXRT1170-EVK\docs\Getting Started with MCUXpresso SDK for MIMXRT1170-EVK.pdf

chapter 6 Run a demo using Arm® GCC

You also can refer to my ubuntu build method document:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-Linux-SDK-build-based-on-Ubuntu/ta-p/1690185

Wish it helps you!

If you still have question about it, please kindly let me know.

Best Regards,

Kerry

タグ(1)
評価なし
バージョン履歴
最終更新日:
土曜日
更新者: