Unable to erase image slot using mcuboot serial command. #50436
-
Hello Platform: NXP mimxrt1060 uart:~$ mcuboot erase 1 When i use mcumgr via udp everything works. Could you help me? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @CreativeIndustryAg , You mention using a custom DFU. Are there some simple steps to replicate this issue on the mimxrt1060_evk board? The usage fault is triggered by an undefined instruction. That means the opcode fetched from memory is invalid. And it reports the faulting instruction address is at 0x5C6, which is in ITCM RAM. Since code must be copied to ITCM, is there valid executable code located there? Have you already tried using a debugger and stepping through the code to see what leads up to this fault? Best regards |
Beta Was this translation helpful? Give feedback.
-
@DerekSnell OZone debug call stack:
I still can't find where is the problem is and i can't reproduce it on samples. |
Beta Was this translation helpful? Give feedback.
-
Hi @CreativeIndustryAg , Let us know what you find |
Beta Was this translation helpful? Give feedback.
Hi @CreativeIndustryAg ,
I see the bus fault occurs in the FlexSPI driver when writing to flash. If you are eXecuting-in-Place (XiP) from that flash while you are also writing to it, the FlexSPI driver should jump to code in ITCM, so it is not XIPing while erasing/writing the flash. I wonder if your ADC reading or interrupt is trying to jump and XIP from flash during the flash write. The app will not be able to execute from flash during those times, and that includes ISRs. So that is where I would focus to troubleshoot this.
Let us know what you find