STM32F1xx icon indicating copy to clipboard operation
STM32F1xx copied to clipboard

error:7 - A settings read failed. Auto-restoring affected settings to default values.

Open jimfong1 opened this issue 1 year ago • 7 comments

Running STM32F103RCT6 on a red rnr MACH3BOB. Working fine but the only issue is once in awhile I'll get error:7 - A settings read failed. Auto-restoring affected settings to default values. on power up and it loads all the default settings again.. I than have to load them up. Is there a setting to prevent restoring the defaults?
Thanks Jim

[VER:1.1f.20230903:] [OPT:VNMSL,35,1024,4,0] [AXS:4:XYZA] [NEWOPT:ENUMS,RT+,ES,SED] [FIRMWARE:grblHAL] [NVS STORAGE:*FLASH] [DRIVER:STM32F103RC] [DRIVER VERSION:230828] [BOARD:MACH3 USB BOB (BSMCE04U)] [AUX IO:0,1,0,0] [CLUSTER:16] [PLUGIN:LightBurn clusters v0.04] [G54:0.000,0.000,0.000,0.000] [G55:0.000,0.000,0.000,0.000] [G56:0.000,0.000,0.000,0.000] [G57:0.000,0.000,0.000,0.000] [G58:0.000,0.000,0.000,0.000] [G59:0.000,0.000,0.000,0.000] [G59.1:0.000,0.000,0.000,0.000] [G59.2:0.000,0.000,0.000,0.000] [G59.3:0.000,0.000,0.000,0.000] [G28:0.000,0.000,0.000,0.000] error:7 - A settings read failed. Auto-restoring affected settings to default values. [MSG:Warning: Settings write failed!]

jimfong1 avatar Nov 13 '23 16:11 jimfong1

Working fine but the only issue is once in awhile I'll get error:7 - A settings read failed. Auto-restoring affected settings to default values.

This happens at random on bootup? Or while running and on writing to the flash? Note that writing to flash is also done when changing offsets, not only when changing settings.

Is there a setting to prevent restoring the defaults?

No, restoring defaults happens when a checksum check fails due to data beeing corrupted. So disabling restore is not a good idea. A way around it will be to change the defaults to match your configuration.

See this discussion for more.

terjeio avatar Nov 14 '23 16:11 terjeio

It happens mostly on initial boot up. Error message again this morning when connected with iosender. I'll get the error when saving settings in iosender sometimes too. I check the console screen and save again to make sure it was written to flash.

This maybe a clone STM32 processor that was remarked and not authentic? Bad flash??? I had another mach3bob user reach out to me with the same problem. ST-Link flash utility seems to think this is a real chip with proper chip ID code.

All i/o pins works as expected. Nice clean jitter free step pulse on my scope. No complaints about performance.

I haven't really used offsets yet.

I can do a custom firmware once I lock down the settings. That's easy to do.

jimfong1 avatar Nov 14 '23 17:11 jimfong1

This maybe a clone STM32 processor that was remarked and not authentic? Bad flash???

Well, this board is the only one that I have had reports about settings failures - so a clone issue? The BOB I have at home has a genuine STM32, I fried the clone so I had to replace the MCU. When I am back I will run tests with it to see if I can replicate the issue and if it is possible to add a workaround.

But it is really odd if a read fails on startup if there was no failed write before the previous shutdown. This since reading is just a memcpy from flash to the RAM buffer.

terjeio avatar Nov 15 '23 12:11 terjeio

Ok great, Thanks for looking into this.

jimfong1 avatar Nov 15 '23 23:11 jimfong1

This comment might indicate that it is a clone issue.

terjeio avatar Nov 16 '23 15:11 terjeio

I have now tested with my MACH3BOB that has a genuine STM MCU and I have yet to see a settings read or write failure. Will continue testing...

terjeio avatar Dec 11 '23 19:12 terjeio

Thank for looking into this Terje

Ill probably order a STM32 chip from digikey and replace mine when I get a chance.

jimfong1 avatar Dec 12 '23 01:12 jimfong1