Pico_w error message


Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1956
Posted: 03:09am 10 Mar 2025      

Pico-W  V6.0001
A clock that gets time from the wifi.
The program runs OK but at some stage it restarts and I get the following message

ntp address 162.159.200.123
got ntp response: 10/03/2025 13:06:51
Got time  13:06:51
D:\Dropbox\PicoMite\PicoMite\lfs.c:1895:warn: Superblock 0x0 has become unwritable

Can anyone tell me what is happening.
Edit..
I restarted and it ran for about 20 minutes and stopped with an error
'Invalid character  $'  but there was no such character when I checked.
Previously I was getting errors and when I checked, somehow 2 lines of code had changed
'If HourNum....' had changed to  )^ HourNum
and  'Text 130,50.....' had changed to 'Text 130,;0 '.......
Maybe time to reflash the chip.
Befor this started happening it ran OK for several weeks.
Edited 2025-03-10 13:36 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9984
Posted: 08:16am 10 Mar 2025      

The error suggest you are writing to a file on the flash on a regular basis. Is this the case? How often?

palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1956
Posted: 07:20pm 10 Mar 2025      

Yes I was saving a variable every pass of my main loop, I have now changed things so that is not necessary. Have I worn out the flash ?

matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9984
Posted: 07:27pm 10 Mar 2025      

  Quote   Have I worn out the flash ?

Could have, the error indicates that one of the critical blocks used by the flash filesystem was/is unhappy
Edited 2025-03-11 05:27 by matherp

palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1956
Posted: 08:16pm 10 Mar 2025      

Thanks Peter, I am no longer using VarSave, I am using the library in Slot 3 and Slots 1 and 2 seem ok if that is the same area as used by VarSave. I know nothing about where the flash is saved.