MINI58_BSP V3.01.005
The Board Support Package for Mini58 Series MCU
Modules | Macros | Variables
FMC Exported Constants
Collaboration diagram for FMC Exported Constants:

Modules

 FMC Exported Functions
 

Macros

#define FMC_APROM_BASE   0x00000000UL
 
#define FMC_APROM_END   0x00008000UL
 
#define FMC_LDROM_BASE   0x00100000UL
 
#define FMC_LDROM_END   0x00100A00UL
 
#define FMC_SPROM_BASE   0x00200000UL
 
#define FMC_SPROM_END   0x00200200UL
 
#define FMC_CONFIG_BASE   0x00300000UL
 
#define FMC_FLASH_PAGE_SIZE   0x200
 
#define FMC_LDROM_SIZE   0xA00
 
#define FMC_SPROM_SIZE   0x200
 
#define FMC_TIMEOUT_READ
 
#define FMC_TIMEOUT_WRITE
 
#define FMC_TIMEOUT_ERASE
 
#define FMC_TIMEOUT_CHKSUM
 
#define FMC_ISPCMD_READ   0x00
 
#define FMC_ISPCMD_READ_UID   0x04
 
#define FMC_ISPCMD_READ_CID   0x0B
 
#define FMC_ISPCMD_READ_PID   0x0C
 
#define FMC_ISPCMD_READ_CRC32   0x0D
 
#define FMC_ISPCMD_PROGRAM   0x21
 
#define FMC_ISPCMD_PAGE_ERASE   0x22
 
#define FMC_ISPCMD_CAL_CRC32   0x2D
 
#define FMC_ISPCMD_VECMAP   0x2E
 

Variables

int32_t g_FMC_i32ErrCode
 

Detailed Description

Macro Definition Documentation

◆ FMC_APROM_BASE

#define FMC_APROM_BASE   0x00000000UL

APROM Base Address

Definition at line 34 of file fmc.h.

◆ FMC_APROM_END

#define FMC_APROM_END   0x00008000UL

APROM End Address

Definition at line 35 of file fmc.h.

◆ FMC_CONFIG_BASE

#define FMC_CONFIG_BASE   0x00300000UL

CONFIG Base Address

Definition at line 40 of file fmc.h.

◆ FMC_FLASH_PAGE_SIZE

#define FMC_FLASH_PAGE_SIZE   0x200

Flash Page Size (512 Bytes)

Definition at line 42 of file fmc.h.

◆ FMC_ISPCMD_CAL_CRC32

#define FMC_ISPCMD_CAL_CRC32   0x2D

ISP Command: Run CRC32 checksum calculation

Definition at line 62 of file fmc.h.

◆ FMC_ISPCMD_PAGE_ERASE

#define FMC_ISPCMD_PAGE_ERASE   0x22

ISP Command: Page Erase Flash

Definition at line 61 of file fmc.h.

◆ FMC_ISPCMD_PROGRAM

#define FMC_ISPCMD_PROGRAM   0x21

ISP Command: Program Flash

Definition at line 60 of file fmc.h.

◆ FMC_ISPCMD_READ

#define FMC_ISPCMD_READ   0x00

ISP Command: Read Flash

Definition at line 55 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_CRC32

#define FMC_ISPCMD_READ_CRC32   0x0D

ISP Command: Read CRC32 checksum

Definition at line 59 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 56 of file fmc.h.

◆ FMC_ISPCMD_VECMAP

#define FMC_ISPCMD_VECMAP   0x2E

ISP Command: Vector Page Remap

Definition at line 63 of file fmc.h.

◆ FMC_LDROM_BASE

#define FMC_LDROM_BASE   0x00100000UL

LDROM Base Address

Definition at line 36 of file fmc.h.

◆ FMC_LDROM_END

#define FMC_LDROM_END   0x00100A00UL

LDROM End Address

Definition at line 37 of file fmc.h.

◆ FMC_LDROM_SIZE

#define FMC_LDROM_SIZE   0xA00

LDROM Size (2 Kbytes)

Definition at line 43 of file fmc.h.

◆ FMC_SPROM_BASE

#define FMC_SPROM_BASE   0x00200000UL

SPROM Base Address

Definition at line 38 of file fmc.h.

◆ FMC_SPROM_END

#define FMC_SPROM_END   0x00200200UL

SPROM End Address

Definition at line 39 of file fmc.h.

◆ FMC_SPROM_SIZE

#define FMC_SPROM_SIZE   0x200

SPROM Size (512 bytes)

Definition at line 44 of file fmc.h.

◆ FMC_TIMEOUT_CHKSUM

#define FMC_TIMEOUT_CHKSUM

Get checksum command time-out 2 s

Definition at line 49 of file fmc.h.

◆ FMC_TIMEOUT_ERASE

#define FMC_TIMEOUT_ERASE

Erase command time-out 200 ms

Definition at line 48 of file fmc.h.

◆ FMC_TIMEOUT_READ

#define FMC_TIMEOUT_READ

Read command time-out 100 ms

Definition at line 46 of file fmc.h.

◆ FMC_TIMEOUT_WRITE

#define FMC_TIMEOUT_WRITE

Write command time-out 100 ms

Definition at line 47 of file fmc.h.

Variable Documentation

◆ g_FMC_i32ErrCode

int32_t g_FMC_i32ErrCode
extern

Definition at line 30 of file fmc.c.