ppisa commented on PR #16995:
URL: https://github.com/apache/nuttx/pull/16995#issuecomment-3278537205

   Nice to see, I want to use ESP32C6 for PMSM control. We have shown that on 
ESP32 with our SPI connected PWM, IRC and power stage and on ESP32C3 ICE-V 
Wireless https://gitlab.fel.cvut.cz/otrees/risc-v-esp32/ice-v-pmsm as demo with 
pysimCoder and PXMC https://www.pxmc.org/ . On ESP32C6, there is an option to 
move fast commutation task to ULP as we do on 
https://www.pikron.com/pages/products/motion_control/lx_rocon.html where we 
have TUMBL (open source Microblaze variant) integrated in  Xilinx XC6SLX9 
design. We have something similar with own RISC-V CPU implemented for MZ_APO 
for Linux and RTEMS 
https://gitlab.fel.cvut.cz/otrees/motion/pxmc-linux/-/tree/master/src/app/mz_apo-pmsm-rvapo
 .
   
   We have, thanks to @Vajnar iterated with ESP32C6 PCNT support in NuttX 
mainline into usable state, so porting the firmware for commutation task to 
ESP32C6 ULP from our other projects should be relatively straightforward task 
and I think that even ULP has enough power to do that computation in sync with 
PWM on 20 kHz. The task for RISC-V coprocessor on MZ_APO is there 
https://gitlab.fel.cvut.cz/otrees/fpga/rvapo-vhdl/-/blob/main/software/c/firmware_fresh/firmware.c


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