Download Print this page
Nuvoton MA35D1 Quick Start Manual

Nuvoton MA35D1 Quick Start Manual

Buildroot
Hide thumbs Also See for MA35D1:

Advertisement

Quick Links

MA35D1 Buildroot Quick Start
| Photo by Jeffery Cheng
| Photo by Jeffery Cheng
NuDeveloper Ecosystem – Make the engineers' job easier.
NuDeveloper Ecosystem – Make the engineers' job easier.

Advertisement

loading
Need help?

Need help?

Do you have a question about the MA35D1 and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton MA35D1

  • Page 1 MA35D1 Buildroot Quick Start NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier. | Photo by Jeffery Cheng | Photo by Jeffery Cheng...
  • Page 2 Agenda  Overview  Environment Setup  Programming  System Boot NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 3 Overview NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 4 。 Operation System: Linux OS or Linux Virtual Machine (VMware provide by Nuvoton) 。 A MA35D1 Docker container If you used VMware provide by Nuvoton, you have already created a MA35D1 Docker container  Software Tool 。 Programming – NuWriter NuDeveloper Ecosystem –...
  • Page 5 VMware Setting NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 6 Start up with VMware  This VMware Image offers a Linux development environment for MA35D1. If you utilize the VMware Image, you can bypass the Docker steps for building the Image  User Name: user Password: user  Buildroot: $ cd ~/buildroot/MA35D1_Buildroot ~/MA35D1_Buildroot$ git pull NuDeveloper Ecosystem –...
  • Page 7 Docker Environment Setup NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 8 Development Environment – Docker • Docker enables the packaging of code and its dependencies into containers. • Each container is independent and based on the host OS, ensuring they operate in isolation without impacting each other. Containers run more efficiently than virtual machines, resulting in faster performance Container1 Container2...
  • Page 9: Environment Setup

    Environment Setup (1/4)  The necessary packages must be installed before building  Ubuntu and Debian $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libsdl1.2-dev xterm curl NuDeveloper Ecosystem –...
  • Page 10 Environment Setup (2/4)  This demo is under Ubuntu distribution. If you use virtual machine, ensure your RAM at least 5GB  Update existing list of packages $ sudo apt-get update  Install a few prerequisite packages which let apt use packages over HTTPS $ sudo apt install apt-transport-https ca-certificates curl software-properties-common ...
  • Page 11 Update the package database with the Docker packages from the newly added repo $ sudo apt-get update Install Docker $ sudo apt-get install docker-ce docker-ce-cli containerd.io Download the Docker Script for MA35D1 $ git clone https://github.com/OpenNuvoton/MA35D1_Docker_Script.git NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 12 Environment Setup (4/4) Enter docker-yocto folder, build docker image.It may take one hour to get about 710 files $ ./build.sh Enter docker image, and your command line head will be like nuvoton@a24d9e06abe3:~$ $ ./join.sh ma35d1_user nuvoton@a24d9e06abe3:~$ NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 13 Environment Setup NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 14  Enter Docker container $ ./join.sh  Download MA35D1 Buildroot (No need to clone with VMware provided by Nuvoton) $ git clone https://github.com/OpenNuvoton/MA35D1_Buildroot.git $ git pull NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 15 Download and Update Buildroot  List all default configurations provide by Nuvoton and choose your target board configuration $ ls configs/n*  Set configuration to the target board $ make numaker_som_ma35d16a81_defconfig NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 16 Install Qt5 Package  Open Buildroot configuration $ make menuconfig Target packages ---> Enable Tslib support Graphic libraries and applications ---> qt5declarative [*] directfb quick module [*] Qt5 ---> qt5multimedia -*- qt5base qt5script Compile and install examples (with code) qt5sensors gui module qt5serialbus widgets module...
  • Page 17 Install Gstreamer Related Package Target packages ---> [*] Enable output devices [*] audioresample Audio and video applications ---> [*] gstreamer 1.x [*] tcp [*] alsa-utils ---> -*- enable unit test libraries -*- typefind [*] alsactl [*] enable command-line parser [*] videotestsrc [*] alsamixer [*] enable tracing subsystem [*] videorate...
  • Page 18 Install Gstreamer Related Package Target packages ---> [*] videofilter Audio and video applications ---> [*] videomixer -*- gst1-plugins-good ---> [*] wavparse (*.wav audio) [*] jpeg (JPEG support) [*] mpg123 (*.mp3 audio) [*] png (PNG support) [*] ossaudio (OSS audio) [*] audiofx [*] v4l2 [*] audioparsers [*] v4l2-probe (m2m)
  • Page 19 Install Package to MA35D1 Image  If you do not need to install any additional packages to the MA35D1 image, you can start building it $ make NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 20 Building Finishing  Once the build is complete, you can find the resulting image at /output/image  The core-image-buildroot-ma35d1-som-256m.rootfs.sdcard can be used to directly program to an SD card  Alternatively, pack-core-image-buildroot-ma35d1-som-256-sd.bin can be used to program an SD card through NuWriter NuDeveloper Ecosystem –...
  • Page 21 Programming NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 22 Image Programming  Usually, you would use NuWriter for MA35 to program the image, but for debugging purposes, you can also program the image to an SD card using an writing tool by PC  One open-source utility that can be used for writing image files is balenaEtcher, which you can use to program the image NuDeveloper Ecosystem –...
  • Page 23 Evaluation Board Introduction   Debug Port: show the debug message Reset Button: reset MA35D1   USB Device: used to program image by NuWriter RTC Button: wake up RTC  Power-On Switch: Switch booting source Input Debug Power Port...
  • Page 24: Start Programming

    Start Programming  To program an image to an SD card, please ensure the following steps are followed: 。 Connect the power supply 。 Connect the debug port 。 Connect the USB device 。 Insert the SD card 。 Set the power switch to enable USBD Boot ...
  • Page 25 NuWriter Programming  Choose DDR file ddrimg/MA35D16A887C.bin  Click Attach button, you will see the message below NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 26 NuWriter Programming  Switch to Download and choose SD/EMMC  Browse pack-core-image-buildroot-ma35d1-som-256m-sdcard.bin  Enable Pack mode  Click write button to start programming NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 27: System Boot

    System Boot NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 28 System Boot  Set the power switch to enable SD 1 Boot and click reset Button and you will see MA35D1 booting 。 [PG 0] [PG 2] High  Enter “root” to login NuDeveloper Ecosystem – Make the engineers’ job easier.
  • Page 29 NuDeveloper Ecosystem – Make the engineers’ job easier. NuDeveloper Ecosystem – Make the engineers’ job easier.