FRDM-KL03Z...Problem setting up ARM GCC toolchain

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-KL03Z...Problem setting up ARM GCC toolchain

Jump to solution
1,303 Views
denbigh1974
Contributor II

Hi. I have purchased a FRDM-KL03Z development board and wish to learn how to build and debug the Hello World example application using the ARM GCC toolchain. I have accessed a set of software installation instructions for this by clicking on the "Use ARM GCC" button at
https://www.nxp.com/document/guide/get-started-with-the-frdm-kl03z:NGS-FRDM-KL03Z#title3.2


My operating system is Windows 7 (32-bit)

I've downloaded and installed the following programs:

  • Kinetis SDK 1.3.0 Mainline - Windows.exe [Source:1]
  • gcc-arm-none-eabi-8-2019-q3-update-win32-sha2.exe [2]
  • mingw-get-setup.exe [3] (Selected "mingw32-base" and "msys-base" for installation. Appended C:\MinGW\bin to Path)
  • cmake-3.15.2-win32-x86.msi [4]

I added new system variable using Windows 7 Control Panel
   Variable name: ARMGCC_DIR
   Variable value: C:\Program Files\GNU Tools ARM Embedded\8 2019-q3-update

I then rebooted and tried to run the following from the Windows command line
C:\Freescale\KSDK_1.3.0\examples\frdmkl03z\demo_apps\hello_world\armgcc\build_debug.bat

I received a number of errors and the build failed. I have attached the system output as a text file.

Please can someone assist?

1 Solution
1,127 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Den Bigh ,

  The example code you are referring is really very old, please go to this link download the newest SDK2.x for your FRDM-KL03 board:

   Welcome | MCUXpresso SDK Builder 

After you download the SDK code, you can find some document will tell you how to run the code in GCC, please check this SDK folder:

  SDK_2.3.1_FRDM-KL03Z\docs

If you still have questions about it, please kinldy let me know.

Wish it helps you!

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

4 Replies
1,128 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Den Bigh ,

  The example code you are referring is really very old, please go to this link download the newest SDK2.x for your FRDM-KL03 board:

   Welcome | MCUXpresso SDK Builder 

After you download the SDK code, you can find some document will tell you how to run the code in GCC, please check this SDK folder:

  SDK_2.3.1_FRDM-KL03Z\docs

If you still have questions about it, please kinldy let me know.

Wish it helps you!

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,127 Views
denbigh1974
Contributor II

Thank you Kerry! I have managed to build the file now.

For anyone else with the same problem, I downloaded the software from https://mcuxpresso.nxp.com/en/builder and chose the GCC ARM option (screenshot below)

SDK_GCC.jpg

1,127 Views
kerryzhou
NXP TechSupport
NXP TechSupport

You are right! Toolchain/IDE used to select the specific IDE project.

On my side, I normally select all the toolchain.

If you still have questions about it, please kinldy let me know.

Wish it helps you!

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
1,127 Views
denbigh1974
Contributor II

By the way, the content of your build_debug.bat file is:

cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug .
mingw32-make -j4
pause

0 Kudos