Olimex Support Forum

Microcontrollers => PIC => Topic started by: toozie21 on March 10, 2015, 01:05:00 AM

Title: PIC-MAXI-WEB: How to reset corrupt web flash
Post by: toozie21 on March 10, 2015, 01:05:00 AM
So today I attempted to change the value of the mac and the hostname of my device, made the change and then restarted the unit.  Now it is reporting an IP address of 255.255.0.192.  Those first two octects aren't even valid, so I have no way to go into the device to make changes now.

So two questions
1 - How can I re-update the flash webserver when it is corrupted like this?

anda
2 - Why did this happen?  All I did was chance the last character of the default MAC to be a 1, and add a 1 to the end of the default hostname.
Title: Re: PIC-MAXI-WEB: How to reset corrupt web flash
Post by: toozie21 on March 12, 2015, 03:11:22 AM
OK, I see how to reset to the default networking configuration by holding BUT1 down, pressing the reset button, and continuing to hold BUT1 down until LD0 LD1 and LD2 blink (4 seconds).  That works great and saves my bacon.

It doesn't explain though why when I make any changes (or no changes even, just clicking save on the old data that is there), it is causing the IP address to be reported as 255.255.0.192.  It seems sort of telling that the last octet is what is supposed to be the first value of the IP, so it is almost like they are grabbing bytes from the wrong places.

If someone could help point me in the right direction for fixing this, that would be great!