Giter Site home page Giter Site logo

Comments (44)

terjeio avatar terjeio commented on August 17, 2024 2

Oops - wrong line marked, change 1517 instead...

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024 1

perhaps easier to just point to a pre-patched fork?

Yes I think so, or IMO rather include the source in the driver. A pity that the Arduino IDE is so simple and that it was not possible to get the uSDFS fixed...

BTW building with the new web builder is another alternative? Perhaps ditch Arduino IDE support when web builder is deemed stable?

from imxrt1062.

dresco avatar dresco commented on August 17, 2024 1

Which files have I to remove? Can someone help me to build the firmware?

Replace these two lines in platformio.ini with https://github.com/WMXZ-EU/uSDFS

https://github.com/wwatson4506/uSDFS#uSDFS-non-blocking
https://github.com/wwatson4506/MSC#MSC-non-blocking

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024 1

.. I have a new problem with the latest firmware

@szaghi Sorry, I have indroduced a new bug.

Change this line to:

#if SPINDLE_SYNC_ENABLE

to:

#ifdef DRIVER_SPINDLE && SPINDLE_PWM_PIN

as a quick fix.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

Which Teensyduino version? It compiles and works for me with 1.54 (Arduino IDE).

from imxrt1062.

andrewmarles avatar andrewmarles commented on August 17, 2024

PlatformIO.ini is pulling down 1.53 from line 47:

platform = ${common_teensy.platform}@4.12

I tried with the latest 4.17 and teensyduino 1.57, but that led to the errors from #15

Will try it with 1.54.

from imxrt1062.

andrewmarles avatar andrewmarles commented on August 17, 2024

Modifying the platformIO.ini from the repo to pull in https://github.com/WMXZ-EU/uSDFS I am able to compile with 1.54. It's not completely clear to me if this is the expected resolution for #15 ?

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

I was wrong, I have updated to 1.56...
1.57 reintroduces the 'msSCSICapacity_t' has not been declared error?

It's not completely clear to me if this is the expected resolution for #15 ?

It is, the random delay bug was nasty as it did not show up in all grblHAL configurations.

from imxrt1062.

andrewmarles avatar andrewmarles commented on August 17, 2024

Ok, at least I can claim some small grip on my sanity. I will also try with 1.56.

from imxrt1062.

andrewmarles avatar andrewmarles commented on August 17, 2024

With 1.56 and the patch it compiles. I'll look at making a PR to update platformio.ini.

from imxrt1062.

agent-r avatar agent-r commented on August 17, 2024

Could someone give a short discription what changes to make in platfomio.ini and what/how to patch?

from imxrt1062.

dresco avatar dresco commented on August 17, 2024

Could someone give a short discription what changes to make in platfomio.ini and what/how to patch?

Change the platform line to platform = ${common_teensy.platform}@4.15 - this should pull in the 1.56 teensyduino library.

Under lib_deps, remove the two wwatson sources, and add https://github.com/WMXZ-EU/uSDFS. This still needs patching though, so after first build attempt, open up the .pio/libdeps/teensy41/uSDFS folder and copy in the updated files from the included uSDFS.zip.

@terjeio @andrewmarles I suppose the upstream library could be patched at installation with an extra_scripts directive, but perhaps easier to just point to a pre-patched fork?

from imxrt1062.

agent-r avatar agent-r commented on August 17, 2024

Thank you!

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

Hi @dresco , I have tried to execute your suggestions, but I have failed. In particular I missed the point

remove the two wwatson soruces

Which files have I to remove?

The other modifications should have been done correctly, but I have the following compiling errors:

