2397419_en-US

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

2397419_en-US

2397419_en-US

How to generate a Standalone IAR toolchain project from MCUXSDK application example - KWX/MCWX

To generate a hello world (suppose) example for KW47-EVK for IAR toolchain. We asume that IAR toolchain is already installed.

  1. Set IAR_DIR environment variable. In Windows, this can be done via Edit environment variables system option. Example: IAR_DIR=C:\iar\ewarm-9.60.1.    Note: IAR toolchain version may change.

  2. Type the following commands on your MCUXSDK workspace:

    cd mcuxsdk 
    west build -b kw47evk ./examples/demos_apps/hello_world --toolchain=iar -t standalone_project -Dcore_id=cm33_core0 --pristine -d ./build/kw47evk/kw47evk_standalone_hello_world_iar​
  3. IAR project should have been generated on 
    MCUXSDK_WS/mcuxsdk/build/kw47evk/kw47evk_standalone_hello_world_iar/iar 

    directory. IAR project has .eww file extension. 

    neidys_vargas_0-1784665664365.png

 Relevant links

  • IDE Project Generation:

https://mcuxpresso.nxp.com/mcuxsdk/latest/html/develop/build_system/IDE_Project.html#

Note: Ruby is required for this feature. Typically, this tool is installed via MCUXpresso Installer. However, if having issues with this tool refer to the next link:

  • Ruby Environment Setup:

https://mcuxpresso.nxp.com/mcuxsdk/latest/html/develop/build_system/IDE_Project.html#ruby-environmen...

Suppose you want to generate a hello world example for KW47-EVK for IAR toolchain as the previous example, but this time LPTMR driver is required for low-power timer operating purposes. We asume that IAR toolchain is already installed and IAR_DIR variable is already set.

  1. The easiest way to accomplish this is to add the lptmr Kconfig symbols with ‘yes’ value at Board-Application level (Refer to Kconfig User Guide). In this case, the target prj.conf file is located on 
    MCUXSDK_WS/mcuxsdk/examples/_boards/kw47evk/demo_apps/hello_world.​
    Edit this file and add the LPTMR required symbols: 
    CONFIG_MCUX_COMPONENT_driver.lptmr=y
    CONFIG_MCUX_COMPONENT_component.lptmr_adapter=y​

    neidys_vargas_4-1784665984531.png
    neidys_vargas_1-1784665840673.png
  2. Type the following command on your MCUXSDK workspace: 
    west build -b kw47evk ./examples/demo_apps/hello_world --toolchain=iar -t standalone_project -Dcore_id=cm33_core0 --pristine -d ./build/kw47evk/kw47evk_standalone_hello_world_iar
  3. IAR project should have been generated on MCUXSDK_WS/mcuxsdk/build/kw47evk/kw47evk_standalone_hello_world_iar/iar directory. IAR project has .eww file extension. This time LPTMR drivers should be included in iar/drivers/lptmr  neidys_vargas_2-1784665938476.png neidys_vargas_3-1784665959007.png
    neidys_vargas_5-1784666017506.png

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