Re: The real-time performance of nuttx

2022-04-08 Thread fft
Hi Mateusz, Thanks very much for your help, I finally caught the problem by SystemView, I found the low priority FOC main task interrupt high priority FOC control pthread and the problem led to the failure to complete the control of this cycle, I think that's what caused my problem, but i do

Re: The real-time performance of nuttx

2022-04-08 Thread raiden00pl
; CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048 > CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN=32 > CONFIG_SEGGER_SYSVIEW_RTT_BUFFER_SIZE=2048 > CONFIG_SEGGER_SYSVIEW_RAM_BASE=0 > > Best regard > Zou > > > -- Original -- > *From: * "raiden00pl"; &

Re: The real-time performance of nuttx

2022-04-08 Thread fft
Hi Mateusz, Now i can use SystemView to monitor the create of task and thread, but there's no time sequence diagram in Timeline of SystemView, and there's no ISR info in event window of SystemView, maybe there's some issue of RTT config on my nuttx. Thank you very much if you would like share

Re: The real-time performance of nuttx

2022-04-04 Thread fft
Hello Mateusz, I have tried to remove USB CDCACM RX thread, and the problem is remains, so the USB CDCACM RX thread do not related to the problem. the latest measure result is as follows: FOC control thread executed time 48~58us and sometimes 68us FOC control thread execute period is 104~124us

Re: The real-time performance of nuttx

2022-04-04 Thread raiden00pl
005bd8 > 7 3 100 RR pthread --- Waiting Semaphore 002048 > 000732 35.7% pt-0x8019d71 0x20005bd8 > nsh> > > pt-0x8019d71 is a USB CDCACM RX thread > > Best regard > Zou > > -- Original -- > *From: * "ra

Re: The real-time performance of nuttx

2022-04-03 Thread fft
Hello Mateusz, Thanks for your help, I'm not proficient in using SystemView, but i will analyze your cool results. I'm use count register value  of timer12 to measure the various execution times. I found in most normal cases, block time of foc_dev_state_get is about 50~60us, and sporadic 80~11

Re: The real-time performance of nuttx

2022-04-03 Thread fft
Hello Nathan, Thanks for your suggestion, is a good idea to use Zero Latency Interrupt, but then I can't use the FOC driver by great works of Mateusz, I will check the critical section of driver i used. Best regard Zou -- Original -- From:  "Nathan Hartman"ht

Re: The real-time performance of nuttx

2022-04-03 Thread Nathan Hartman
so serious ? BTW, ther execution time of single FOC > control loop is 60~70us, and there's 5 custom task in my case: > > Is my configuration incorrect or the real-time performance of nuttx can > not meet the requirements? > Does anyone else have the same problem? > > Best r

The real-time performance of nuttx

2022-04-03 Thread fft
eady been set to the highest 255, and i have enabled the CONFIG_PRIORITY_INHERITANCE, why the FOC control threads was delayed so serious ? BTW, ther execution time of single FOC control loop is 60~70us, and there's 5 custom task in my case: Is my configuration incorrect or the real-time p

The real-time performance of nuttx

2022-04-03 Thread fft
hest 255, and i have enabled the CONFIG_PRIORITY_INHERITANCE, why the FOC control threads was delayed so serious ? BTW, ther execution time of single FOC control loop is 60~70us, and there's 5 custom task in my case: Is my configuration incorrect or the real-time performance of nuttx can not meet the require