API 手册里面这么写的,
3.1.1 Fapi_initializeAPI()
Initializes the Flash API
Synopsis
Fapi_StatusType Fapi_initializeAPI(
Fapi_FmcRegistersType *poFlashControlRegister,
uint32 u32HclkFrequency)
Parameters
poFlashControlRegister [in] Pointer to the Flash Memory Controller Registers' base address
u32HclkFrequency [in] System clock frequency in MHz
那分别对CPU1 和 CPU2 这个FMC 的寄存器基地址是多少啊?
user6049953:从Map 文件来看, 应该是:
#define F021_CPU0_REGISTER_ADDRESS 0x0005F800;
FLASH0_CTRL0005f80000000300000001820000017eRWIX
对于CPU1 和 CPU2 应该都是这个;
API 手册里面这么写的,
3.1.1 Fapi_initializeAPI()
Initializes the Flash API
Synopsis
Fapi_StatusType Fapi_initializeAPI(
Fapi_FmcRegistersType *poFlashControlRegister,
uint32 u32HclkFrequency)
Parameters
poFlashControlRegister [in] Pointer to the Flash Memory Controller Registers' base address
u32HclkFrequency [in] System clock frequency in MHz
那分别对CPU1 和 CPU2 这个FMC 的寄存器基地址是多少啊?
Susan Yang:是的,您的理解是对的
/*!\brief Define to map the direct access to the FMC registers.
*/
#define F021_CPU0_REGISTER_ADDRESS 0x0005F800