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
[Cortex-M3] SWO Packet Parsing
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
6 replies
Subscribers
127 subscribers
Views
3945 views
Users
0 members are here
Related
[Cortex-M3] SWO Packet Parsing
Offline
Pietsuro Botsutoshi
over 7 years ago
Note: This was originally posted on 21st February 2012 at http://forums.arm.com
Hi,
I'm trying to play with SEGGER JLink device and ARM M3 micro in order to implement a SWV engine.
Currently I set a SWD protocol communication, and all other needed definitions for the SWO activation:
DEMCR = 0x01000000
DWT_FUNCTION0 = 0x00000000
DWT_FUNCTION1 = 0x00000000
DWT_FUNCTION2 = 0x00000000
DWT_FUNCTION3 = 0x00000000
I would like to monitor a variable located at address 0x2000017C, a 2 bytes length interger that changes every 100us:
DWT_COMP0 = 0x2000017C
DWT_MASK0 = 0x00000001
DWT_FUNCTION0 = 0x00000023
SELECTED_PIN_PROTOCOL_REG = 0x00000002
TPIU_ACPR = 0x0000008F
LOCK_ACCESS_REGISTER = 0xC5ACCE55
ITM_TCR = 0x0001000F
ITM_TPR = 0x0000000F
ITM_TER = 0x00000000
DWT_CTRL = 0x400003FE
TPIU_FFCR = 0x00000100
When I start my acquisition phase, I'm able to obtain the buffer content from the TPIU (see attachment):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FC 00 00 00 05 8F 00 00 00 00 D0...
but I have difficulties regarding the parsing process: I'm not able to understand if the 28 bytes of 0s belong to the header that should terminates with only one 0b1.
The serie, in fact, terminates with 0xFC = 0b11111100, but I don't know if the first 1 bit (position [7]) belongs to the header definition, so if I have to discard it and consider the remaining value (0b1111100) value for the next data retrieving.
And after the header, how can I understand what type of info is following?
Thank you very much.
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
1141
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
3351
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