Moddable-OpenSource / moddable

Tools for developers to create truly open IoT products using standard JavaScript on low cost microcontrollers.
http://www.moddable.com
1.32k stars 236 forks source link

Onewire driver in Moddable Six #1395

Open mauroForlimpopoli opened 2 weeks ago

mauroForlimpopoli commented 2 weeks ago

I'm running example https://github.com/Moddable-OpenSource/moddable/tree/public/examples/drivers/onewire on Moddable Six this is the error during compilation

# cc modonewire.c.o
In file included from C:\Users\mades\Projects\moddable\modules\drivers\onewire\esp\modonewire.c:34:
C:\Users\mades\Projects\moddable\modules\drivers\onewire\esp\owb_rmt.h:34:10: fatal error: driver/rmt.h: No such file or directory
   34 | #include "driver/rmt.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.

I'm using windows 11

phoddie commented 2 weeks ago

We'll take a look.

mkellner commented 4 days ago

The onewire module has been updated to work with IDF v5+ It will be available in the next release.

mauroForlimpopoli commented 4 days ago

Thank you Michael. Can you tell me when it will be released. I need urgently Regards

mkellner commented 3 days ago

@mauroForlimpopoli, it is available now.

mauroForlimpopoli commented 1 day ago

Hi Michael, I updated the Moddable SDK with

cd %MODDABLE%
git stash push
git pull
git stash pop

Then I updated the ESP-IDF to 5.3 but now I have this error from the compiler

C:\Users\mades\projects\moddable\examples\piu\six>mcconfig -d -m -p esp32/moddable_six_cdc
INFORMAZIONI: impossibile trovare file corrispondenti ai
criteri di ricerca indicati.
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\Users\mades\esp32\esp-idf\
"null" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
Using Git in C:\Espressif\tools\idf-git\2.44.0\cmd\
git version 2.44.0.windows.1
Checking Python compatibility
Setting IDF_PATH: C:\Users\mades\esp32\esp-idf

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.27.2.
Not using an unsupported version of tool ninja found in PATH: 1.11.0.
    C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
    C:\Espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
    C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
    C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
    C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
    C:\Espressif\tools\cmake\3.24.0\bin
    C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
    C:\Espressif\tools\ninja\1.11.1\
    C:\Espressif\tools\idf-exe\1.0.3\
    C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
    C:\Espressif\python_env\idf5.3_py3.12_env\Scripts
    C:\Users\mades\esp32\esp-idf\tools

Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
Requirement files:
 - C:\Users\mades\esp32\esp-idf\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.3_py3.12_env\Scripts\python.exe
Python requirements are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Using recommended ESP-IDF v5.3
# bles2gatt bleservices
        1 file copiati.
        1 file copiati.
        1 file copiati.
NMAKE : fatal error U1073: impossibile creare 'C:\Users\mades\Projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\six\xsProj-esp32s3\..\xs_idf_deps.txt'
Stop.

C:\Users\mades\projects\moddable\examples\piu\six>
C:\Users\mades\projects\moddable\examples\piu\six>

What can I do ? regards

mkellner commented 1 day ago

Please try mcconfig -d -m -p esp32/moddable_six_cdc a second time.

I will try to reproduce on my Windows machine.

mkellner commented 23 hours ago

My apologies for not being complete.

After updating the source code, you will need to rebuild the tools as there were some changes to support the new dependency property that is required for the onewire module.

cd %MODDABLE%\build
rd /s/q tmp bin
cd makefiles\win
build

Then build the app:

cd %MODDABLE%\examples\drivers\onewire
mcconfig -d -m -p esp32/moddable_six_cdc