Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-13 Thread via GitHub


simbit18 merged PR #16995:
URL: https://github.com/apache/nuttx/pull/16995


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



Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-10 Thread via GitHub


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]



Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-09 Thread via GitHub


xiaoxiang781216 commented on code in PR #16995:
URL: https://github.com/apache/nuttx/pull/16995#discussion_r2333409351


##
boards/risc-v/esp32c6/common/scripts/esp32c6_flat_memory.ld:
##
@@ -141,9 +141,14 @@ MEMORY
   drom_seg(R) :   org = 0x4200, len = IDRAM0_2_SEG_SIZE
 #endif
 
+#if CONFIG_ESPRESSIF_USE_LP_CORE
+  lp_ram_seg(RW)  : org = 0x5000 + 
CONFIG_ESPRESSIF_ULP_COPROC_RESERVE_MEM_SIZE,

Review Comment:
   align org with line 141



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



Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-09 Thread via GitHub


eren-terzioglu commented on PR #16995:
URL: https://github.com/apache/nuttx/pull/16995#issuecomment-3270950685

   > @eren-terzioglu seems like some debug symbols are missing:
   > 
   > ## 

   > Configuration/Tool: esp32c6-devkitc/wifi
   > 2025-09-09 13:17:40
   > Cleaning... Configuring... Building NuttX... % Total % Received % Xferd 
Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
   > 
   > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 
--:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time 
Current Dload Upload Total Spent Left Speed
   > 
   > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 
--:--:-- --:--:-- 0
   > 
   > 27 340k 27 96574 0 0 162k 0 0:00:02 --:--:-- 0:00:02 162k 0 0 0 0 0 0 0 0 
--:--:-- --:--:-- --:--:-- 0 100 340k 100 340k 0 0 551k 0 --:--:-- --:--:-- 
--:--:-- 6643k
   > 
   > 100 496k 100 496k 0 0 753k 0 --:--:-- --:--:-- --:--:-- 1616k 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c: In function 
'ulp_lp_core_run': Error: 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:109:38: error: 
'CONFIG_ULP_NORESET_UNDER_DEBUG' undeclared (first use in this function) 109 | 
lp_core_ll_rst_at_sleep_enable(!(CONFIG_ULP_NORESET_UNDER_DEBUG && 
esp_cpu_dbgr_is_attached())); | ^~ 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:109:38: note: each 
undeclared identifier is reported only once for each function it appears in 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c: In function 
'ulp_lp_core_stop': Error: 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:177:41: error: 
'CONFIG_ULP_NORESET_UNDER_DEBUG' undeclared (first use in this function) 177 | 
lp_core_ll_rst_at_sleep_enable(!CONFIG_ULP_NORESET_UNDER_DEBUG); | 
^~ make[1]: *** [Makefile:144: 
chip/esp-hal-3rdparty/components/ulp/l
 p_core/lp_core.o] Error 1 make[1]: Target 'libarch.a' not remade because of 
errors. make: *** [tools/LibTargets.mk:170: arch/risc-v/src/libarch.a] Error 2 
make: Target 'all' not remade because of errors. 
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385: 
/github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or 
directory [1/1] Normalize esp32c6-devkitc/wifi
   
   Working on it, thanks for reporting.


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



Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-09 Thread via GitHub


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

   @eren-terzioglu seems like some debug symbols are missing:
   
   

   Configuration/Tool: esp32c6-devkitc/wifi
   2025-09-09 13:17:40
   

 Cleaning...
 Configuring...
 Building NuttX...
 % Total% Received % Xferd  Average Speed   TimeTime Time  
Current
Dload  Upload   Total   SpentLeft  Speed
   
 0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
 0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
 % Total% Received % Xferd  Average Speed   TimeTime Time  
Current
Dload  Upload   Total   SpentLeft  Speed
   
 0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
 0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
   
27  340k   27 965740 0   162k  0  0:00:02 --:--:--  0:00:02  
162k
 0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
   100  340k  100  340k0 0   551k  0 --:--:-- --:--:-- --:--:-- 
6643k
   
   100  496k  100  496k0 0   753k  0 --:--:-- --:--:-- --:--:-- 
1616k
   chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c: In function 
'ulp_lp_core_run':
   Error: chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:109:38: error: 
'CONFIG_ULP_NORESET_UNDER_DEBUG' undeclared (first use in this function)
 109 | lp_core_ll_rst_at_sleep_enable(!(CONFIG_ULP_NORESET_UNDER_DEBUG 
&& esp_cpu_dbgr_is_attached()));
 |  ^~
   chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:109:38: note: each 
undeclared identifier is reported only once for each function it appears in
   chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c: In function 
'ulp_lp_core_stop':
   Error: chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.c:177:41: error: 
'CONFIG_ULP_NORESET_UNDER_DEBUG' undeclared (first use in this function)
 177 | 
lp_core_ll_rst_at_sleep_enable(!CONFIG_ULP_NORESET_UNDER_DEBUG);
 | 
^~
   make[1]: *** [Makefile:144: 
chip/esp-hal-3rdparty/components/ulp/lp_core/lp_core.o] Error 1
   make[1]: Target 'libarch.a' not remade because of errors.
   make: *** [tools/LibTargets.mk:170: arch/risc-v/src/libarch.a] Error 2
   make: Target 'all' not remade because of errors.
   /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: 
/github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or 
directory
 [1/1] Normalize esp32c6-devkitc/wifi


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



Re: [PR] arch/risc-v/esp32c6: Add lpcore support [nuttx]

2025-09-09 Thread via GitHub


eren-terzioglu commented on PR #16995:
URL: https://github.com/apache/nuttx/pull/16995#issuecomment-3270675565

   Thanks @xiaoxiang781216, updated.


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