#include <EEPROM.h>
// start reading from the first byte (address 0) of the EEPROM
uint16_t address = 0;
byte value;
void setup()
{
Serial.begin(9600);
}
void loop()
{
// read a byte from the current address of the EEPROM
while(address <=4282)
{
EEPROM.write(address,0xFF);
Serial.print(address);
Serial.print("\t");
Serial.println();
address = address + 1;
}
// advance to the next address of the EEPROM
[settings.txt](https://github.com/grblHAL/core/files/8952675/settings.txt)
delay(500);
}
Settings file:
`[settings.txt](https://github.com/grblHAL/core/files/8952684/settings.txt)
`
Hardware: GRBLHAL2k
我在我的 Grblhal2k 板 + IOsender 上遇到了很多奇怪的问题。spindle out 无法(正常)工作、随机崩溃等。
重新刷新等无济于事。使用简单的脚本测试硬件以 PWM 输出一些项目并且一切正常。
得到了一个新的青少年,编写了相同的十六进制程序,并且 grbl 按预期工作。但我原来的董事会不会让步。
将我的旧备份文件放在这个板上 -> 永久破坏它 -> 与我原来的板相同的结果。
我怀疑 Teensy 上的仿真 eeprom 部分有问题。
因此制作了简单的 arduino 脚本 -> 将所有(模拟的)EEPROM 寄存器写入 0xFF -> 通过 IOsender 手动再次设置设置(与以前相同) -> 现在一切正常。
因此,我建议在 IOsender 上使用一个按钮,并且必须在 GRBLhal 中选择一个选项,以便将所有(模拟的)EEPROM 设置简单地覆盖为 0xFF,这样您就可以有一个“全新”的开始。
使用软件:Iosender (XL) 2.0.37 , 2.0.38
Arduino (teensy 4.1) 仿真 eeprom 重置脚本: