Chapter 3: Introduction to the Simulator for W55MH32
Chapter 3: Introduction to the Simulator for W55MH32

Chapter 3: Introduction to the Simulator for W55MH32
1 Introduction to the Simulator
DAP-Link is an embedded development and debugging tool based on the open-source ARM CMSIS-DAP protocol, specifically designed for programming and debugging of microcontrollers (such as the ARM Cortex-M series). Its core function is to connect the PC and the target device via the USB interface, supporting online debugging (such as single-step execution, breakpoint setting) and firmware burning, and being compatible with various development environments including Keil, IAR, and PyOCD, significantly enhancing development efficiency.
As a lightweight emulator, DAP-Link hardware usually integrates SWD/JTAG interfaces, is compatible with mainstream chip manufacturers' MCUs, and additionally provides USB-to-serial port (UART) functionality, facilitating data communication for developers. Its advantages lie in plug-and-play functionality, small size, and low cost, while supporting open-source firmware, allowing users to customize function expansions to meet different scenarios.
The development board integrates a simulator WIZ-Link, as shown in the figure. WIZ-Link follows the CMSIS-DAP standard of ARM Company, supports downloading and online simulation programs, supports using without driver on four operating systems: XP, WIN7, WIN8, and WIN10, and supports direct download via KEIL and IAR.
In addition, WIZ-Link also supports a virtual serial port, which is internally connected to PA9 and PA10 of W55MH32. Downloading, logging, and simulation can all be achieved through WIZ-Link, which is very convenient.
2. Simulator Configuration
After connecting the development board to the computer via WIZ-Link, open the device manager of the computer and you can see WIZ-Link and the virtual serial port. As shown in the following picture:
Open KEIL, then select the CMSIS-DAP emulator in the Magic Wand tab, as shown in the following figure:
After clicking the "Settings" button, you will enter the CMSIS-DAP Debugger configuration interface.
Note: If the Device Manager detects WIZ-Link but the development board is not recognized in the CMSIS-DAP Debugger settings interface, you can upgrade KEIL5 to the latest version.
3. Use other simulators and serial port debugging tools
The W55MH32 supports most of the simulators available on the market, such as ST-LINKV2, JLINK, ARM Emulator, etc.
Note: ST-LINKV3 is not supported.
The jumpers on the development board are used to connect the serial port and debug port of W55MH32 with WIZ-Link, as shown in Figure 16. If you need to use other serial port debugging tools or simulators, you can remove the jumpers to avoid connecting simultaneously:
When using JLINK, if the system encounters an issue where the chip cannot be recognized, the following modifications need to be made:
1. Modify the JLinkDevices.xml file in the JLINK installation directory and add the following content.
<Device>
<ChipInfo Vendor="WIZnet" Name="W55MH32-100LQFP" Core="JLINK_CORE_CORTEX_M3"
WorkRAMAddr="0x20000000" WorkRAMSize="0x00018000"/>
<FlashBankInfo Loader="Devices/WIZnet/W55MH32/W55MH32.FLM"
LoaderType="FLASH_ALGO_TYPE_OPEN" MaxSize="0x00100000" Name="Internal Flash"
BaseAddr="0x08000000" AlwaysPresent="1"/>
</Device>
2. In the "Devices/WIZnet/W55MH32/" directory, add the "W55MH32.FLM" file.
Among them, the W55MH32.FLM file is located in the Flash path under the W55MH32\W55MH32_DFP\1.0.0\CMSIS directory in the Keil installation directory, as shown in the following figure.
WIZnet is a fabless semiconductor company founded in 1998. Its products include the Internet processor iMCU™, which utilizes TOE (TCP/IP Offload Engine) technology and is based on a unique patented fully hardwired TCP/IP. The iMCU™ is designed for embedded Internet devices in various applications.
WIZnet has more than 70 distributors globally and has offices in Hong Kong, South Korea, and the United States, providing technical support and product marketing services.
The regions managed by the Hong Kong office include Australia, India, Turkey, and Asia (excluding South Korea and Japan).