CMSIS-DAP  
Interface Firmware for CoreSight Debug Access Port
 
Loading...
Searching...
No Matches
CMSIS-DAP Initialization

Functions

__STATIC_INLINE void DAP_SETUP (void)
 
__STATIC_INLINE uint8_t RESET_TARGET (void)
 

Description

CMSIS-DAP Hardware I/O and LED Pins are initialized with the function DAP_SETUP.

Function Documentation

◆ DAP_SETUP()

__STATIC_INLINE void DAP_SETUP ( void  )

Setup of the Debug Unit I/O pins and LEDs (called when Debug Unit is initialized). This function performs the initialization of the CMSIS-DAP Hardware I/O Pins and the Status LEDs. In detail the operation of Hardware I/O and LED pins are enabled and set:

  • I/O clock system enabled.
  • all I/O pins: input buffer enabled, output pins are set to HighZ mode.
  • for nTRST, nRESET a weak pull-up (if available) is enabled.
  • LED output pins are enabled and LEDs are turned off.

◆ RESET_TARGET()

__STATIC_INLINE uint8_t RESET_TARGET ( void  )

Reset Target Device with custom specific I/O pin or command sequence. This function allows the optional implementation of a device specific reset sequence. It is called when the command DAP_ResetTarget and is for example required when a device needs a time-critical unlock sequence that enables the debug port.

Returns
0 = no device specific reset sequence is implemented.
1 = a device specific reset sequence is implemented.