The real-time performance of nuttx

2022-04-03 Thread fft
Hi team: I've been puzzled by a strange problem for a long time, when i use FOC motor control. It seems that the FOC control thread failed to be scheduled in real time. The code structure of ./apps/examples/foc/foc_float_thr.c can be simplified description is as follows:   while (motor.mq.

The real-time performance of nuttx

2022-04-03 Thread fft
sorry, the picture of last email was lost! Hi team: I've been puzzled by a strange problem for a long time, when i use FOC motor control. It seems that the FOC control thread failed to be scheduled in real time. The code structure of ./apps/examples/foc/foc_float_thr.c can be simplified des

Re: The real-time performance of nuttx

2022-04-03 Thread Nathan Hartman
On Sun, Apr 3, 2022 at 3:52 AM fft wrote: > > Hi team: > > I've been puzzled by a strange problem for a long time, when i use FOC > motor control. It seems that the FOC control thread failed to be scheduled > in real time. The code structure of ./apps/examples/foc/foc_float_thr.c can > be simplif

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 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

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #5962: arch/riscv: Rename SCRATCH_HARTID_OFFSET to RISCV_HARTID_OFFSET

2022-04-03 Thread GitBox
pkarashchenko commented on code in PR #5962: URL: https://github.com/apache/incubator-nuttx/pull/5962#discussion_r841283611 ## arch/risc-v/src/common/riscv_percpu.h: ## @@ -38,10 +38,11 @@ * Pre-processor Definitions **

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #5962: arch/riscv: Rename SCRATCH_HARTID_OFFSET to RISCV_HARTID_OFFSET

2022-04-03 Thread GitBox
xiaoxiang781216 commented on code in PR #5962: URL: https://github.com/apache/incubator-nuttx/pull/5962#discussion_r841350940 ## arch/risc-v/src/common/riscv_percpu.h: ## @@ -38,10 +38,11 @@ * Pre-processor Definitions