MCU: s32k118
compiler: GNU C
Compiler IDE: S32DS PEMicro
When I click "debug" button, the follow error occur, debug configuration is in the attachment
can you help me solve this problem?
Debugger Console show the following information
GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
monitor selectcore 0
continue
Continuing.
Temporary breakpoint 1, 0x00023398 in main ()
No breakpoint number 2.
Hi@liuxing_hu
After referring to some of the answers, I feel that it is still a problem of project configuration. If the first answer does not solve your problem, you can send me your DEMO project and I will test it for you. Please let me know if there is any progress.
BR,
Jim.
Hi@liuxing_hu
Is this your first time using it? Have you tried the official routines to run successfully? There are some official routines in the IDE. You can use the official routines to troubleshoot your project configuration errors.
Here is my Debug Information.
If the official routine does not run successfully, it may be a problem with your OpenSDA, then you can refer to this answer.
BR!
Jim.
Hello Jim
this is a project created by other colleagues, I just used it.
Maybe you miss my attachment, my debug is Multilink, not OpenSDA
by the way, how to use the official routines to troubleshoot project configuration errors ?
Hi.
工程属性里面,截图如下。
我意思最简单的方法是,你先编写调试好最简单的一个demo程序,这个工程已经能够正常调试下载,然后再把你同事的工程文件一个一个移值进去。我这边没有PE,但是其实OpenSDA调试器是集成了PE的功能的,应该是一样的 ,PE和OpenSDA其实一样的,一家公司的。
之前一个人提问的答案,发给你也参考一下。
BR!
Jim.
Hi,
是的,你需要把每个引脚从新分配一下(中断什么的也要好好对照一下,以免你没配置),时钟什么的都需要注意下,剩下的模块一个一个对着抄就可以。
他是不是给你的不是工程导出的压缩包阿,感觉直接copy过来的吧,你让它导出工程给你,这样路径不会出错。导出流程是:点击工程,右键export,剩下的选Archive File就是导出压缩包,这样copy过去,再用import进来,一般就不会有什么路径的问题。
多尝试熟悉一下IDE使用吧,要不然后面还是会遇到相似的问题,逃不过去的。
非常感谢你的回复,我也愿意花时间去配置,但我不知道从何开始,没有一个教程指导我一开始应该创建一个什么样的demo工程才能满足我的需求,我尝试去创建下图的example工程,可是编译过程中不断的报错,一开始是报main.c中的cpu.h找不到,等我把原工程里的cpu.h拷贝进去又报cpu.h里的一个头文件找不到,反正就是各种文件找不到,所以我就block住了,不知道怎么开始搭建一个简单的可以debug的工程,方便加微信帮忙吗?13147196344
Hi.
好吧,看来你之前没用过这个IDE,网上这个教程我看了有很多的,这里我不方便贴上第三方参考链接,你搜索S32K DS 教程有很多手把手教你配置的文章,我们工作环境用不了微信,在IDE路径下面也有入门的help文档,这是我的路径C:\NXP\S32DS_ARM_v2018.R1\S32DS\help\pdf。
example工程完全不需要你自己手动添加文件之类的,你可能没有生成配置,导入以后,点击Generate一下,直接编译就ok了。