How can I use the on-board J-Link debugger of EFM8 Starter Kit to debug an external EFM8 device?
Each EFM8 Starter Kit supports four debug modes:
To use the onboard J-Link debugger to program and debug an external EFM8 MCU:
1. Hardware Setup
Connect the VTARGET, C2D, C2CK and GND signals of the Debug Connector on the EFM8 Starter Kit to the target EFM8 device:
Note that VTARGET is not a power supply, and cann't be used to power the external device, but it is required to connect to the VDD of external MCU for detection.
A strong pull-up resistor (~1kOhm ) is recommended adding on the /RST/C2CK pin to prevent potential debug communication issues due to noise.
After connecting these signals, then power on the external EFM8 device board and connect the EFM8 Starter Kit to the PC using a USB cable.
2. Simplicity Studio Configuration
Launch Simplicity Studio v3.0, select the EFM8 Starter Kit in the Detected Hardware area, and then click Kit Manager. In the pop-up Kit Manager window, change Debug Mode to Out in order to use the on-board J-Link debugger to communicate with the external MCU.
When using the Out debug mode, Simplicity Studio must detect the target MCU device manually. Return to the Detected Hardware area, right-click the EFM8 Starter Kit, and choose Select Target Part.... In the pop-up Target Selection window, ensure the Target Interface is set as C2, then click the Detect Target button to start detecting the device, which may take a few seconds. If it detects successfully, the part number of the target MCU will be displayed in the window.
Now, you can debug the external EFM8 MCU just like the one on the board.