Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Issue regarding running code on RVDS with cortex A8
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
2 replies
Subscribers
126 subscribers
Views
1309 views
Users
0 members are here
Related
Issue regarding running code on RVDS with cortex A8
Offline
suvir bhargav
over 7 years ago
Note: This was originally posted on 29th March 2010 at http://forums.arm.com
Hi all,
The issue is i'm trying to execute a code,written in NEON instruction set.For example,any code,say a simple for loop calculation.
When i'm step debugging,i found that code gets into infinite loop after going into __fp_init function(This function is called by __main() before program main).
these are my compiler settings:
--arm --debug --cpu=Cortex-A8 --fpu=VFPv3 --fpmode=fast -O1 --no_inline
If i change my --fpu setting to --softfpu than whenever code reaches NEON instruction,it again goes into infinite loop.
One info i found on ARM website is that go for --fpu=VFPv3D32 which is implied NEON registers.
see the link:
[url="
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0133c/index.html
"]
http://infocenter.arm.com/help/index.jsp?t...133c/index.html[/url]
Sadly,this option is not provided in my RVDS 4.0.only close to this option i'm getting is --fpu=VFPv3D16.
Evaluation copy should not be a problem as it includes all option of RVDS 4.0 professional.
Other answer i found is go for vfp initilization code(Application Code 133).Currently,i'm looking into it.let's see.
Even a simple hello world program is not executing with--cpu=Cortex-A8 --fpu=VFPv3,
i hope to find a solution soon.
any help on this would be appreciated.
Regards
Suvir
Offline
suvir bhargav
over 7 years ago
Note: This was originally posted on 30th March 2010 at
http://forums.arm.com
Thanks scott for your such a quick reply.
Your example initialization link was easy to understand and now my code runs perfectly with co-processor enabled.
i compiled the code with cpu=cortex A8 and -fpu=auto(default) and -fpu=VFPv3.its working fine with these options.
Thanks & Regards
Suvir
Cancel
Up
0
Down
Reply
Cancel
Offline
Scott Douglass
over 7 years ago
Note: This was originally posted on 29th March 2010 at
http://forums.arm.com
Both VFP and NEON instructions require coprocessors 10 & 11 to be enabled in the CAR and the EN bit to be set in the FPEXC register -- otherwise they will cause an undefined instruction exception. You don't say what your target is (harware? model?), but if the undefined exception is not caught/handled then it could wind up trying to run your image again (i.e. an infinite loop).
When building for --fpu=vfp* (which is the default with --cpu=Cortex-A8) the runtime library in __fp_init() will initialize the FPEXC register, but the OS or VFP support code is responsible for enabling coprocessors 10 & 11 the CAR.
For an example of initializing all of this "by hand" see this example code [url="
http://infocenter.arm.com/help/topic/com.arm.doc.dui0205i/BGBEJBCF.html
"]
http://infocenter.arm.com/help/topic/com.arm.doc.dui0205i/BGBEJBCF.html[/url]
Cancel
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Forum FAQs
0
ARM Community
4234
views
0
replies
Started
3 months ago
by
Annie Cracknell: Back on the 8th! :)
Answered
make: *** [CORTEX_A9_Cyclone_V_SoC_DK/Altera_Code/SoCSupport/subdir.mk:29: CORTEX_A9_Cyclone_V_SoC_DK/Altera_Code/SoCSupport/cache_support.o] Error 1
0
126
views
1
reply
Latest
2 days ago
by
Andy Neil
Suggested Answer
Would you be interested in a VScode extension to handle ARM toolchain?
0
2150
views
1
reply
Latest
3 days ago
by
kuzulis
Answered
ds-5 community edition request link
+1
559
views
4
replies
Latest
4 days ago
by
alexsunny123
Not Answered
Getting errors after including arm_math.h
0
stm32 h7
Keil
Digital Signal Processor (DSP)
STM32
28591
views
10
replies
Latest
7 days ago
by
Annie Cracknell: Back on the 8th! :)
>
View all questions in Arm Development Studio forum