michallenc commented on issue #3765:
URL: 
https://github.com/apache/incubator-nuttx/issues/3765#issuecomment-882899549


   Hello,
   
   my implementation of tickless mode for iMXRT MCU mentioned above was tested 
on real time DC motor control application and [merged into mainline during the 
past week](https://github.com/apache/incubator-nuttx/pull/4138). A problematic 
pattern in my code and in STM32 tickless mode code has been later noticed by 
@ppisa and [described in NuttX mailing list in 
detail](http://mail-archives.apache.org/mod_mbox/nuttx-dev/202107.mbox/browser).
 This problem does occur minimally as the overflow of the timer does not occur 
to often, but still should be prevented to happen. I plan to introduce a fix 
for both iMXRT and STM32, but firstly I need to do some tests of tickless mode 
with STM32.
   
   After finishing the work on tickless mode, I started getting into the ADC 
support for iMXRT. As I mentioned last week, there are some problems when using 
multiple channels. It seems that sometimes the wrong channel is read and/or 
saved. The DMA support is missing in this case, but first option was to try 
avoid the problem by using multiple trigger control and read registers. That 
didn“t work out as only the first trigger register supports software trigger, 
the others support only hardware trigger. Althought this might not be a problem 
in the future as the ADC triggering should by done by PWM for the control of 
PMSM motor, it seems that using multiple channels with software trigger will 
need the DMA support.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to