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
3944 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.
Parents
Offline
Pietsuro Botsutoshi
over 7 years ago
Note: This was originally posted on 28th February 2012 at
http://forums.arm.com
Thank you Joseph,
I already decoded the messages I retrieve via SWO, or better I've understood how to do that
Thank you very much for the support.
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Pietsuro Botsutoshi
over 7 years ago
Note: This was originally posted on 28th February 2012 at
http://forums.arm.com
Thank you Joseph,
I already decoded the messages I retrieve via SWO, or better I've understood how to do that
Thank you very much for the support.
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
Not Answered
Getting errors after including arm_math.h
0
stm32 h7
Keil
Digital Signal Processor (DSP)
STM32
25603
views
9
replies
Latest
3 months ago
by
roger-liu
Not Answered
freeRTOS demo DS-5 ERROR(CMD360) when trying to debug
+1
10793
views
12
replies
Latest
3 months ago
by
tolc
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
6881
views
1
reply
Latest
3 months ago
by
Jonathan Simmonds
Answered
DSTREAM Probe damage - Spare parts?
0
DSTREAM
9131
views
2
replies
Latest
3 months ago
by
SamGKN
Suggested Answer
Optimized ARM version of memcmp
0
7660
views
3
replies
Latest
3 months ago
by
Ronan Synnott
<
>
View all questions in Arm Development Studio forum