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
Cortext M3 Program Counter Test
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
127 subscribers
Views
2231 views
Users
0 members are here
Related
Cortext M3 Program Counter Test
Offline
Muhammad Ahsan
over 7 years ago
Note: This was originally posted on 16th March 2011 at http://forums.arm.com
I am working with Cortex M3 and want to perfrom Stuck at (To check that none of the bit of PC is stuck at 0 or 1) test of Program Counter. Can anybody give me an idea how to implement this? Thanks in advance!
Offline
Muhammad Ahsan
over 7 years ago
Note: This was originally posted on 21st March 2011 at
http://forums.arm.com
The device has MPU. I have actually figured out that it can be done by placing code (short subroutine) at 0x55..... and 0xAA..... locations in memory and then reading that location to verfiy whether the program counter has reached that particular locations. Now I have checkd that the memory locations (On chip SRAM, Code SRAM and Flash) are occupied with different types of code. At some memory locations I found ff pattern and on the others random patterns. Some locations were writeable others were not. I am confused, where how to select the area, which I want to write. If someone knows about some document or link that describe working with Cortex M3 memory specfically or any other generally, please let me know or just give me a hint here.
Thanks
ahsan
Does your device have an MPU?
--
Marcus
Cancel
Up
0
Down
Reply
Cancel
Offline
Marcus Harnisch
over 7 years ago
Note: This was originally posted on 18th March 2011 at
http://forums.arm.com
Does your device have an MPU?
--
Marcus
Cancel
Up
0
Down
Reply
Cancel
Offline
Marcus Harnisch
over 7 years ago
Note: This was originally posted on 21st March 2011 at
http://forums.arm.com
How about a sequence of 16bit instructions (minimum of 16), at a 32 byte aligned address. An appropriate choice of instructions will expose stuck-at faults in the lower bits of PC. For the upper bits you might want to use MPU regions marked as NX, which cover the address you want to verify. The MemManange Fault will tell you whether you've actually tried to access that address.
Depending on the requirements it may be sufficient if only the MPU sees the address. If you want to check actual address bits on the instruction interface, you'll have to find a more complex approach.
Regards
Marcus
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
1140
views
0
replies
Started
7 days ago
by
Annie Cracknell
Suggested Answer
How to view SFRs in DS during debugging?
0
483
views
1
reply
Latest
3 days ago
by
Ronan Synnott
Answered
Dual-core debugging in DS
0
3347
views
2
replies
Latest
16 days ago
by
Ivan Savvateev
Answered
Failure to get an evaluation license with error Unable to execute API call /api/v1/connect
0
4287
views
3
replies
Latest
21 days ago
by
Tim Holt
Suggested Answer
DS52020.0 connection to Musca-A/B boards not working
0
Arm Development Studio
Musca-A
5321
views
4
replies
Latest
23 days ago
by
Daniel Oliveira
>
View all questions in Arm Development Studio forum