Compiling .pio\build\teensy41\libd7d\uSDFS\utility\sd_spi.c.o
In file included from .pio\libdeps\teensy41\MSC-non-blocking\src\msc.h:31:0,
                 from .pio\libdeps\teensy41\MSC-non-blocking\src\MassStorageDriver.cpp:29:
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2056:2: error: 'msSCSICapacity_t' does not name a type
  msSCSICapacity_t msCapacity;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2057:2: error: 'msInquiryResponse_t' does not name a type
  msInquiryResponse_t msInquiry;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2058:2: error: 'msRequestSenseResponse_t' does not name a type
  msRequestSenseResponse_t msSense;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2059:2: error: 'msDriveInfo_t' does not name a type
  msDriveInfo_t msDriveInfo;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2078:31: error: 'msSCSICapacity_t' has not been declared
  uint8_t msReadDeviceCapacity(msSCSICapacity_t * const Capacity);
                               ^
compilation terminated due to -fmax-errors=5.
In file included from .pio\libdeps\teensy41\MSC-non-blocking\src\msc.h:31:0,
                 from .pio\libdeps\teensy41\MSC-non-blocking\src\MassStorageHost.cpp:31:
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2056:2: error: 'msSCSICapacity_t' does not name a type
  msSCSICapacity_t msCapacity;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2057:2: error: 'msInquiryResponse_t' does not name a type
  msInquiryResponse_t msInquiry;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2058:2: error: 'msRequestSenseResponse_t' does not name a type
  msRequestSenseResponse_t msSense;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2059:2: error: 'msDriveInfo_t' does not name a type
  msDriveInfo_t msDriveInfo;
  ^
C:\Users\stefa\.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36/USBHost_t36.h:2078:31: error: 'msSCSICapacity_t' has not been declared
  uint8_t msReadDeviceCapacity(msSCSICapacity_t * const Capacity);
                               ^
compilation terminated due to -fmax-errors=5.
Compiling .pio\build\teensy41\liba9e\lwip\api\api_lib.c.o
*** [.pio\build\teensy41\libf4b\MSC-non-blocking\MassStorageDriver.cpp.o] Error 1
*** [.pio\build\teensy41\libf4b\MSC-non-blocking\MassStorageHost.cpp.o] Error 1

Can someone help me to build the firmware?

Kind regards

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

@dresco it worked, thank you very much!

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

Hi all, I am very sorry to bother you again, but I have a new problem with the latest firmware that I compiled yesterday with the help of @dresco : if I activate the spindle plugin I got the following error:

src\driver.c:1518:34: error: 'spindleConfig' undeclared (first use in this function)
         if(hal.spindle.config == spindleConfig)
                                  ^
src\driver.c:1518:34: note: each undeclared identifier is reported only once for each function it appears in
src\driver.c:1519:13: warning: implicit declaration of function 'spindleConfig' [-Wimplicit-function-declaration]
             spindleConfig();
             ^
*** [.pio\build\teensy41\src\driver.c.o] Error 1

with the previous version I used (4.12) this did not happened. Can someone help me?
Kind regards,
Stefano

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

@terjeio Thank you very much for the lighting help, it is really appreciated.

I'll test later today.
kind regards,
Stefano

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

.. I have a new problem with the latest firmware

@szaghi Sorry, I have indroduced a new bug.

Change this line to:

#if SPINDLE_SYNC_ENABLE

to:
#ifdef DRIVER_SPINDLE && SPINDLE_PWM_PIN

as a quick fix.

@terjeio

It seems to have not affected my error (that indeed seems to be into the function immediately above, line 1518). I still have the compiling error

src\driver.c: In function 'settings_changed':
src\driver.c:1518:34: error: 'spindleConfig' undeclared (first use in this function)

from imxrt1062.

szaghi avatar szaghi commented on August 17, 2024

@terjeio it works!

Thank you again

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Thanks to all. This saved me too.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

I am not able to compile on platformio with "#define WEBUI_ENABLE 3". I have changed value to 1 also but no luck. Following are console messages:

  • Executing task in folder grblHAL_Teensy4: platformio run

