apache / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
2.6k stars 1.11k forks source link

how to use systemview #9991

Closed laoniaokkk closed 1 year ago

laoniaokkk commented 1 year ago

I tried to use sysytemview to reference the sim/segger configuration, but I didn't succeed, and the issue on systemview was also unsuccessful. I would like to know how to go about setting it up to use correctly.

xiaoxiang781216 commented 1 year ago

Please reference this link: https://github.com/apache/nuttx/issues/5843

acassis commented 1 year ago

@xiaoxiang781216 I think we need a concise Documentation like we have to Debug Trace

laoniaokkk commented 1 year ago

Please reference this link: #5843

I checked this issue but my issue is not solved, my NUTTX system version is 12.0.0 and my chip is stm32f429. I made sure the program executed up_perf_init() and opened DWT inside. When I click "Start Recording", SystemView doesn't show anything, then click "Stop Recording" to display as below. Can you give me your profile?

SystemView

xiaoxiang781216 commented 1 year ago

@Gary-Hobson could you share some defconfig?

raiden00pl commented 1 year ago

@laoniaokkk you can try this PR https://github.com/apache/nuttx/pull/10006 There is an example systemview configuration for nucleo-f446re. The main problem I encountered with enabling systemview is CONFIG_DRIVERS_NOTERAM=y which is the default option and at the same time CONFIG_DRIVERS_NOTE_MAX=1. This causes systemview support to fail and no error is reported to the user.

laoniaokkk commented 1 year ago

@laoniaokkk you can try this PR #10006 There is an example systemview configuration for nucleo-f446re. The main problem I encountered with enabling systemview is CONFIG_DRIVERS_NOTERAM=y which is the default option and at the same time CONFIG_DRIVERS_NOTE_MAX=1. This causes systemview support to fail and no error is reported to the user.

Yes,I made CONFIG_DRIVERS_NOTE_MAX=2, and then the SystemView was work well