erased gConfigRec
erased gConfigRec
I had a major brian fart while debugging my firmware and inadvertently erased this structure in Flash memory. I can no longer access the MOD5270 either through ethernet or the serial port. Is there a way to fix this, does the serial port get configured to some default settings if this structure is erased?
- Chris Ruff
- Posts: 222
- Joined: Thu Apr 24, 2008 4:09 pm
- Location: topsail island, nc
- Contact:
Re: erased gConfigRec
Modern netburner monitors allow one to choose which serial port is used for monitor talk. Can you listen through the other UART port?
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
Re: erased gConfigRec
I have a similar problem where I Just tried to update static ip on MOD5270LC using the code sample in the
NNDKProgMan.pdf pg. 26:
int FirstInterface = GetFirstInterface();
ConfigRecord *cr = RawGetConfig(FirstInterface);
ConfigRecord NewRec;
memcpy( &NewRec, cr, sizeof( NewRec ) );
NewRec.ip_Addr = AsciiToIp("192.168.1.22");
NewRec.ip_Mask = AsciiToIp("255.255.255.0");
NewRec.ip_GateWay = AsciiToIp("192.168.1.1");
NewRec.ip_DNS_server = AsciiToIp("68.87.68.162");
UpdateConfigRecord_Num(&NewRec, FirstInterface);
After I rebooted the 5270, the device was unresponsive. It is not
listening on any ports, cannot be updated by the Auto Update Tool,
cannot be found my the IP Setup tool and any a few random garbage
characters show in MTTY when the device is unplugged and plugged back in.
Please help.
NNDKProgMan.pdf pg. 26:
int FirstInterface = GetFirstInterface();
ConfigRecord *cr = RawGetConfig(FirstInterface);
ConfigRecord NewRec;
memcpy( &NewRec, cr, sizeof( NewRec ) );
NewRec.ip_Addr = AsciiToIp("192.168.1.22");
NewRec.ip_Mask = AsciiToIp("255.255.255.0");
NewRec.ip_GateWay = AsciiToIp("192.168.1.1");
NewRec.ip_DNS_server = AsciiToIp("68.87.68.162");
UpdateConfigRecord_Num(&NewRec, FirstInterface);
After I rebooted the 5270, the device was unresponsive. It is not
listening on any ports, cannot be updated by the Auto Update Tool,
cannot be found my the IP Setup tool and any a few random garbage
characters show in MTTY when the device is unplugged and plugged back in.
Please help.