jt_cortex_ahb.c File Reference

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include "dbg_msg.h"
#include "jt_arm.h"
#include "jt_cortex.h"
#include "jt_instr.h"
#include "convert.h"

Functions

Variables


Detailed Description

DAP interface for ARM Cortex-M3


Function Documentation

void jtag_cortex_AHB_attach ( void   ) 
void jtag_cortex_AHB_setmodeTar ( uint32_t  addrInc,
uint32_t  size,
uint32_t  address 
)

set AHB transfer mode and taransfer address

Parameters:
addrInc Auto Address increment 0, 0x10, 0x20 for off-, single- or packed- mode
size transfersize: 0,1,2 for 8-bit, 16-bit or 32-bit
address 
Returns:
-

References AUTO_INCR_OFF_AP_CONTROL, currentAddrIncr, currentSize, currentTar, DEFAULT_AHB_AP_CONTROL, jtag_cortex_ApAHB_CtrlRegWrite(), jtag_cortex_ApAHB_TarRegWrite(), transactionActivate(), transactionCreate(), transactionErase(), transactionGet(), and transaction::uplevel.

Referenced by jtag_cortex_AHB_ReadByte(), jtag_cortex_AHB_ReadHalfword(), jtag_cortex_AHB_ReadWord(), jtag_cortex_AHB_ReadWordMemory(), jtag_cortex_AHB_WriteByte(), jtag_cortex_AHB_WriteHalfword(), jtag_cortex_AHB_WriteMemoryBuf(), jtag_cortex_AHB_WriteWord(), jtag_cortex_core_ApplicationInterruptResetControl_ReadRegister(), jtag_cortex_core_ApplicationInterruptResetControl_WriteRegister(), jtag_cortex_core_BusFaultAddress_ReadRegister(), jtag_cortex_core_BusFaultAddress_WriteRegister(), jtag_cortex_core_ConfigurationControl_ReadRegister(), jtag_cortex_core_ConfigurationControl_WriteRegister(), jtag_cortex_core_CPUID_ReadRegister(), jtag_cortex_core_debugExceptionMonitorControl_ReadRegister(), jtag_cortex_core_debugExceptionMonitorControl_WriteRegister(), jtag_cortex_core_DebugFaultStatus_ReadRegister(), jtag_cortex_core_DebugFaultStatus_WriteRegister(), jtag_cortex_core_debugHaltingControlStatus_ReadRegister(), jtag_cortex_core_debugHaltingControlStatus_WriteRegister(), jtag_cortex_core_HardFaultStatus_ReadRegister(), jtag_cortex_core_HardFaultStatus_WriteRegister(), jtag_cortex_core_MemManageAddress_ReadRegister(), jtag_cortex_core_MemManageAddress_WriteRegister(), jtag_cortex_core_PollDbgState(), jtag_cortex_core_ReadCpuRegs(), jtag_cortex_core_ReadDebugReg(), jtag_cortex_core_restart(), jtag_cortex_core_StopRunningProgram(), jtag_cortex_core_WriteCpuRegs(), jtag_cortex_dwt_comp_RegRead(), jtag_cortex_dwt_comp_RegWrite(), jtag_cortex_dwt_ctrl_RegRead(), jtag_cortex_dwt_ctrl_RegWrite(), jtag_cortex_dwt_function_RegRead(), jtag_cortex_dwt_function_RegWrite(), jtag_cortex_dwt_mask_RegRead(), jtag_cortex_dwt_mask_RegWrite(), jtag_cortex_fpb_comp_RegRead(), jtag_cortex_fpb_comp_RegWrite(), jtag_cortex_fpb_ctrl_RegRead(), jtag_cortex_fpb_ctrl_RegWrite(), and jtag_test().

void jtag_cortex_AHB_ReadWordMemory ( uint32_t  address,
int  howmanywords,
uint32_t *  buf 
)

Read out word memory into the given buffer.

Parameters:
address target machine address
howmanywords number of words to read
buf pointer to destination read buffer (memory at server side)
Returns:
-

References AUTO_INCR_SINGLE_AP_CONTROL, DBG_LEVEL_GDB_ARM_INFO, dbgPrintf(), jtag_cortex_AHB_setmodeTar(), jtag_cortex_ApAHB_DataRegRead(), jtag_cotrex_DpRdBuff_RegRead(), transaction::parameter, SIZE_WORD_AHB_AP_CONTROL, transactionActivate(), transactionCreate(), transactionErase(), transactionExecute(), transactionGet(), and transaction::uplevel.

Referenced by jtag_arm_ReadWordMemory(), jtag_cortex_core_ReadCpuRegs(), and jtag_test().

uint32_t jtag_cortex_AHB_ReadWord ( uint32_t  address  ) 
uint32_t jtag_cortex_AHB_ReadHalfword ( uint32_t  address  ) 
uint32_t jtag_cortex_AHB_ReadByte ( uint32_t  address  ) 
void jtag_cortex_AHB_WriteMemoryBuf ( uint32_t  address,
int  howmanywords,
uint32_t *  buf 
)

Write back word memory from the given buffer.

Parameters:
address target machine address (memory at ARM side)
howmanywords number of words to read
buf pointer to source write buffer (memory at server side)
Returns:
-

References AUTO_INCR_SINGLE_AP_CONTROL, DBG_LEVEL_GDB_ARM_INFO, dbgPrintf(), jtag_cortex_AHB_setmodeTar(), jtag_cortex_ApAHB_DataRegWrite(), jtag_eos(), SIZE_WORD_AHB_AP_CONTROL, transactionActivate(), transactionCreate(), transactionErase(), transactionGet(), transactionPenting(), and transaction::uplevel.

Referenced by jtag_arm_WriteMemoryBuf(), jtag_cortex_core_ReadCpuRegs(), and jtag_test().

void jtag_cortex_AHB_WriteWord ( uint32_t  address,
uint32_t  value 
)

write single 32-bit data value to address

Parameters:
address target machine address (memory at ARM side)
value 32 bit value to write
Returns:
-

References AUTO_INCR_OFF_AP_CONTROL, jtag_cortex_AHB_setmodeTar(), jtag_cortex_ApAHB_DataRegWrite(), jtag_eos(), SIZE_WORD_AHB_AP_CONTROL, transactionActivate(), transactionCreate(), transactionErase(), transactionGet(), and transaction::uplevel.

Referenced by jtag_arm_WriteWord(), and jtag_cortex_core_WriteCpuRegs().

void jtag_cortex_AHB_WriteHalfword ( uint32_t  address,
uint16_t  value 
)

16-bit memory write

Parameters:
address target machine address (memory at ARM side)
value 16 bit value to write
Returns:
-

References AUTO_INCR_OFF_AP_CONTROL, jtag_cortex_AHB_setmodeTar(), jtag_cortex_ApAHB_DataRegWrite(), jtag_eos(), SIZE_WORD_AHB_AP_CONTROL, transactionActivate(), transactionCreate(), transactionErase(), transactionGet(), transactionPenting(), and transaction::uplevel.

Referenced by jtag_arm_WriteHalfword().

void jtag_cortex_AHB_WriteByte ( uint32_t  address,
uint16_t  value 
)

Variable Documentation

uint32_t currentAddrIncr = 0 [static]
uint32_t currentSize = 0 [static]
uint32_t currentTar = 0xFFFFffff [static]

This file is part of the documentation for JTAG-GDB Server for ARM .

Generated on Mon Feb 15 21:23:21 2010 by doxygen 1.6.2.