You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/25 19:20:02 UTC

[GitHub] [incubator-nuttx] anchao commented on issue #5843: Segger System View support on different platforms setup documentation.

anchao commented on issue #5843:
URL: https://github.com/apache/incubator-nuttx/issues/5843#issuecomment-1079361379


   Hi @PetervdPerk-NXP  ,
   
   > Unfortunely there wasn't a how to guide, but I tried to mimick the SIM sysview configuration
   
   Yes, the SIM configuration simply enables the configuration to ensure that the compilation can work normally. 
   
   We will add a back-end based on file to save the system view stream on SIM platform, which is still under development
   
   > Regarding a ASM file optimized for ARMv7 SEGGER_RTT_ASM_ARMv7M.S, my workaround was to remove that from build system and use the fallback C file.
   
   Sorry to confuse you, I just tested the configuration under v8m, you can temporarily remove the optimization of v7m, I will try to fix this issue further 
   
   > Some errors regarding missing up_perf_gettime and up_perf_getfreq function, I circumvented this by enabling CONFIG_TIMER_ARCH which implements these functions, but it seems that the sim config didn't require those.
   
   I have uploaded a new PR, they implemented cycle counter based on DWT, you can try this commit:
   
   https://github.com/apache/incubator-nuttx/pull/5850
   
   In addition, you also need to initialize the CPU clock frequency in the board implement, eg:
   
   https://github.com/apache/incubator-nuttx/pull/5850/commits/b5edd67cc592a226c9b0fe32914ac5763c78eea9#diff-2e2c7b8e12a8db8218fd22d16f664621da802957420e528caf0c44d0307dc819R57
   
   > do you have an idea on which interfaces I need implement/enable to get this fully to work?
   
   I think this should be caused by the cycle counter not working properly, please check whether up_perf_init() or up_perf_gettime() is working properly


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org