jt_flash_info_st.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "dbg_msg.h"
#include "jt_arm.h"
#include "jt_flash.h"

Functions


Detailed Description

Flash support functions


Function Documentation

static void STR7_PROG_MEM_128K ( void   )  [inline, static]
static void STR7_PROG_MEM_256K ( void   )  [inline, static]
static void STR7_DATA_MEM_16K ( void   )  [inline, static]
static void STR9_PROG_MEM_256K ( void   )  [inline, static]
static void STR9_PROG_MEM_512K ( void   )  [inline, static]
static void STR9_DATA_MEM_32K ( void   )  [inline, static]
static void STM32_LOW_DENSE_PROG_MEM ( int  size  )  [inline, static]
static void STM32_MED_DENSE_PROG_MEM ( int  size  )  [inline, static]
static void STM32_HI_DENSE_PROG_MEM ( int  size  )  [inline, static]
static void STM32_OPTION_MEM ( void   )  [inline, static]
int jt_stflashGetInfo ( uint32_t  base_address,
uint32_t  size,
struct sector **  sector_info 
)

Try to get the Flash info and create a new sector_info if possible. (32-Bit access)
(Embedded flash of STR71x machines or STR91x machines)

Parameters:
base_address flash base address
size byte size of flash
sector_info pointer to target for new sector_info
Returns:
number of flash chips per 32-bit bus (0=not found; 1=one flash)

References DBG_LEVEL_GDB_ARM_INFO, DBG_LEVEL_JTAG_ARM, dbgPrintf(), jt_flash_create_sector_info(), jtag_arm_ReadHalfword(), jtag_arm_ReadWord(), sector::lock, STM32_DBGMCU_IDCODE_ADDR, STM32_DENSE_HI, STM32_DENSE_LOW, STM32_DENSE_MED, STM32_DENSE_MSK, STM32_FLASH_SIZE, STM32_HI_DENSE_PROG_MEM(), STM32_HI_REV_A, STM32_HI_REV_Z, STM32_LOW_DENSE_PROG_MEM(), STM32_LOW_REV_A, STM32_MED_DENSE_PROG_MEM(), STM32_MED_REV_A, STM32_MED_REV_B, STM32_MED_REV_Y, STM32_MED_REV_Z, STM32_MSK_REV, STM32_OPTION_MEM(), STM32_RAM_SIZE, STR7_DATA_MEM_16K(), STR7_PROG_MEM_128K(), STR7_PROG_MEM_256K(), STR9_DATA_MEM_32K(), STR9_PROG_MEM_256K(), and STR9_PROG_MEM_512K().

Referenced by detectFlash().


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.