Hi,
Like other guys I had a problem to record start of the system. I know that SEGGER_SYSVIEW_Start() can be used to force recording even without active connection but It wasn't solution for me due to huge buffer needed to not get overflow issue.
Therefore I prepared solution that is sufficient for and maybe will be useful also for other.
I implemented blocking function:
This function is called at start of the system just after SEGGER_SYSVIEW_Conf(). It is waiting endless till the System View application will be connected. Thanks that I don't lose any data at start and I don't need to worry about time when SysView will be connected.
Function body:
Display All
I added it to SEGGER_SYSVIEW.c. If you think it is useful then feel free to add it to you system.
Best regards
Lukasz Antczak
Like other guys I had a problem to record start of the system. I know that SEGGER_SYSVIEW_Start() can be used to force recording even without active connection but It wasn't solution for me due to huge buffer needed to not get overflow issue.
Therefore I prepared solution that is sufficient for and maybe will be useful also for other.
I implemented blocking function:
This function is called at start of the system just after SEGGER_SYSVIEW_Conf(). It is waiting endless till the System View application will be connected. Thanks that I don't lose any data at start and I don't need to worry about time when SysView will be connected.
Function body:
C Source Code
- /*********************************************************************
- *
- * SEGGER_SYSVIEW_WaitForConnection()
- *
- * Function description
- * Wait endless when SystemView APP will be connected
- *
- * Additional information
- */
- void SEGGER_SYSVIEW_WaitForConnection (void)
- {
- do
- {
- _HandleIncomingPacket ();
- }
- while (0 == _SYSVIEW_Globals.EnableState);
- }
I added it to SEGGER_SYSVIEW.c. If you think it is useful then feel free to add it to you system.
Best regards
Lukasz Antczak