Skip to content

IMXRT1170 crashing during flash erase #79411

Discussion options

You must be logged in to vote

Hi @danielb-tkjcy3rq ,
From what you have shared, it does sound like the CM4 is accessing flash during the erase operation, which will cause problems. As you found when XIPing, the FlexSPI driver does lock IRQs during a flash erase/program operation. The driver jumps to RAM and waits there until the operation completes. It locks IRQs to prevent any XIP or flash reads during that operation. But with multiple cores, the app would also need to ensure other cores do not access the flash at that same time.

I realize the CM4 executes from RAM. But is it reading something from flash somewhere? It may not be executable code, a const struct in flash shared with the CM7 would cause issues. I think …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danielb-tkjcy3rq
Comment options

Answer selected by DerekSnell
Comment options

You must be logged in to vote
1 reply
@danielb-tkjcy3rq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment