0% found this document useful (0 votes)
61 views

Smart Cable SW Architecture and Development Kit Setup - 20230322

The document describes the setup and build process for a smart cable firmware project using the Keil and GNU toolchains. It outlines installing the IDEs, device pack, and toolchains. It provides steps for building a firmware binary file with both toolchains and flashing it to the device with the MiTAC utility. Debugging is done by printing messages over the UART port.

Uploaded by

Anderson Bairros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Smart Cable SW Architecture and Development Kit Setup - 20230322

The document describes the setup and build process for a smart cable firmware project using the Keil and GNU toolchains. It outlines installing the IDEs, device pack, and toolchains. It provides steps for building a firmware binary file with both toolchains and flashing it to the device with the MiTAC utility. Debugging is done by printing messages over the UART port.

Uploaded by

Anderson Bairros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Smart cable SW architecture

and
development kit setup
Index:
➢ Smart Cable SW Architecture
➢ IDE and Toolchain setup by Keil (free license version)
➢ Build firmware binary file by Keil (free license version)
➢ IDE and Toolchain setup by GNU (free license version)
➢ How to build firmware binary file by GNU (free license version)
➢ Flash firmware by MiTAC tool kit (HW and SW utility)
➢ Code trace and debug by UART
Smart Cable SW Architecture
Smart cable SW Cable Architecture

MiTAC
MiTAC
3rd party
or customer
Indie
IDE and Toolchain setup by Keil
IDE Environment Setup (Keil)
1. Keil MDK-ARM IDE and iND83405 package installation
➢ Download the latest Keil MDK-ARM IDE from here:
➢ Keil Product Downloads: https://www.keil.com/download/product/
➢ Choose MDK-ARM
➢ Then filled the required information to continue to download the MDK-ARM. Then install it.
IDE Environment Setup (Keil)
2. Install the iND83405 Pack file “Indie.IND834XX.1.1.7.pack”.

3. Download and install the version 10-2020-q4-major GNU Arm Embedded Toolchain from ARM website:
https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-
win32.exe
Make sure it will be installed to folder C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major
Before clicking “Finish” check the following options:
Launch gccvar.bat
Add path to environment variable
Add registry information
IDE Environment Setup (Keil)
4. Open the SDK project “skinny.uvprojx” with Keil MDK-ARM IDE Tool .

5. iND83405 MCU pack setup check

Project->Options for Target ‘Target1’…


IDE Environment Setup (Keil)
6. Device Tab check for
Generic->IND834XX Nigel Series->IND8340X->IND83401 based on installed iND83405 Pack file
“Indie.IND834XX.1.1.7.pack”.
GNU ARM Toolchain Setup (Keil)
7. User Tab check for GNU ARM toolchain After Build/Rebuild setup
Run #1: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4- major\bin\arm-none-eabi-
objcopy.exe -v -O binary ".\Objects\skinny.elf" ".\skinny.bin"
Run #2: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4- major\bin\arm-none-eabi-size.exe
".\Objects\skinny.elf"
GNU ARM Toolchain Setup (Keil)
8. GNU ARM toolchain setup check for FW Building
Project->Manage->Project Items…

Folder/Extensions->Use GCC Compiler (GNU) for ARM projects


Prefix: arm-none-eabi-
Folder: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major
How to build firmware binary file by Keil
Build firmware binary file by Keil
1. Project->Build Target

2. The FW binary skinny.bin will be generated in the SDK root folder.

*Please be noticed, due to Keil license constrain, MiTAC use Keil


for compiling only, NOT for debugging.
IDE and Toolchain setup by GNU
IDE Environment Setup (GNU)
1. GNU Arm Compiler package installation
➢ Download the latest GNU Arm Compiler from here:
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm
IDE Environment Setup (GNU)
2. Open Command Prompt and input “arm-none-eabi-gcc -v” to check the information
IDE Environment Setup (GNU Make)
1. GNU Make installation
➢ Download the latest GNU Make from here:
http://gnuwin32.sourceforge.net/packages/make.htm
IDE Environment Setup (GNU Make)
2. Add “C:\Program Files (x86)\GnuWin32\bin” in environment variable.
IDE Environment Setup (GNU Make)
2. Open Command Prompt and input “make -v” to check the information
How to build firmware binary file by GNU
Build firmware binary file by GNU
1. Enter your project source code and input “make”. The binary file will generate to /out.

*Please be noticed, add Makefile in your project source code


before compiler.
How to flash firmware
Smart CAN H/W Setup & FW flash by S/W Utility
1. Connect Main Board to Adapter (power off) and PC

2. Unzip and Execute FW_Downloader.exe


3. Select COMx (Standard COM Port) and
Baud rate 230400 then click Connect.
FW flash by Utility
4. Within 10 sec, click “Force Download Trigger” and click “Load”. (Select “skinny.bin”) Once download completed,
MCU will reboot automatically.
FW flash by Utility
How to debugging by UART
Code Trace and Debug by UART
1. Add debugging message in source code.

2. Connect MCU to PC by UART (Select COMx and Baud rate 230400) then print debug message for
debugging.

You might also like