Home/Support/Support Forum/How to reset NVRAM in Digi-Connect ME 9210
New and improved user forum site going live on 12/6 (All users will need to reset their password when the new forum is active)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to reset NVRAM in Digi-Connect ME 9210

0 votes
I created an application to set IAM interface parameters held in NVRAM using IAM parameter API. The first version of the program must have corrupted the NVRAM.

The Digi-Connect 9210 module will not make it to the applicationStart() function when loading parameters from NVRAM. (Setting APP_USE_NVRAM = APP_FOR_ALL_PARAMETERS in the appconf.h file). It keeps hitting the applicationTcpDown() function.

The module will run fine if APP_USE_NVRAM = APP_DO_NOT_USE_NVRAM and module uses parameters in appconf.h.

I then put the following code in applicationTcpDown to try and set IAM parameters back to defaults. But module still does not get to applicationStart(). I think there may be some other parameters stored in NVRAM that have been corrupted.

void applicationTcpDown (void)

static int ticksPassed = 0;
NaIamParamsInfo_t configs;
int i;
int success = customizeIamGetDefaultConfig(&configs);

NaIamStaticParams_t config;
for(i =0 ; i< NA_IAM_INTERFACE_MAX;i++)
success = customizeIamSetInterfaceConfig((char*)&amp;configs.iamParams.ifname,&amp;configs.iamParams);

success =customizeIamGetConfig(&amp;configs);


* Code to handle error condition if the stack doesn't come up goes here.

Do you have any suggestions to clearing or resetting NVRAM that hold parameter information?
asked Oct 14, 2011 in NET+OS by dpitts New to the Community (9 points)
recategorized Dec 4, 2013 by tuxembb

Please log in or register to answer this question.

3 Answers

0 votes
Hi, first question:
Why you need to set APP_USE_NVRAM = APP_FOR_ALL_PARAMETERS? ALl parameters is used only for wthernet configuration, and it overrides MAC setup an IP.

answered Oct 28, 2011 by kubiajir Community Contributor (61 points)
0 votes
There are methods that come to mind, but they are environmental dependant.

If you have access to the serial/dialog and it is connected to a terminal emulator of some kind, when the dialog asks if you want to "Press key in 5 seconds to change settings, press a key. You'll need a user name and password. You'll be asked if you want to reset to defaults. If you says Y, NVRAM will be reset to some reasonable settings. That might help.

Also both the command line development environment and the IDE (ESP) have a sample application that will wipe FLASH clean. Two caveats, 1) Notice I said FLASH and not just NVRAM. 2) You must be using a JTAG module. DO not try this with a non-JTAG module as your unit will trully be turned into a brick. After clearing FLASH, through the JTAG debugger yo can rewrite the bootloader and the application. Use the method above to set NVRAM to something reasonable.
answered Oct 5, 2012 by dakotas_dad Veteran of the Digi Community (694 points)
0 votes
maybe the knowledge base article is related:
answered Aug 16, 2016 by User143 Community Contributor (132 points)