Did you 'brick' your MOD5441X or NANO54415? Look here...
Posted: Tue Apr 23, 2013 2:53 pm
I've seen a fair number of people asking about various oopses with the MOD5441X and NANO54415 where they've managed to put it into an aparently unrecoverable situation (wrong boot port, can't flash, etc.). If it's a software/configuration fault, you can recover it. If you let out the magic smoke or have some other hardware problem, you may have yourself a new board for the drawer of cautionary tales... This post is to give a guide of how to recover from those software and configuration faults.
Step 1: Getting to the alternate monitor
First of all, there is the primary boot monitor, accessable by entering the 'A' (0x41) character immediately on boot. This should allow you to recover the module normally. If for some reason that fails or you cannot enter the 'A' character, the MOD5441X and NANO54415 both contain a secondary boot monitor to allow the user to recover from (virtually) all software or configuration faults. This is the process of getting to it:
NANO54415
The boot jumper is a pair of circular pads located near the middle line of the board near the connector. MOD5441X
The boot jumper is the unpopulated header 'TP1', located near the ethernet jack. Step 2: Great, I'm in the monitor. Now what?
By now you've made it to the alternate boot monitor. Some of you already know what you can do in the boot monitor on the other platforms, but the MOD5441X and NANO54415 are special. Their boot monitors also have IPSetup and Autoupdate capabilities (which come in really handy if you want to run tests/applications where networking is disabled). For those of you who don't, this is the output of the help command, where the description is in the left column and the command entered is on the right:
The most important of these commands are the 'Setup' and 'FLA' commands (though 'FLA' is mainly superceded by using Autoupdate for these devices).
Step 3a: Recovering from a bad app
Once you're in the alternate monitor you can recover from a bad app in one of two ways: run Autoupdate and reflash the module over the network as usual or enter the 'FLA' command in the boot monitor and upload the app over the serial port.
Step3b: Recovering from a bad configuration
Again, once you're in the alternate monitor you can recover from a bad configuration in one of two ways: update the configuration via IPSetup or running the 'Setup' command in the boot monitor. Note that if you choose to use the 'Setup' command, you will need to save the configuration once you have made your modifications for them to actually be made in the system.
Step 1: Getting to the alternate monitor
First of all, there is the primary boot monitor, accessable by entering the 'A' (0x41) character immediately on boot. This should allow you to recover the module normally. If for some reason that fails or you cannot enter the 'A' character, the MOD5441X and NANO54415 both contain a secondary boot monitor to allow the user to recover from (virtually) all software or configuration faults. This is the process of getting to it:
- Power off the module.
- Short the alternate boot jumper.
- Power on the module.
- Wait for the module to finish boot and enter the monitor.
- Remove the short on the alternate boot jumper.
NANO54415
The boot jumper is a pair of circular pads located near the middle line of the board near the connector. MOD5441X
The boot jumper is the unpopulated header 'TP1', located near the ethernet jack. Step 2: Great, I'm in the monitor. Now what?
By now you've made it to the alternate boot monitor. Some of you already know what you can do in the boot monitor on the other platforms, but the MOD5441X and NANO54415 are special. Their boot monitors also have IPSetup and Autoupdate capabilities (which come in really handy if you want to run tests/applications where networking is disabled). For those of you who don't, this is the output of the help command, where the description is in the left column and the command entered is on the right:
Code: Select all
nb>help
Block Fill BF<width> BEGIN END DATA
Boot Boot
Flash Apps FLA
Help Help
Memory Display MD<width> <begin> <end>
Memory Modify MM<width> addr <value>
Memory Read MR<width> addr
Ram memory test MT BEGIN END
NATIVEBOOT Nativeboot
Register Display RD reg
Register Modify RM reg data
Reset Reset
Setup options Setup
Un Write Protect Un WriteProtect
Version Version
Write Protect WriteProtect
Step 3a: Recovering from a bad app
Once you're in the alternate monitor you can recover from a bad app in one of two ways: run Autoupdate and reflash the module over the network as usual or enter the 'FLA' command in the boot monitor and upload the app over the serial port.
Step3b: Recovering from a bad configuration
Again, once you're in the alternate monitor you can recover from a bad configuration in one of two ways: update the configuration via IPSetup or running the 'Setup' command in the boot monitor. Note that if you choose to use the 'Setup' command, you will need to save the configuration once you have made your modifications for them to actually be made in the system.