Page 1 of 1
erased gConfigRec
Posted: Thu Jun 26, 2008 10:48 am
by bstark
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?
Re: erased gConfigRec
Posted: Thu Jun 26, 2008 11:07 am
by Chris Ruff
Modern netburner monitors allow one to choose which serial port is used for monitor talk. Can you listen through the other UART port?
Re: erased gConfigRec
Posted: Fri Jun 27, 2008 8:05 pm
by jl277013
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.