请问DS-5下如何创建一个简单的HelloWorld工程,并进行Debug? 工程中需要添加哪些文件,Debug Configuration中需要设置哪些东西?
Open DS-5 IDE
1) Click on 'Select archive file'.
2) Click on 'Browse' and locate the 'Bare-metal_examples_ARMv8.zip' file.
3) Click on 'Open' to open the archive file and close the dialog box. The Projects panel is populated with a list of all the example projects.
4) Select the required projects.any one the threes projects is ok
After import, then go to Project->build all, you will get the binary
This is a standard example, you can refer to this project to build your own one
Thank you for your help!
I could Debug the standard example project in DS5 some days ago,but now I want to build my own project like "HelloWorld".Because I can use arm compiler5 to build my own project in DS-5 IDE and Debugging it is OK. But when i Debug my own project using arm compiler6 ,it has an error,(ERROR(TAB180): The semihosting breakpoint address has not been specified). There is only a main.c in the project. Does I need to add scatter.scat file and startup.s flie to the project? Or, should I amend some configuration for the Debugger?
Best wishes!
yes, you should, because the app is running with FVP, which need be configured before runing, you can use your main.c replace the example one
Although DS-5 shows that error: ERROR(TAB180), the FVP model will still be able to handle semihosting instead as far as I can tell:
You can ignore this error message by telling DS-5 Debugger not to enable semihosting using a .ds script and: set semihosting enabled off
set semihosting enabled off
Yes, you are right. I has found the mistake that I select the error target (VE-AEMv8×4).So,if we want to Debug our own project successfully,we need to do:1)select the true target:VE-AEMv8×1; 2) modify the "RO base address" in ARM Linker->Image LayOut;
I hope I can get help from you later!
Best wishes! Thank you again!
多谢zhangzheng兄,非常赞的回答。 下次能否帮忙写中文,更多中国用户能看懂,呵呵,谢谢
你好 我想用scanf语句,建一个简单的输入的加法程序 ,但是好像不起作用,我该怎么办?