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 ?
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.
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?
Hi,
Not yet, currently we have no other sepcific example.
About booloader to jump application, please refer to
https://spsdk.readthedocs.io/en/latest/examples/general/sdp_mboot.html
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.
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