Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Settings for RVDS 4.0 with ARM Cortex-A8 Processor
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
3057 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Settings for RVDS 4.0 with ARM Cortex-A8 Processor
divya m
over 12 years ago
Note: This was originally posted on 20th May 2009 at
http://forums.arm.com
Hi everyone,
I am new to RVDS 4.0. I am able to run a simple application like addition with other processors (ARM11).
#include <stdio.h>
int main()
{
float a,b,c;
a = 1.3; b = 2.6;
c = a+b;
printf("c = %f\n",c);
}
But, when i compile and run the same application for ARM Cortex-A8, its going to infinite loop.
################################################################################
##
Compiler Settings:
--arm --debug --cpu=Cortex-A8 --fpu=VFPv3 --fpmode=ieee_fixed -O1 --vectorize
Assembler Settings:
--arm -g --cpu=Cortex-A8 --fpu=VFPv3 --fpmode=ieee_fixed
Linker Settings:
--cpu=Cortex-A8 --fpu=VFPv3 --fpmode=ieee_fixed
################################################################################
##
*******************************
In RV Debbuer, i connected the target to ARM Cortex-A8. Its mode is set to SVC mode by default.
After loading the image, the Log window shows these messages:
Workspace: Opening Connections...
Workspace: connect "ARM_Cortex-A8_0@ISSM"
Attached to stopped device
Workspace: Init/Open done.
Warning: 88 registers defined for this core are not available from the target.
*******************************
*******************************************************
If the stop the program in between i observe the following instructions.
S:00000818 00000000 ANDEQ r0,r0,r0
S:0000081C 00000000 ANDEQ r0,r0,r0
S:00000820 00000000 ANDEQ r0,r0,r0
S:00000824 00000000 ANDEQ r0,r0,r0
S:00000828 00000000 ANDEQ r0,r0,r0
S:0000082C 00000000 ANDEQ r0,r0,r0
S:00000830 00000000 ANDEQ r0,r0,r0
S:00000834 00000000 ANDEQ r0,r0,r0
S:00000838 00000000 ANDEQ r0,r0,r0
S:0000083C 00000000 ANDEQ r0,r0,r0
*******************************************************
Can u any one please help me to solve this problem.
Thanks in Advance
Divya
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 27th May 2009 at
http://forums.arm.com
I suspec the FPU is the cause...
When building for a FPU the generated code will assume the FPU is enabled (and correctly) configurred before you reach the C library initialization. The FPU is disabled out of reset, so it is up to the reset handler
As I'm guessing you don't have a reset handler the FPU will still be disabled when you reach the C library init. The C library init tries to access the FPU, fails and takes an exception. So you end up executing junk.
Try building with "--cpu 7-A" or using the below link to set up the FPU:
[url="
http://infocenter.arm.com/help/topic/com.arm.doc.dai0098a/index.html
"]
http://infocenter.arm.com/help/topic/com.a...098a/index.html[/url]
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 27th May 2009 at
http://forums.arm.com
I suspec the FPU is the cause...
When building for a FPU the generated code will assume the FPU is enabled (and correctly) configurred before you reach the C library initialization. The FPU is disabled out of reset, so it is up to the reset handler
As I'm guessing you don't have a reset handler the FPU will still be disabled when you reach the C library init. The C library init tries to access the FPU, fails and takes an exception. So you end up executing junk.
Try building with "--cpu 7-A" or using the below link to set up the FPU:
[url="
http://infocenter.arm.com/help/topic/com.arm.doc.dai0098a/index.html
"]
http://infocenter.arm.com/help/topic/com.a...098a/index.html[/url]
Cancel
Vote up
0
Vote down
Cancel
Children
No data