ROM api nor flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ROM api nor flash

138 次查看
sandeepc
Contributor IV

Winbond flash:W25Q64JVSSIQ

SDK version: 2.14.0

Controller: MImxrt1170

IDE version: 

MCUXpresso IDE v11.8.0 [Build 1165] [2023-07-26]

 

We are developing custom boot loader for one of our application.

i tried with importing nor flash example it works only when i link complete application to RAM.

sandeepc_0-1714459440295.png

 

without linking if i call getting below error

static serial_nor_config_option_t option = {

.option0.U = 0xc0000007U,

.option1.U = 0U,

};

status = ROM_FLEXSPI_NorFlash_GetConfig(FlexSpiInstance, &norConfig, &option);

 

sandeepc_0-1714461974695.png

 

We are trying to call ROM APIs to erase/write to same flash memory from which code is executing.
In this scenario, are we supposed to call ROM APIs only from RAM, or can it be called from main application running from flash (QSPI)?
If ROM APIs can be called from flash, can you please provide a example?

 

@kerryzhou

@diego_charles  

0 项奖励
回复
0 回复数