Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hillami
Level 2
Level 2
10 sign-ins 5 questions asked 5 replies posted

当前问题:  在用户程序运行期间,尝试刷写codeflash(0x11000000-0x1100f000),刷写失败且中断会停止。

 请问可以这样刷写codeflash吗?可以的话,应怎样操作。

0 Likes
1 Solution

谢谢!程序已分区,问题已解决,原因是没关闭codeflash的写保护。

View solution in original post

0 Likes
2 Replies
LinGuohui
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 solutions authored

擦写Flash,必须保证program的flash区域没有被使用。想在程序运行的过程中写Flash,要先给Flash分区。比如代码1执行在0x0x11000000-0x1100f000,代码2执行在0x1100f000 - 0x1101f000,当目前执行代码1时,可以给代码2的flash区域program,但是如果program代码1的flash,会导致程序卡死跑飞或者其故障。

0 Likes

谢谢!程序已分区,问题已解决,原因是没关闭codeflash的写保护。

0 Likes