标题: [NuMicro] Using Nu-Link2 to Access MCU on Linux [打印本页] 作者: admin 时间: 2021-12-23 17:47 标题: [NuMicro] Using Nu-Link2 to Access MCU on Linux
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 HIDAPIto 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.