Warning! Ignore unknown configuration option monitor_flags in section [env]
Processing teensy41 (board: teensy41; platform: [email protected]; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (4.16.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:

  • framework-arduinoteensy @ 1.156.0 (1.56)
  • tool-teensy @ 1.154.210805 (1.54)
  • toolchain-gccarmnoneeabi @ 1.50401.190816 (5.4.1)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 94 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- uSDFS @ 1.1.3+sha.478e1d5
    | |-- USBHost_t36 @ 0.1
    |-- lwip @ 2.0.2+sha.3127918
    Building in release mode
    Compiling .pio/build/teensy41/src/driver.c.o
    Compiling .pio/build/teensy41/src/eeprom/eeprom_24AAxxx.c.o
    Compiling .pio/build/teensy41/src/eeprom/eeprom_24LC16B.c.o
    Compiling .pio/build/teensy41/src/encoder/encoder.c.o
    In file included from src/driver.c:54:0:
    .pio/libdeps/teensy41/uSDFS/src/uSDFS.h:27:17: error: redefinition of 'struct tm'
    typedef struct tm
    ^
    In file included from src/grbl/hal.h:29:0,
    from src/uart.h:29,
    from src/driver.c:29:
    /Users/karoria/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/time.h:37:8: note: originally defined here
    struct tm
    ^
    src/driver.c: In function 'set_rtc_time':
    src/driver.c:2231:23: warning: passing argument 1 of 'mktime' from incompatible pointer type [-Wincompatible-pointer-types]
    time_t t = mktime(time);
    ^
    In file included from /Users/karoria/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/sys/reent.h:13:0,
    from /Users/karoria/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/math.h:5,
    from src/driver.c:25:
    /Users/karoria/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/time.h:58:11: note: expected 'struct tm *' but argument is of type 'struct tm *'
    time_t _EXFUN(mktime, (struct tm *_timeptr));
    ^
    src/driver.c: In function 'get_rtc_time':
    src/driver.c:2242:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    struct tm *dt = gmtime(&t);
    ^
    src/driver.c: In function 'driver_init':
    src/driver.c:2358:26: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    hal.rtc.get_datetime = get_rtc_time;
    ^
    src/driver.c:2359:26: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    hal.rtc.set_datetime = set_rtc_time;
    ^
    *** [.pio/build/teensy41/src/driver.c.o] Error 1
    ================== [FAILED] Took 6.28 seconds ==================

Environment Status Duration


teensy41 FAILED 00:00:06.278
============= 1 failed, 0 succeeded in 00:00:06.278 =============

  • The terminal process "platformio 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Waiting for help.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

.pio/libdeps/teensy41/uSDFS/src/uSDFS.h:27:17: error: redefinition of 'struct tm'

Is line 8 in this file #define HAVETM? If not then the required patch has not been applied.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

@terjeio Thanks for reply. Yes I missed that patch but now I did follow both patches of network and SD card plugins but now compile error changes to something else as follows:

  • Executing task in folder grblHAL_Teensy4: platformio run

Warning! Ignore unknown configuration option monitor_flags in section [env]
Processing teensy41 (board: teensy41; platform: [email protected]; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (4.16.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:

  • framework-arduinoteensy @ 1.156.0 (1.56)
  • tool-teensy @ 1.154.210805 (1.54)
  • toolchain-gccarmnoneeabi @ 1.50401.190816 (5.4.1)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 94 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- uSDFS @ 1.1.3+sha.478e1d5
    | |-- USBHost_t36 @ 0.1
    |-- lwip @ 2.0.2+sha.3127918
    Building in release mode
    Compiling .pio/build/teensy41/src/driver.c.o
    Compiling .pio/build/teensy41/src/eeprom/eeprom_24AAxxx.c.o
    Compiling .pio/build/teensy41/src/eeprom/eeprom_24LC16B.c.o
    Compiling .pio/build/teensy41/src/encoder/encoder.c.o
    Compiling .pio/build/teensy41/src/enet.c.o
    Compiling .pio/build/teensy41/src/fans/fans.c.o
    src/enet.c:136:38: warning: 'struct mdns_service' declared inside parameter list
    static void mdns_device_info (struct mdns_service *service, void *txt_userdata)
    ^
    src/enet.c:136:38: warning: its scope is only this definition or declaration, which is probably not what you want
    src/enet.c: In function 'mdns_device_info':
    src/enet.c:141:5: warning: implicit declaration of function 'mdns_resp_add_service_txtitem' [-Wimplicit-function-declaration]
    mdns_resp_add_service_txtitem(service, "model=grblHAL", 13);
    ^
    src/enet.c: At top level:
    src/enet.c:146:39: warning: 'struct mdns_service' declared inside parameter list
    static void mdns_service_info (struct mdns_service *service, void *txt_userdata)
    ^
    src/enet.c: In function 'netif_status_callback':
    src/enet.c:193:9: warning: implicit declaration of function 'mdns_resp_init' [-Wimplicit-function-declaration]
    mdns_resp_init();
    ^
    src/enet.c:195:29: warning: implicit declaration of function 'mdns_resp_add_netif' [-Wimplicit-function-declaration]
    if((services.mdns = mdns_resp_add_netif(netif_default, network.hostname, MDNS_TTL) == ERR_OK)) {
    ^
    src/enet.c:197:13: warning: implicit declaration of function 'mdns_resp_add_service' [-Wimplicit-function-declaration]
    mdns_resp_add_service(netif_default, network.hostname, "_device-info", DNSSD_PROTO_TCP, 0, MDNS_TTL, mdns_device_info, "version=" GRBL_VERSION);
    ^
    src/enet.c:197:84: error: 'DNSSD_PROTO_TCP' undeclared (first use in this function)
    mdns_resp_add_service(netif_default, network.hostname, "_device-info", DNSSD_PROTO_TCP, 0, MDNS_TTL, mdns_device_info, "version=" GRBL_VERSION);
    ^
    src/enet.c:197:84: note: each undeclared identifier is reported only once for each function it appears in
    Compiling .pio/build/teensy41/src/grbl/maslow.c.o
    *** [.pio/build/teensy41/src/enet.c.o] Error 1
    ================== [FAILED] Took 7.48 seconds ==================

Environment Status Duration


teensy41 FAILED 00:00:07.482
============= 1 failed, 0 succeeded in 00:00:07.482 =============

  • The terminal process "platformio 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Thanks for your time and efforts. Waiting for reply.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

I've updated the iMXRT1062 lwIP patch, not sure if this helps. The driver builds using the Web Builder so there may be something wrong with the platformio.ini file as well.
Does it build if you disable the mdns protocol?

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Terje, I couldn't find updated lwIP patch. Disabling mdns protocol and compiling gives following error (pasted only critical lines):

src/networking/httpd.c: In function 'http_init_file':
src/networking/httpd.c:1959:17: error: 'vfs_file_t {aka struct }' has no member named 'is_custom_file'
if (file->is_custom_file && (file->data == NULL))
^
src/networking/httpd.c:1959:42: error: 'vfs_file_t {aka struct }' has no member named 'data'
if (file->is_custom_file && (file->data == NULL))
^
*** [.pio/build/teensy41/src/networking/httpd.c.o] Error 1
========================= [FAILED] Took 11.39 seconds =========================

Environment Status Duration


teensy41 FAILED 00:00:11.387
==================== 1 failed, 0 succeeded in 00:00:11.387 ====================

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

I couldn't find updated lwIP patch.

It is here. I guess it should be moved to the networking plugin...

The httpd.c errors above is likely due to lwipopts.h not beeing patched.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

OK. Now it compiles without "#define MDNS_ENABLE". I am OK with it as it doesn't add much value but still if you want to close the loop then I am ready to follow your instructions. If I #define MDNS_ENABLE and compile, following errors are shown:

src/enet.c:136:38: warning: 'struct mdns_service' declared inside parameter list
static void mdns_device_info (struct mdns_service *service, void *txt_userdata)
^
src/enet.c:136:38: warning: its scope is only this definition or declaration, which is probably not what you want
src/enet.c: In function 'mdns_device_info':
src/enet.c:141:5: warning: implicit declaration of function 'mdns_resp_add_service_txtitem' [-Wimplicit-function-declaration]
mdns_resp_add_service_txtitem(service, "model=grblHAL", 13);
^
src/enet.c: At top level:
src/enet.c:146:39: warning: 'struct mdns_service' declared inside parameter list
static void mdns_service_info (struct mdns_service *service, void *txt_userdata)
^
src/enet.c: In function 'netif_status_callback':
src/enet.c:193:9: warning: implicit declaration of function 'mdns_resp_init' [-Wimplicit-function-declaration]
mdns_resp_init();
^
src/enet.c:195:29: warning: implicit declaration of function 'mdns_resp_add_netif' [-Wimplicit-function-declaration]
if((services.mdns = mdns_resp_add_netif(netif_default, network.hostname, MDNS_TTL) == ERR_OK)) {
^
src/enet.c:197:13: warning: implicit declaration of function 'mdns_resp_add_service' [-Wimplicit-function-declaration]
mdns_resp_add_service(netif_default, network.hostname, "_device-info", DNSSD_PROTO_TCP, 0, MDNS_TTL, mdns_device_info, "version=" GRBL_VERSION);
^
src/enet.c:197:84: error: 'DNSSD_PROTO_TCP' undeclared (first use in this function)
mdns_resp_add_service(netif_default, network.hostname, "_device-info", DNSSD_PROTO_TCP, 0, MDNS_TTL, mdns_device_info, "version=" GRBL_VERSION);
^
src/enet.c:197:84: note: each undeclared identifier is reported only once for each function it appears in
*** [.pio/build/teensy41/src/enet.c.o] Error 1
Compiling .pio/build/teensy41/src/grbl/maslow.c.o
========================= [FAILED] Took 7.77 seconds =========================

Environment Status Duration


teensy41 FAILED 00:00:07.775
==================== 1 failed, 0 succeeded in 00:00:07.775 ====================

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Oh..It is a problem ! While I compiled without MDNS and flashed to teensy4.1, it shows success as usual but neither USB serial nor Ethernet is working. The device doesn't communicate at all. Any clues?

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

@karoria If you flash an image made with the Web Builder does that work?
I am away from home at the moment and will not be able to dig into platformio stuff until I am back home, better to use the Arduino IDE until then?

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

@terjeio, I can confirm that Web Builder also has issues. I have selected T41U5XBB and T41BB5X pro both boards one by one and has selected relevant options in Network/WebUI pane but Ethernet, WS, FTP, HTTP, WebDAV enabled doesn't work. It generates hex file, also flashes well but no communication. I have my old pio project still working and its hex also flashes by teensy loader well and communication just works. I have seen this after above issues to confirm that the board doesn't have any problem. Till the time you come home and look in the matter, I am happy with my old firmware. Thanks a lot again.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

@karoria I forgot one possible issue with littlefs that may cause a hang (an assert is triggered somewhere when an error should be returned). Comment out this line, recompile and reflash - then uncomment again. This will force a format of the littlefs storage area.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Thanks. Will give it a try. I think i will be able to do that tomorrow.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

@karoria I forgot one possible issue with littlefs that may cause a hang (an assert is triggered somewhere when an error should be returned). Comment out this line, recompile and reflash - then uncomment again. This will force a format of the littlefs storage area.

Yes! Commenting out and recompile and refresh makes communication. Should I uncomment and refresh again? I am getting web page as per attached screenshot when I open my static IP, but don't know what to do next. Can I use my grblTouch with flash memory? If yes, how? I have and old style www directory which needs to be hosted as http server.

Screenshot 2022-12-08 at 12 28 35 PM

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

Should I uncomment and refresh again?

Yes.

but don't know what to do next.

The page presented allows you to upload data to littlefs. This can be whatever you want. If index.html.gz (compressed index.html), favicon.ico, preferences.json or ap_login.html is found in littlefs they will take priority over files in the www folder in the SD card file system (or in the embedded read-only file system if that is present).

Can I use my grblTouch with flash memory?

Yes, provided that it is is compressed and fits in the available littlefs free space. Use the file upload button to upload.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

I confirm that communication works when commented out the said line and flashed. Immediately after that if I compile without commenting and flash, communication doesn't work. What happens if I just flash with commented out line?

Yes, provided that it is is compressed and fits in the available littlefs free space. Use the file upload button to upload.

My files are not compressed but occupies only about 150KB space altogether. If still I need to compress as compulsion, how should do I do it to convert to index.html.gz? I don't understand the method used in ESP3D for compression.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

What happens if I just flash with commented out line?

The littlefs storage area will be reformatted and data lost on every reboot. It is odd that reflashing corrupts the storage area, I have no good explanation for that. Do you somehow erase the complete flash before writing the binary? Or is something else amiss?
The lowlevel driver code for littlefs is found here, it expects 8Mb of flash for the Teensy 4.1.

how should do I do it to convert to index.html.gz?

Google gz compression for your OS.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Do you somehow erase the complete flash before writing the binary?

I followed your instructions of flashing with commented line first and then powered off the device and then flashing with uncommented line (as is). I don't know other method for erasing complete flash. Sorry for my incomplete knowledge in electronics area as I am having Mechanical background. I will dig more on low level driver though.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

Hi @terjeio, Are you back Home? When you get time please see to the matter. I am totally lost after trying hard.
Thanks,
Ravi

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

I will be back home at the end of January.

Have you tried with moving the storage area down in FLASH, eg. by 1Mb?
BTW do you have an EEPROM for settings storage? If not then then it could be that the eeprom emulation code uses an overlapping area and corrupting littlefs data.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

I will be back home at the end of January.

Have you tried with moving the storage area down in FLASH, eg. by 1Mb?

BTW do you have an EEPROM for settings storage? If not then then it could be that the eeprom emulation code uses an overlapping area and corrupting littlefs data.

Thanks for taking time out of your busy schedule and guiding. Will see to it. I have not added extra EEPROM to teensy4.1 board. Does it mean I use eeprom emulation code?

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

I have not added extra EEPROM to teensy4.1 board. Does it mean I use eeprom emulation code?

Yes. It is possible to disable this but then settings will not survive a cold restart.

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

@karoria

and has selected relevant options in Network/WebUI pane but Ethernet, WS, FTP, HTTP, WebDAV enabled doesn't work

This only adds the protocol code to the firmware, but does not enable the protocols. Either reset the settings with $RST=* or enable the respective protocols with $70.

if I compile without commenting and flash, communication doesn't work.

I got the same issue when back home, when connected via USB to my Win10 machine after a update to the latest grblHAL version it constantly tried to enumerate the connection. Likely due to the controller rebooting after crashing in the littlefs code. Forcing a littlefs format cleared the issue and now I am not able to reproduce. PRJC claims that the flash is erased when programming, but this is not the case as any content I save to littlefs survives a programming cycle. So something is (randomly?) corrupting the littlefs storage area - but what?
I guess this will take some time to identify and fix...

from imxrt1062.

terjeio avatar terjeio commented on August 17, 2024

@karoria - it seems I have cracked your issue, new build with the fix just commited.

I am closing this, please open a new issue if your problem persists.

from imxrt1062.

karoria avatar karoria commented on August 17, 2024

@terjeio
Sorry, I can't believe why I missed your last messages. Thanks for all you've done. I will let you know in case still I have any issues.

from imxrt1062.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.