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
Pelion IoT Platform
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
LDM for ARMv6 with RVDS 2.2.1
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
2 replies
Subscribers
127 subscribers
Views
1446 views
Users
0 members are here
Related
LDM for ARMv6 with RVDS 2.2.1
Offline
Naresh Sharma
over 7 years ago
Note: This was originally posted on 30th July 2010 at http://forums.arm.com
Hi All,
I'm trying to use LDM for ARMv6 with RVDS 2.2.1 (AXD 1.3.1 build 98) for unaligned memory access. Processor is ARM1136J-S for both build and AXD debug.
However, LDM results in data abort exception. LDR does not exhibit this error.
My questions are
1. Is it ARMv6 feature/ known-behaviour for LDM or is it RVDS 2.2.1/AXD 1.3.1 bug?
2. I see some usage of LDR/ LDM with dest register same as source register. I was wondering how ARM takes care to access the memory location from one register and then write data to the same register! I'm concerned with data-path to and fro the register. Any insights?
Thank you for all help and guidance,
Naresh
Parents
Offline
Martin Weidmann
over 7 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
I had thought that AXD did not have ARM11 support, but its a long time since I last used it. Anyway...
If LDR works for the same address, than I would suspect address alignment. The ARM11s (when correctly configured) support unaligned accesses - but only with certain instructions. LDMs must always be word aligned, but not LDRs. So that could be the problem. If you look at the DFSR on entry to the abort it should confirm whether it is alignment or not.
For 2, this is fine - as long as you do not specify the '!' which updates the address register. So...
LDM r1, {r0-r4) would be ok
LDM r1!, {r0-r4} is not ok
In the first case, the pipeline handles the updates in the correct order.
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Martin Weidmann
over 7 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
I had thought that AXD did not have ARM11 support, but its a long time since I last used it. Anyway...
If LDR works for the same address, than I would suspect address alignment. The ARM11s (when correctly configured) support unaligned accesses - but only with certain instructions. LDMs must always be word aligned, but not LDRs. So that could be the problem. If you look at the DFSR on entry to the abort it should confirm whether it is alignment or not.
For 2, this is fine - as long as you do not specify the '!' which updates the address register. So...
LDM r1, {r0-r4) would be ok
LDM r1!, {r0-r4} is not ok
In the first case, the pipeline handles the updates in the correct order.
Cancel
Up
0
Down
Reply
Cancel
Children
No data
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
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
5790
views
1
reply
Latest
2 months ago
by
Jonathan Simmonds
Answered
DSTREAM Probe damage - Spare parts?
0
DSTREAM
8004
views
2
replies
Latest
2 months ago
by
SamGKN
Suggested Answer
Optimized ARM version of memcmp
0
6465
views
3
replies
Latest
2 months ago
by
Ronan Synnott
Not Answered
Develop Kotlin apps with OpenCl to run in a Samsung mobile that use Mali G71
0
5738
views
2
replies
Latest
3 months ago
by
ARMStrongssen
Answered
FVP Debug problems for Blinky Example project on Cortex-M4
0
Fixed Virtual Platforms (FVPs)
Debugging
Cortex-M4
6600
views
2
replies
Latest
3 months ago
by
Sagittarius
<
>
View all questions in Arm Development Studio forum