#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "dbg_msg.h"
#include "jt_arm.h"
#include "jt_flash.h"
Flash support functions
static void STR7_PROG_MEM_128K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STR7_PROG_MEM_256K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STR7_DATA_MEM_16K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STR9_PROG_MEM_256K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STR9_PROG_MEM_512K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STR9_DATA_MEM_32K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STM32_LOW_DENSE_PROG_MEM | ( | int | size | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STM32_MED_DENSE_PROG_MEM | ( | int | size | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STM32_HI_DENSE_PROG_MEM | ( | int | size | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
static void STM32_OPTION_MEM | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_stflashGetInfo().
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)
base_address | flash base address | |
size | byte size of flash | |
sector_info | pointer to target for new sector_info |
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().