We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Greetings Experts
I am trying to compile the TEE sample with DS-5. I downloaded the latest version of DS-5, and created a C project. I was able to put in the main_secure.c file and build ok. I then tried to add monitor.s file to the project by adding another source file. I get the following errors:
Would someone please compile the project, and advise in high level what sort of project I need to create and how to import the source files into my project please?
Sean
For debugging, that depends on your platform.
I can show you some key points:
David
The other issue I seem to be running into is there is a gap between the tools, which Qualcomm provides for debugging, and DS-5 tools. What I mean is Qualcomm has a debugger for Snapdragon but it needs Eclipse Juno SR1 package. I successfully installed the debugger on this instance. But this instance, as far as I know, can not compile and run the Hello TZ program. On the other hand DS-5 need OpenCL version 8.2 and above, while Qualcomm debugger only works with OpenCL LLDB Eclipse plugin 2.2.2.201.408200918 and CDT version 4.1.0 - 4.1.2. Please have a look at the enclosed diagram...
I get this error when I try to install the debugger even though CDT should be installed on the DS-5 instance that I have. I have tried to look for a version of DS-5 with Juno version of Eclipse but I have not been successful. If it does exist, and you can help me find it, please let me know. I also tried to see if I can add DS-5 functionality an the right patches to the Juno instance of Eclipse on my machine, but I have not seen anything that indicate such install is possible. Please direct me to it if it does.
I like to thank you so much for your continued support. I did place the secure.bin file on my phone, and tried to run the two files in it. I had to change permissions of the files. Here is what I get:
127|root@hltespr:/storage/emulated/legacy/secure.bin # ./SECURE_EXE
./SECURE_EXE
./SECURE_EXE[1]: ▬☻±É╨ƒσ╙≡!πî╨ƒσ►☼◄ε♦└π☺: not found
./SECURE_EXE[5]: syntax error: '┐x┴√╪R' unexpected
127|root@hltespr:/storage/emulated/legacy/secure.bin # ./NORMAL_IMAGE
./NORMAL_IMAGE
./NORMAL_IMAGE[1]: ⌡♥δPπ÷♥←▀≡!πê╨ƒσ►☼◄ε♦└π☺: not found
./NORMAL_IMAGE[14]: syntax error: '(' unexpected
1|root@hltespr:/storage/emulated/legacy/secure.bin #
Re: The content on Debug Hardware, I did go to DS-5 help documents (DS-5 IDE-> help -> help contents): ARM DS-5 Documentation > ARM DS-5 Debug Hardware > Using the Debug Hardware Configuration Utilities > Creating debug hardware target configurations. But the content does not seem to be very relevant to what I am trying to do. All I have at my disposal is an Android phone model SM-N900P Samsung Note 3 with a USB cable which connects to the laptop. It sounds like ARM DS-5 Debug hardware instructions are for RVI and DSTREAM, which I do not have. I did try to run debug hardware configuration utility, but it does not find any hardware. Did I perhaps miss something?
I think DS-5 can only debug the board when connected with debug interface like: JTAG, SWD.
Please refer to: ARM DS-5 Documentation > ARM DS-5 Debug Hardware > ARM DSTREAM System and Interface Design Reference Guide
I agree. I did review the content, and that is the impression I have. Thank you so much for your help.
Regards-
Hi Sean,
Sorry, I have not used this debugger of Qualcomm.
So maybe you can open a new topic for the usage of debuuger of Qualcomm.
It is ok. I have since found a way to proceed.
Thanks