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-unsubscr...@nuttx.apache.org

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


Reply via email to