How to deinit flash on MIMXRT1010 ?

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

How to deinit flash on MIMXRT1010 ?

1,573 次查看
Omar_hong
Contributor IV

Hi NXP ,

   I was use MIMXRT1010  to develop bootloader jump to application project .

 Because we need to decidethe jump address, we need to read the flash data.it seems that it can't jump normally after initialized flash . I have try to find out deinit flash function in SDK, but it seem only have initialized flash function.

Could you please provide deinit flash function sample code ,or in which SDK sample project ?

0 项奖励
回复
5 回复数

1,553 次查看
Sam_Gao
NXP Employee
NXP Employee

Hi @Omar_hong 

1. About booloader, please refer to 'bootloader/flashloader' example.

2. About 'flash_init or flash_deinit', please refer to ’evkmimxrt1010_flash_component_nor‘ example, you can find 'Nor_Flash_Init  or 'Nor_Flash_DeInit functions from nor_flash/fsl_flexspi_nor_flash.c file.

0 项奖励
回复

1,535 次查看
Omar_hong
Contributor IV

Hi @Sam_Gao 

1. About booloader, please refer to 'bootloader/flashloader' example.

=>This sample program does not meet our requirements; it is a sample that runs in RAM.

2. About 'flash_init or flash_deinit', please refer to ’evkmimxrt1010_flash_component_nor‘ example, you can find 'Nor_Flash_Init  or 'Nor_Flash_DeInit functions from nor_flash/fsl_flexspi_nor_flash.c file.

=>In "Nor_Flash_DeInit, only SoftwareReset is performed. We have tried successfully executing the jump address before performing "Nor_Flash_Init", but once Nor_Flash_Init is done, the jump address function fails.
Therefore, we tried deinitializing the flash, but after Nor_Flash_DeInit, the jump address still does not work."

Could you provide us with an example for this situation?

0 项奖励
回复

1,507 次查看
Sam_Gao
NXP Employee
NXP Employee

Hi,

Not yet, currently we have no other sepcific example.

About booloader to jump application, please refer to 

https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Can-flashloader-load-an-application-in-RAM/m-p/1... 

https://spsdk.readthedocs.io/en/latest/examples/general/sdp_mboot.html 

0 项奖励
回复

1,491 次查看
Omar_hong
Contributor IV

Hi NXP , @Sam_Gao ,

        We are currently able to use the jump address function correctly.   The main issue lies in the incompatibility between NXP's flash driver and the jump address. If the flash is not initialized(Nor_Flash_Init), the jump address function works fine, but it fails after initializing the flash. The deinitialization function provided in the NXP SDK seems to have no effect(Nor_Flash_DeInit).


    Therefore, what we need is a correct and effective method for flash deinitialization, not the approach for the jump address.

0 项奖励
回复

1,474 次查看
Sam_Gao
NXP Employee
NXP Employee

Hi,

'If the flash is not initialized(Nor_Flash_Init), the jump address function works fine, but it fails after initializing the flash. The deinitialization function provided in the NXP SDK seems to have no effect(Nor_Flash_DeInit).'

--> Would you please clarify which examples or code line about the functions or source code from NXP?

It's better to clairfy more details with trace log and code comments so that we can get point to support you better.

 

B.R,

Sam

 

 

0 项奖励
回复