[NuMicro] Using Nu-Link2 to Access MCU on Linux

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

14 Dec 2021, 09:49

  • Application: On Linux platform, this example code uses the HIDAPI library to connect Nu-Link2 and access NuMicro series microcontrollers (MCUs).
  • Linux Version: Ubuntu 20.04.3 LTS
  • Hardware: Nu-Link2 (Nu-Link2-Pro or Nu-Link2-Me)
This example code demonstrates the use of HIDAPI to connect Nu-Link2 on Linux, connect to the target microcontroller (MCU) through Nu-Link2, perform chip erase, and read/write operations on Flash and configuration area.

The HIDAPI library used in the example supports two back-ends (hidraw and libusb) on Linux platform. For details, please refer to HIDAPI official website. When compiling this example code, you can choose to use hidraw or libusb back-end in the compilation options.

The example code supports 8-bit (8051) and 32-bit (Arm Cortex-m) target microcontroller access. You can choose to use 8-bit or 32-bit access in the compilation options.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1210095708
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 14 guests