PK3Err0040: The target device is not ready for debugging. Please check your configuration bit settin
2017-04-09 01:10
411 查看
刚刚买了一块PIC单片机,在线调试时出现这样的错误提示:“PK3Err0040: The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding.”,调了一下午没找到问题,刚刚才把问题找出来。
解决问题:在配置位都配置正确下,也就是程序能在编程模式下,烧到单片机上,单片机能跑起来,如点一个LED,LED能在开发板上跑起来。在编程模式下程序能跑起来后,到调试模式里,点击任务栏上的“Debugger”-->“Select Tool”-->"PICkit 3",把“Release”改为“Debug”,下面就是重点,[b]把程序再重新编译一次,点击“Debugger”-->"Program"把调试程序下载到单片机里面,[/b]再在线调试,看,是不是能调试了,哈哈哈。
有的时候,断点由红色变成黄色的断点,双击它也不会消失,怎么办,在你所打断点的文件里面,单击右键,弹出一个对话框上面有一项“Breakpoints”,点击进入它的子菜单,点击“Remove all Breakpoints”,即可把黄色断点去掉。再重新设置新的断点就是红色的了。
解决问题:在配置位都配置正确下,也就是程序能在编程模式下,烧到单片机上,单片机能跑起来,如点一个LED,LED能在开发板上跑起来。在编程模式下程序能跑起来后,到调试模式里,点击任务栏上的“Debugger”-->“Select Tool”-->"PICkit 3",把“Release”改为“Debug”,下面就是重点,[b]把程序再重新编译一次,点击“Debugger”-->"Program"把调试程序下载到单片机里面,[/b]再在线调试,看,是不是能调试了,哈哈哈。
有的时候,断点由红色变成黄色的断点,双击它也不会消失,怎么办,在你所打断点的文件里面,单击右键,弹出一个对话框上面有一项“Breakpoints”,点击进入它的子菜单,点击“Remove all Breakpoints”,即可把黄色断点去掉。再重新设置新的断点就是红色的了。
相关文章推荐
- Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
- phpMyAdmin-Error:The mbstring extension is missing. Please check your PHP configuration.
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- the apk for your currently selected variant(app-release-unsigned.apk)is not signed.Please specity a
- phpmyadmin提示:The mbstring extension is missing. Please check your PHP configuration.
- 解决configure: error: Cannot find pam headers. Please check if your system is ready for pam module development
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- Theserver is not reeady for publishing.Please check if the Publishing Tools on the serverare started
- The mbstring extension is missing. Please check your PHP configuration.
- Oracle EBS R12.0.6 - XXX is not a valid responsibility for the current user. Please contact your Sys
- 解决:phpMyAdmin:The mbstring extension is missing. Please check your PHP configuration
- Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co
- phpMyAdmin - Error(The mbstring extension is missing. Please check your PHP configuration.)
- 解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co
- ubuntu install problem the configuration defaults for gnome power manager have not been installed correctly,please contact your
- The mbstring extension is missing. Please check your PHP configuration.
- php学习日志(4)-The mbstring extension is missing. Please check your PHP configuration错误及解决方法
- Device Checks for ASM Fails with PRVF-5150: Path ORCL: is not a valid path(1210863.1)