Hello ,
I have used same program. for K344, it's OK to jump from bootloader to APP. But when I used same way to test K311. it doesn't jump. Could you give some suggestion? Thanks.
已解决! 转到解答。
Ok, it jumps to the application. But it fails on ITCM initialization. I found that it's caused by MPU configuration - ITCM is obviously protected against write. If I clear ENABLE bit in core register MPU_CTRL, it works. So, you should deinit also the MPU before the jump.
Regards,
Lukas
Hi @scott071209
if you step the asm code, where does it fail exactly? Can you see if correct address is used for jump?
Regards,
Lukas
I'm afraid the attached projects do not correspond to your screenshot. I loaded them to my board and I can see:
Which leads to this after the jump:
... as expected considering the value in appEntry.
Regards,
Lukas
Ok, it jumps to the application. But it fails on ITCM initialization. I found that it's caused by MPU configuration - ITCM is obviously protected against write. If I clear ENABLE bit in core register MPU_CTRL, it works. So, you should deinit also the MPU before the jump.
Regards,
Lukas
Dear,
I want to know how to confirm ITCM initialization fail. I check attachment picture. there is no fault.
Also please tell why ITCM initialization fail will have an effect on jump? Thanks.