Flash容量设置错误致使的No Algorithm found for: 08020000H – 08024FD3H

Keil程序添加新代码后下载到板子上没法运行,download时有以下提示信息函数

No Algorithm found for: 08020000H - 08024FD3H
Partial Erase Done (areas with no algorithms skipped!)
No Algorithm found for: 08020000H - 08024FD3H
Partial Programming Done (areas with no algorithms skipped!)
Partial Verify OK (areas with no algorithms skipped!)
去掉部分函数以后正常,从提示信息上看彷佛是代码超出flash范围了,查看bin文件发现只有130KB左右,还没到芯片的256KB,看来是设定的问题,最后找到optins for target “xxx”->Debug->Jlink->Settings->Flash Download,此处设置的是128KB,删除128KB的选项,添加新的256KB,问题解决。