Skip to content

SSHUSSAIN-86/FRDM-K64-Joystick-N5510

Repository files navigation

This project demostrates interfacing and functionality of FRDM-K64F with Nokia N5510 and Joystick

Mbed OS build tools

Mbed CLI 2

Starting with version 6.5, Mbed OS uses Mbed CLI 2. It uses Ninja as a build system, and CMake to generate the build environment and manage the build process in a compiler-independent manner. If you are working with Mbed OS version prior to 6.5 then check the section Mbed CLI 1.

  1. Install Mbed CLI 2.
  2. Change the current directory to where the project was imported.

Mbed CLI 1

  1. Install Mbed CLI 1.
  2. Change the current directory to where the project was imported.

Application functionality

The main() function is the single thread in the application.

Note: This demo requires a target with RTOS support, i.e. one with rtos declared in supported_application_profiles in targets/targets.json in mbed-os.

Building and running

  1. Connect a USB cable between the USB port on the board and the host computer.

  2. Run the following command to build the example project and program the microcontroller flash memory:

    • Mbed CLI 2
    $ mbed-tools compile -m <TARGET> -t <TOOLCHAIN> --flash
    • Mbed CLI 1
    $ mbed compile -m <TARGET> -t <TOOLCHAIN> --flash

Your PC may take a few minutes to compile your code.

The binary is located at:

  • Mbed CLI 2 - ./cmake_build/FRDM-K64-Joystick-N5510.bin
  • Mbed CLI 1 - ./BUILD/<TARGET>/<TOOLCHAIN>/FRDM-K64-Joystick-N5510.bin

Alternatively, you can manually copy the binary to the board, which you mount on the host computer over USB.

Expected output

You should be able to see a circle on N5510 screen, which can be controlled by the Joystick

Troubleshooting

Any issues can be reported to shehzad.hussain2011@gmail.com

Related Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published