#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 PHILIPS_128K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_philipsflashGetInfo().
static void PHILIPS_256K | ( | void | ) | [inline, static] |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), and MAX_FLASH_INFO_STRING_LEN.
Referenced by jt_philipsflashGetInfo().
int jt_philipsflashGetInfo | ( | 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 LPC 210x machines)
base_address | flash base address | |
size | byte size of flash | |
sector_info | pointer to target for new sector_info |
References DBG_LEVEL_JTAG_ARM, dbgPrintf(), jt_flash_create_sector_info(), sector::lock, PHILIPS_128K(), and PHILIPS_256K().
Referenced by detectFlash().