How to deinit flash on MIMXRT1010 ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to deinit flash on MIMXRT1010 ?

228件の閲覧回数
Omar_hong
Contributor II

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 返答(返信)

208件の閲覧回数
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 件の賞賛
返信

190件の閲覧回数
Omar_hong
Contributor II

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 件の賞賛
返信

162件の閲覧回数
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 件の賞賛
返信

146件の閲覧回数
Omar_hong
Contributor II

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 件の賞賛
返信

129件の閲覧回数
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 件の賞賛
返信