Comments (6)
Which version? Do the Teensy repeatedly reboot?
It could be due to littlefs failing to mount the drive due to "corrupted" flash.
Can you comment out this line to force a format before mounting?
Some related info in this thread.
from imxrt1062.
Thank you for getting back to me.
It is VER:1.1f.20220914 on a Teensy 4.1 and yes, it does keep keep rebooting every ~10 seconds.
I've been able to replicate the problem on two additional bare Teensy boards, including a brand new one. Forcing a format, as you recommended, does resolve it. In fact, once I have flashed the modified firmware and formatted the file system, I can now use the original code without commenting out the IF statement.
- Build unmodified grblHAL 20220914 and upload it to a brand new Teensy.
- Teensy keeps rebooting
- Comment out the IF statement, build grblHAL, and upload it to Teensy
- grblHAL works normally
- Build unmodified grblHAL 20220914 and upload it to Teensy.
- grblHAL continues to work normally
I've been able to use these steps to "fix" the problem on 3 different boards (2 bare controllers and one installed on T41U5XBB). However, unmodified grblHAL 20220914 refuses to work on a "virgin" Teensy.
from imxrt1062.
Great, I guess it is due to assert statements in the littlefs code that triggers the reset. Cant't remember now if this happened for me as well as I worked with several implementations at the same time - and I had similar problems with the RP2040 driver.
What could be tried is to erase the flash area used for littlefs and see if it still crashes on mount. If not the perhaps a workaround for this is to release the erase code and instruct users to run it before enabling littlefs/webui?
from imxrt1062.
It looks like the fix is permanent and since I'm out of unused Teensy boards, I can no longer replicate the problem. I tried the 15 second reset, which did load the blinky program, but failed to overwrite the region used by littlefs.
Either that or check for a "file system formatted" flag in EEPROM (real or emulated) before attempting to mount the FS - if not set, format littlefs, and then set it. Since I have a deep appreciation of the Dunning-Kruger Effect and absolutely no understanding of your code, I will not bother with a useless pull request.
from imxrt1062.
I will turn off littlefs assertions in the next commit and gamble on an error is returned instead causing a format.
I'll keep this issue open for now, if somebody else experience crashes please report.
from imxrt1062.
I believe this has been fixed in later builds.
from imxrt1062.
Related Issues (20)
- Coolant Flood/Mist pins reversed HOT 2
- Compile errors with latest code. HOT 44
- z-axis TLO and probing report with bCNC HOT 4
- How to input Motor Fault signal? HOT 5
- LATHE Y to Z HOT 2
- BLTouch Servo Probe HOT 5
- RC PWM Spindle control HOT 2
- Question: Why is it an error to use a pin other than 12 or 13 for SPN PWM? HOT 11
- How to add new pins and use them. HOT 17
- I have run the compile both with Arduino IDE and PlatformIO with MCP3221 Enabled. HOT 2
- aggiungere pin alla configurazione HOT 13
- laser co2 + diodo
- valore ottimale planner $398 HOT 4
- COOLANT_MIST_PIN changing from pin 24 to any other available pin breaks communication with board after flashing successfully. HOT 4
- Hello and I have Been Known to Misinterpret Ideas HOT 5
- Using native USB host port as HID input for wireless keyboards HOT 2
- Error in GRBLHAL2000_map.h file HOT 1
- calo improvviso emissione fascio laser / pwm HOT 6
- Not an issue: I want to know MODBUS implementation. HOT 23
- $398=100 homing problems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imxrt1062.