Engineer-to-Enginee r Not e EE-402
Technical notes on using Analog Devices products
Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors
e-mail processor.support@analog.com or processor.tools.support
@analog.com for technical support.
Synchronous System Halt and Run on the ADSP-CM41x Proc essor
Contributed by Manjunath, Manasa, Kiranmai Pernapati and Prasanth Rajagopal Rev 1 – March 21, 2019
Copyright 2019, Analog Devices, Inc. All rights reserved. Analog Devices assumes no responsibility for customer product design or the use or application of customers’
products or for any infringements of patents or rights of others which may result from Analog Devices assistance. All trademarks and logos are property of their
respective holders. Information furnished by Analog Devices applications and development tools engineers is believed to be accurate and reliable, however no
responsibility is assumed by Analog Devices regarding technical accuracy and topicality of the content provided in Analog Devices Engineer-to-Engineer Notes.
Introduction
The ADSP-CM41xF is a dual core mixed-signal control processor containing an Arm
®
Cortex
®
-M4
processor core and an Arm Cortex-M0 processor core. It includes several peripherals, such as the pulse-
width modulators (PWM), that support motor control and inverter applications. Development on the
processor is supported through the IAR Embedded Workbench and Keil™ MDK-Lite tool chains. The
synchronous halt operation is used when:
The peripherals must stop running due to the debugger entering emulation mode (halt execution)
The peripherals must star t running due to the debugger exiting f rom emulation mode (resume execution)
External components (such as motors) that are connected and PWMs must synchronously halt or run
due to the execution or halt of the control code logic.
Synchronous halt operation is not supported as received by debuggers like IAR and Keil. However, the
ADSP-CM41xF processor is designed to support the operation in hardware. The processor uses the
Embedded Cross Trigger (ECT) which consists of the Cross Trig ger Inte rface (C T I) and the C ros s T ri gger
Matrix (CTM). Both the IAR Embedded Workbench C-SPY debugger and Keil debugger interface and
drive the J-L ink Lite e mulator that supports the ADSP-CM41xF processor family. The C-SPY and µVision
®
support macros that can be executed when specific events occur.
This application note provides an IAR EWARM and Keil debug scripts to set up the CTI registers to
synchronously halt and run various peripherals in the system. The zip file
[1]
associated with this note
includes some examples that can be executed on an ADSP-CM41xF processor evaluation board.