System Segger View - 1
System Segger View - 1
Step1:
Downloading The Necessary Software
o System Segger View
o System Segger View Target Source
o J-Link Drivers
Step2:
Including System View in The Application
Step3:
Adding Include Path and Apply Path to FreeRTOS
Step4:
Sending System Information/Target Configuration
Step5:
Continuous Recording
Step1 Explanation:
First we have to install the required software,
1.Installation of System segger view:
In google search put system segger view Click first link
Click List of downloads
Inside list of downloads,
[Hint: Based on software operating system download it ]
System Segger View Version – 3.56a
Windows 64-bit Installer
Once downloaded double click it give next the agree the license Install.
Scroll down In manuals download latest version system view user manual pdf.
Create one folder in C or D drive copy all segger related documents in it.
3.Installation of J-link Drivers:
For continuous recording we need to download J-link driver.
Open new tab search J-link drivers click first link scroll down go to J-link
software and documentation pack click for downloads
Open your project in S32DS Right click on your project create new folder
name as segger.
After creating Segger folder same like under segger you have to create config,
os, patch, segger.
Open the systemview_src_v356a config copy all files and paste into your
project already created segger inside config
One more file we must add in to config,
Systemview_src_v356v sample FreeRTOSV10 config Cortex-M add
this file in your project segger config.
/* Determine the maximum priority from which ISR safe FreeRTOS API
functions can be called. ISR safe functions are those that end in "FromISR".
FreeRTOS maintains separate thread and ISR API functions to ensure interrupt entry
is as fast and simple as possible.
Save the interrupt priority value that is about to be clobbered. */
ulOriginalPriority = *pucFirstUserPriorityRegister;
#ifdef __NVIC_PRIO_BITS
{
/* Check the CMSIS configuration that defines the number of
priority bits matches the number of priority bits actually queried from the hardware. */
configASSERT( ( portMAX_PRIGROUP_BITS -
ulMaxPRIGROUPValue ) == __NVIC_PRIO_BITS );
}
#endif
#ifdef configPRIO_BITS
{
/* Check the FreeRTOS configuration that defines the number of
priority bits matches the number of priority bits actually queried from the hardware. */
configASSERT( ( portMAX_PRIGROUP_BITS -
ulMaxPRIGROUPValue ) == configPRIO_BITS );
}
#endif
/* Shift the priority group value back to its position within the AIRCR
register. */
ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
Step5 Explanation:
Open system segger view at top click target recorder configuration click J-
link.
After ok J-link connection.
int main() {
functionA();
functionB();
return 0;
}
Add this function build your project and check how much bytes occupied this
function.