Skip to content

mbed-nuvoton/NuMaker-mbed-ce-uart-example

 
 

Repository files navigation

Example for non-default UART on Nuvoton's Mbed CE enabled boards

This is an example to demo non-default UART on Nuvoton's Mbed CE enabled boards.

Check out Mbed CE for details on Mbed OS community edition.

Support development tools

Use cmake-based build system. Check out hello world example for getting started.

⚠️ Warning

Legacy development tools below are not supported anymore.

For VS Code development or OpenOCD as upload method, install below additionally:

  • NuEclipse: Nuvoton's fork of Eclipse
  • Nuvoton forked OpenOCD: Shipped with NuEclipse installation package above. Checking openocd version openocd --version, it should fix to 0.10.022.

Developer guide

In the following, we take NuMaker-IoT-M467 board as an example for Mbed CE support.

Hardware requirements

  • NuMaker-IoT-M467 board
  • Host OS: Windows or others
  • Nu-Bridge: Connect UART RX/TX to target board's UNO D1/D0

Build the example

  1. Clone the example and navigate into it

    $ git clone https://github.com/mbed-nuvoton/NuMaker-mbed-ce-uart-example
    $ cd NuMaker-mbed-ce-uart-example
    $ git checkout -f master
    
  2. Deploy necessary libraries

    $ git submodule update --init
    

    Or for fast install:

    $ git submodule update --init --filter=blob:none
    
  3. Compile with cmake/ninja

    $ mkdir build; cd build
    $ cmake .. -GNinja -DCMAKE_BUILD_TYPE=Develop -DMBED_TARGET=NUMAKER_IOT_M467
    $ ninja
    $ cd ..
    

Flash the image

Flash by drag-n-drop built image NuMaker-mbed-ce-uart-example.bin or NuMaker-mbed-ce-uart-example.hex onto NuMaker-IoT-M467 board

Verify the result

On host terminal (115200/8-N-1), you should see below via Nu-Bridge:

Hello NuMaker 1
Hello NuMaker 2
Hello NuMaker 3

About

Example for non-default UART on Nuvoton's Mbed CE enabled boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 74.4%
  • C++ 25.6%