| Nano103 BSP V3.01.002 The Board Support Package for Nano103 Series

Macros
FMC Exported Constants
NANO103 Device Driver » FMC Driver

## Macros
#define | FMC_APROM_BASE 0x00000000UL
#define | FMC_APROM_END 0x00010000UL
#define | FMC_LDROM_BASE 0x00100000UL
#define | FMC_LDROM_END 0x00101200UL
#define | FMC_CONFIG_BASE 0x00300000UL
#define | FMC_KPROM_BASE 0x00301000UL
#define | FMC_FLASH_PAGE_SIZE 0x200
#define | FMC_PAGE_ADDR_MASK 0xFFFFFE00UL
#define | FMC_LDROM_SIZE 0x1200
#define | FMC_ISPCMD_READ 0x00
#define | FMC_ISPCMD_PROGRAM 0x21
#define | FMC_ISPCMD_PAGE_ERASE 0x22
#define | FMC_ISPCMD_READ_CID 0x0B
#define | FMC_ISPCMD_READ_PID 0x0C
#define | FMC_ISPCMD_READ_UID 0x04
#define | FMC_ISPCMD_RUN_CKS 0x2D
#define | FMC_ISPCMD_READ_CKS 0x0D
#define | FMC_ISPCMD_RUN_ALL1 0x28
#define | FMC_ISPCMD_READ_ALL1 0x08
#define | FMC_ISPCMD_VECMAP 0x2E
#define | IS_BOOT_FROM_APROM 0
#define | IS_BOOT_FROM_LDROM 1
#define | READ_ALLONE_YES 0xA11FFFFF
#define | READ_ALLONE_NOT 0xA1100000
#define | READ_ALLONE_CMD_FAIL 0xFFFFFFFF

## Detailed Description

## Macro Definition Documentation

## ◆ FMC_APROM_BASE

#define FMC_APROM_BASE 0x00000000UL

APROM Base Address

Definition at line 38 of file fmc.h.

## ◆ FMC_APROM_END

#define FMC_APROM_END 0x00010000UL

APROM End Address

Definition at line 39 of file fmc.h.

## ◆ FMC_CONFIG_BASE

#define FMC_CONFIG_BASE 0x00300000UL

User Configuration Address

Definition at line 42 of file fmc.h.

## ◆ FMC_FLASH_PAGE_SIZE

#define FMC_FLASH_PAGE_SIZE 0x200

Flash Page Size (512 bytes)

Definition at line 45 of file fmc.h.

## ◆ FMC_ISPCMD_PAGE_ERASE

#define FMC_ISPCMD_PAGE_ERASE 0x22

ISP Command: Page Erase Flash

Definition at line 56 of file fmc.h.

## ◆ FMC_ISPCMD_PROGRAM

#define FMC_ISPCMD_PROGRAM 0x21

ISP Command: Write flash word

Definition at line 55 of file fmc.h.

## ◆ FMC_ISPCMD_READ

#define FMC_ISPCMD_READ 0x00

ISP Command: Read flash word

Definition at line 54 of file fmc.h.

## ◆ FMC_ISPCMD_READ_ALL1

#define FMC_ISPCMD_READ_ALL1 0x08

ISP Command: Read all-one result

Definition at line 63 of file fmc.h.

## ◆ FMC_ISPCMD_READ_CID

#define FMC_ISPCMD_READ_CID 0x0B

ISP Command: Read Company ID

Definition at line 57 of file fmc.h.

## ◆ FMC_ISPCMD_READ_CKS

#define FMC_ISPCMD_READ_CKS 0x0D

ISP Command: Read checksum

Definition at line 61 of file fmc.h.

## ◆ FMC_ISPCMD_READ_PID

#define FMC_ISPCMD_READ_PID 0x0C

ISP Command: Read Product ID

Definition at line 58 of file fmc.h.

## ◆ FMC_ISPCMD_READ_UID

#define FMC_ISPCMD_READ_UID 0x04

ISP Command: Read Unique ID

Definition at line 59 of file fmc.h.

## ◆ FMC_ISPCMD_RUN_ALL1

#define FMC_ISPCMD_RUN_ALL1 0x28

ISP Command: Run all-one verification

Definition at line 62 of file fmc.h.

## ◆ FMC_ISPCMD_RUN_CKS

#define FMC_ISPCMD_RUN_CKS 0x2D

ISP Command: Run checksum calculation

Definition at line 60 of file fmc.h.

## ◆ FMC_ISPCMD_VECMAP

#define FMC_ISPCMD_VECMAP 0x2E

ISP Command: Vector Page Remap

Definition at line 64 of file fmc.h.

## ◆ FMC_KPROM_BASE

#define FMC_KPROM_BASE 0x00301000UL

Security ROM base address

Definition at line 43 of file fmc.h.

## ◆ FMC_LDROM_BASE

#define FMC_LDROM_BASE 0x00100000UL

LDROM Base Address

Definition at line 40 of file fmc.h.

## ◆ FMC_LDROM_END

#define FMC_LDROM_END 0x00101200UL

LDROM End Address

Definition at line 41 of file fmc.h.

## ◆ FMC_LDROM_SIZE

#define FMC_LDROM_SIZE 0x1200

LDROM Size (4.5 Kbytes)

Definition at line 48 of file fmc.h.

## ◆ FMC_PAGE_ADDR_MASK

#define FMC_PAGE_ADDR_MASK 0xFFFFFE00UL

Flash page address mask

Definition at line 46 of file fmc.h.

## ◆ IS_BOOT_FROM_APROM

#define IS_BOOT_FROM_APROM 0

Is booting from APROM

Definition at line 66 of file fmc.h.

## ◆ IS_BOOT_FROM_LDROM

#define IS_BOOT_FROM_LDROM 1

Is booting from LDROM

Definition at line 67 of file fmc.h.

## ◆ READ_ALLONE_CMD_FAIL

#define READ_ALLONE_CMD_FAIL 0xFFFFFFFF

Check-all-one command failed.

Definition at line 71 of file fmc.h.

## ◆ READ_ALLONE_NOT

#define READ_ALLONE_NOT 0xA1100000

Check-all-one result is not all one.

Definition at line 70 of file fmc.h.

## ◆ READ_ALLONE_YES

#define READ_ALLONE_YES 0xA11FFFFF

Check-all-one result is all one.

Definition at line 69 of file fmc.h.