I'm trying to get SystemView working. Hopefully it's something simple.
My setup:
- Atmel SAM-ICE
- Atmel ATSAME70Q21
- Atmel Studio 7.0
- FreeRTOS 8.2.3
- SystemView v2.42
We're currently able to build and flash from inside Atmel studio. We're also able to debug, both with Atmel Studio and with Ozone. So the hardware all seems to be working.
I copied over the proper source files into the Atmel project, although I did put them all into a common SEGGER/ folder as I was having linker issues with finding the proper references. It builds fine now. I did have to add a reference to sysclk.h because our FreeRTOSConfig.h file requires it. I've also added the following to our main() cpp file:
Here's the file list:
Here are my symptoms:
- If I straight up try to run SystemView, I get an error. I'm choosing my Target Device (correctly identified), USB, SWD / 4000kHz (matching the Atmel Studio settings), and RTT Auto Detection. I get the same error with 'Start Recording' and with 'Read Recorded Data'. Interestingly, if I try a build that does NOT have the Segger files, I get "RTT Control Block not found", which is good because it's different than the error with Segger files. If I try it with my build that includes Segger files, one of two things happens. Either I get an error "Cannot send command to target. Possible reasons: -Connection to target lost. - Host debug session stopped. - Target application halted." I also get this same error every time I select "Stop Recording". Or I get the first 5 or 6 events like Start, SystemInfo, System Description (which looks correct, including the name in the config), Target time, Registered Modules 0. But then nothing else.
- If I turn on Post Mortem mode, I can usually consistently get those first 5 or 6 errors, but that's it.
Choosing "Read Recorded Data" gives me the following:
- Normal mode, informational prompt with "0 bytes recording data read from target system" (no error)
- Post Mortem mode, we can sometimes get a download of those first few events (106 bytes), but sometimes not.
I've tried increasing the RTT_BUFFER_SIZE but it makes no difference. The Sam-ICE has the latest firmware according to the Segger tools. It would make a world of difference if we could get this to work, as we have a long-running crash that seems to maybe be related to interrupt or task priorities. This would be immensely helpful if we could get the SystemView to work.
Thank you!
I've submitted a screenshot of the events we get as an example.
My setup:
- Atmel SAM-ICE
- Atmel ATSAME70Q21
- Atmel Studio 7.0
- FreeRTOS 8.2.3
- SystemView v2.42
We're currently able to build and flash from inside Atmel studio. We're also able to debug, both with Atmel Studio and with Ozone. So the hardware all seems to be working.
I copied over the proper source files into the Atmel project, although I did put them all into a common SEGGER/ folder as I was having linker issues with finding the proper references. It builds fine now. I did have to add a reference to sysclk.h because our FreeRTOSConfig.h file requires it. I've also added the following to our main() cpp file:
Here's the file list:
Source Code
- Userr@PC MINGW64 ~/project/src/SEGGER
- $ ls
- Global.h SEGGER_SYSVIEW.h
- os_trace_events.h SEGGER_SYSVIEW_Conf.h
- SEGGER.h SEGGER_SYSVIEW_ConfDefaults.h
- SEGGER_RTT.c SEGGER_SYSVIEW_Config_FreeRTOS.c
- SEGGER_RTT.h SEGGER_SYSVIEW_FreeRTOS.c
- SEGGER_RTT_Conf.h SEGGER_SYSVIEW_FreeRTOS.h
- SEGGER_SYSVIEW.c SEGGER_SYSVIEW_Int.h
Here are my symptoms:
- If I straight up try to run SystemView, I get an error. I'm choosing my Target Device (correctly identified), USB, SWD / 4000kHz (matching the Atmel Studio settings), and RTT Auto Detection. I get the same error with 'Start Recording' and with 'Read Recorded Data'. Interestingly, if I try a build that does NOT have the Segger files, I get "RTT Control Block not found", which is good because it's different than the error with Segger files. If I try it with my build that includes Segger files, one of two things happens. Either I get an error "Cannot send command to target. Possible reasons: -Connection to target lost. - Host debug session stopped. - Target application halted." I also get this same error every time I select "Stop Recording". Or I get the first 5 or 6 events like Start, SystemInfo, System Description (which looks correct, including the name in the config), Target time, Registered Modules 0. But then nothing else.
- If I turn on Post Mortem mode, I can usually consistently get those first 5 or 6 errors, but that's it.
Choosing "Read Recorded Data" gives me the following:
- Normal mode, informational prompt with "0 bytes recording data read from target system" (no error)
- Post Mortem mode, we can sometimes get a download of those first few events (106 bytes), but sometimes not.
I've tried increasing the RTT_BUFFER_SIZE but it makes no difference. The Sam-ICE has the latest firmware according to the Segger tools. It would make a world of difference if we could get this to work, as we have a long-running crash that seems to maybe be related to interrupt or task priorities. This would be immensely helpful if we could get the SystemView to work.
Thank you!
I've submitted a screenshot of the events we get as an example.
The post was edited 1 time, last by booherbg ().