Quality,
Affordable,
Manufacturing
& Design
Services
- Turn Key Assembly
- Parts Acquisition
- Box Build
- System Assembly
- Functional Testing



- PCB Assembly
- Surface Mount
- Through Hole
- BGA, uBGA, LGA
- Prototype and Production
- Re-Work and Repair


Getting Started with Axiom ARM Boards

You can download support software for your Axiom ARM board here:

After installing, open the Kinetis Design Studio under Windows

Connect Your Board to your PC

  1. Using the supplied Micro-USB cable, connect one end to the USB port on your development board marked either SDA or OpenSDA.  The other end of the USB cable should be plugged into your PC.
  2. If this is the first time connecting to the board, your PC should start installing its drivers, wait for this to finish.  This will add a new COM port under windows, which you will use in the following step.  Note the number that it adds, for example COM23.
  3. Launch your Serial Terminal program (for example TeraTerm).  Under Setup change the Serial Port to match the port that was added when you plugged in the board.  Also set the baud rate to 115200.  The rest of the settings should already be set to Data: 8-bit, Parity: none, Stop: 1-bit, Flow Control: none.
  4. Unplug the USB cable from the board and plug it back in.  You should see a text menu on the terminal, if you don't press the RESET button on the board.  If you still don't see anything or if the text is garbage, try changing the Serial Port settings in your terminal program.

Creating Your First Application

Follow these steps to get started developing your first application:

  1. Launch the Kinetis Design Studio IDE from on your PC
  2. You'll be prompted to choose a location for your projects.  Choose any location on your PC, this is where your software projects will be saved.  You can change this every time you start KDS.
  3. When IDE opens, select the File menu and choose New then Kinetis Project
  4. For the name of your first project, enter: Hello
  5. Leave the default location and press the Next button.  You'll be prompted to select a board or processor.  Choose the Processor based on the Axiom development board you using the table (see below)
  6. Press Next.  For Kinetis SDK choose: None.  
  7. Check the Processor Expert box.
  8. For Project Mode choose Standalone and Press Finish.
    Axiom Board Processor
    AXM-0702-CMM-K60D Kinetis K -> MK60 -> MK60D ->MK60DN512xxx10
       

 

 

 

You should now have a "hello" project started in the IDE.  As it is now, the software won't do anything so lets add code to tell your board to say "hello".

  1. Cllick your Hello project on the left to expand it then click the Sources folder. 
  2. You should see 3 files: Events.c, Events.h and main.c.   Lets add more.
    1. You can drag files from any windows folder into the Sources folder then select "Copy files" to add them to your project. 
    2. Another way is to use Import.  Right click the Sources folder and choose Import.  Choose General then File System then click Next.
    3. Select Browse to the right of the From Directory box and find the directory where you installed the "Axiom ARM Support Software" and select the sub-directory: Source\Lib.   Click OK.
    4. You should see a list of files on the right with check boxes next to them.  Check the box next to the following files:  Common.h, Print.cpp, Print.h.
    5. Also check the box next to your boards support files from the table below.
Axiom Board Support files
AXM-0702-CMM-K60D CM_K60.H
   

 

 

 

 

  1. Now click Finish and you should see these files listed under your project Sources folder. 
  2. Double click common.h to open it for editing.
  3. Add a Define Line to the top of the common.h file using the table below based on your Axiom Board.  For example:
    #define CM_K60
Axiom Board Define Line
AXM-0702-CMM-K60D #define CM_K60
   

 

 

 

 

  1. Now double click main.c to open it for editing.  The main file is automatically generated and contains areas that should not be changed as well as areas where you can add your own code.
  2. Find the following comment about halfway down:
    /* User includes (#include below this line is not maintained by Processor Expert) */
  3. Add the following code under it:
    #include "common.h"
    #include "print.h"
  4. Now find the following comment further down a bit in main.c
    /* Write your code here */
  5. Add the following code under it:
    Serial.begin(115200);
    HWSERIAL.begin(115200);
    for(;;){
        Serial.print("Hello ");
    }
  6. From the Project menu, select Build All
  7. If there are any errors, you will see them under Problems at the bottom.  If this is the case, double click on the problem and fix it before continuing.  It's usually a typo.
  8. Once your project successfully builds without problems, you can download and execute it on your board which we'll do next.

Loading and Debugging your Application

  1. The first time you debug an application, you tell the IDE what method to use.  From the Run menu select Debug Configurations.
  2. Click GDB OpenOCD Debugging and then under this click Hello_Debug_OpenOCD.
  3. On the right will show a window containing the debug settings, leave everything default and just click the Debug button on the lower right.
  4. A Launching window will pop up and you should see several text messages scrolling by as you application is loaded onto the development board and executed.
  5. The debugger will halt program execution at following line in your main.c file:
    PE_low_level_init();
  6. From the Run menu select Resume.  This will contine executing your application, which in this case is sending the string "Hello " over and over again out the boards virtual serial port.
  7. To stop execution, select the Run menu again and choose Terminate.
  8. To start again, select the Run menu and choose Debug History and select Hello_Debug_OpenOCD.
  9. You can also use the toolbar shortcut buttons for all of the above commands.