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
Unexpected address range accesses from bare metal code
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
8 replies
Subscribers
126 subscribers
Views
2954 views
Users
0 members are here
Related
Unexpected address range accesses from bare metal code
Offline
Rich Podraza
over 7 years ago
Note: This was originally posted on 12th September 2012 at http://forums.arm.com
My test system (Carbon SoCD running a Cortex A9 model) has a memory map with entry point 0xFFFF0000, with a valid memory range from 0xFFFF0000-0xFFFFFFFF, as well as 0x50000000-0x8FFFFFFF where some stack, heap, data, etc. lives. My code is a simple dhrystone app and makes some printf calls to display the app's actions and status. However, I am strangely seeing access to low memory, reads going to 0xA or 0x38 for example. I've tried to debug where these are coming from but whatever is happening is hidden in some system library. Using the disassembly and my .map linker output I see that the code is in flsbuf.o or printf_char_common.o at the time. Depending on whether I comment out certain printf statements, the place/time the out of range access occurs is different. Does anyone have any clues as to what might be happening? Or more information that I can provide to help debug this?
If I comment out all the printfs, none of the out of range accesses occur. Also, if I adjust the system memory to be valid at those low memory addresses, the program executes and completes just fine. So I have a workaround of sorts but I want to make sure this won't be a problem for actual hardware.
Thanks,
Rich
Parents
Offline
Scott Douglass
over 7 years ago
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Scott Douglass
over 7 years ago
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
Errors while importing CCS project into IAR project
+1
Arm Compiler
458
views
1
reply
Latest
1 month ago
by
Andy Neil
Answered
Connecting to multiple cores with command line debugger?
0
DS-5 Debugger
1321
views
2
replies
Latest
1 month ago
by
Alex Earl
Answered
ARM Toolchain Visual Studio Code
+1
1500
views
6
replies
Latest
1 month ago
by
Andy Neil
Answered
Automation for IAR build and run
+1
1614
views
1
reply
Latest
1 month ago
by
Stephen Theobald
Answered
index are changing with the voltage apply to the adc
+1
1986
views
2
replies
Latest
1 month ago
by
Vishal_Patel
<
>
View all questions in Arm Development Studio forum