Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.243

Navigation: FNet communication network > How-to guides

Scroll Prev Top Next More

mDIO Use case Configuration

In this topic:

Requirements

Functionalities

Use cases

Configuration

Pin toggling

HIL monitoring

Synchronous observing via Analyzer Profiler Timeline Window

winIDEA SDK Example

 

 

Introduction

mDIO port is located on the side of iC7 BlueBox Debugger family or a specific Active Probe. It provides digital signals, which can interact with the embedded target. Each signal can be configured either for input or output operation. mDIO cable or test clips are used to connect the mDIO port with the signals around the debugged microcontroller, which can then be either read or controlled by the debugger.

 

iC7max BlueBox front view with mDIO port

iC7max BlueBox front view with mDIO port

iC7mini /iC7pro BlueBox front view with mDIO port

iC7mini /iC7pro BlueBox front view with mDIO port

Active Probe Infineon DAP/DAPE II with mDIO port

Active Probe Infineon DAP/DAPE II with mDIO port

 

 

Requirements

iC7max BlueBox, Active Probe with mDIO port

omDIO cable

iC7mini/iC7pro BlueBox and iC7 Adapter

oTest clips

owinIDEA version 9.21.215 and newer

iC5700 BlueBox, Active Probe with mDIO port

omDIO cable

owinIDEA version 9.21.118 and newer

 

 

Functionalities

Pin toggling and triggering

The mDIO allows you to toggle the pin states using TC triggers. Additionally, the pin state can act as a trigger itself. This means that a trigger event can change a pin's state from one to zero or vice versa. You can also set a pin as an input and use its transition from high to low or low to high as a trigger event.

 

HIL control

mDIO can be conveniently controlled via winIDEA. You can manually toggle pins, observe their states, and configure initial pin states and directions via Hardware-in-the-Loop (HIL) monitor which facilitates hands-on control and automation for test scenarios.

 

Pattern generation

The mDIO includes a pattern generator feature, enabling the generation of arbitrary digital signals with specific patterns. This capability is useful for generating digital frequencies, PWM patterns, and other custom signal patterns required for testing and analysis purposes.

 

Automation

mDIO port is fully controllable via winIDEA SDK and therefore it can be used for test automation.

 

 

Use cases

Power control

The mDIO can be employed for power cycling a target device, especially when it enters an unrecoverable state. By automating the power control process, you can perform tests and analyze code execution during power cut scenarios.

 

Click to enlarge

Power control block diagram for iC7mini BlueBox use case

Click to enlarge

Power control block diagram for Active Probe with iC5700 BlueBox use case

 

Check this topic Target power control using BlueBox & ADIO for more information.

 

 

Watchdog handling

It can be utilized to put the watchdog chip into test mode, preventing unwanted chip resets. Its ability to change polarity simplifies compatibility with different chips, eliminating the need for external inverters.

 

Click to enlarge

Watchdog handling block diagram for iC7mini BlueBox use case

Click to enlarge

Watchdog handling block diagram for Active Probe with iC5700 BlueBox use case

 

 

HIL monitoring

With the mDIO, you can manually control the target state, including program inputs. Emulating limit switches or push buttons becomes easier by connecting the mDIO to the target's pin. This method enables functional testing without the need for physical switches.

Click to enlarge

HIL monitoring block diagram for iC7mini BlueBox use case

Click to enlarge

HIL monitoring block diagram for for Active Probe with iC5700 BlueBox use case

 

 

Frequency communication

The mDIO's pattern generation capability allows the transmission of different frequencies to represent distinct signal levels. By controlling the timing and triggers, engineers can communicate with external devices using specific frequencies, facilitating testing and analysis.

 

Configuration

General

number1

Create a new workspace via File / Workspace / New.

 

number2

Make sure your BlueBox / Active Probe IN and OUT is properly configured via Hardware / Options / FNet.

 

pin-toggling-mdio

 

number3

Perform Reset / Download.

 

Number4

Configure your workspace:

Pin toggling

HIL monitoring

Synchronous observing via Analyzer Profiler Timeline (iC5700 BlueBox and Active Probe)

Pattern generation (iC5700 BlueBox and Active Probe)

 

 

Pin toggling

You can use triggers to toggle the pins.

 

number1

Open Hardware / FNet Operation and select the mDIO page.

 

number2

Configure the actions and triggers as desired.

Click to enlarge

 

number3

Run the application.

 

 

HIL monitoring

If you Run Reset or Prepare to attach you can use the HIL Monitor.

 

number1

Open via View / HIL Monitor / View.

 

number2

Enable Real-time monitoring.

 

number3

Run the application.

hil-mdio

 

i-icon

To observe the values via Watch Window, you can simply drag and drop [D0_n] to the Watch Window pane.

 

 

Synchronous observing via Analyzer Profiler Timeline Window

i-icon

Supported on iC7pro, iC7max, and iC5700 BlueBox.

 

number1

Open the Analyzer via View / Analyzer / Analyzer Configuration.

 

number2

On the Recorder page enable Upload while sampling and Generate time sync messages.

 

number3

Enable FNet and press Configure.

 

Number4

Configure mDIO page:

Enable Qualifier / Recording is enabled from start

Select Enabled Inputs and Outputs in the Record drop-down.

 

fnet-mdio-

 

Number5

Make sure the AUX signals are visible in the Profiler Timeline.

 

number6

Start the Analyzer session.

 

results-mdio

 

winIDEA SDK Example

You can fully automate mDIO port using winIDEA SDK.

 

 

More resources

Active Probes - Hardware User Manuals

Network description - mDIO port general configuration

Recorder Configuration

mDIO - Pattern Generator

HIL Monitor

 

Copyright © 2024 TASKING Germany GmbH