FEZHydra with 4.2 ENC28 Fw

I have flashed 4.2 firmware includin network on my Hydra. I need to check some network routines in 4.2 rel. 15 june 2012

On the display the IP Address is garbled indicating “ip address: 192.168.20.677” instead of 192.168.20.67 that I’ve setup in MFDeploy. TCP/IP address is ok, and ping works fine in any case.

To update fw on Hydra with last beta, I’ve found that the following procedure works:

  1. Use boot.bin SD
  2. disconnect (power off) and on again. Then check if serial port installed (GPS com(x)).
  3. go to administrative command prompt and cd to GHI 4.2 directory installation ( …\GHI OSHW NETMF v4.2 SDK\FEZ Hydra\Firmware\FEZ Hydra TinyBooter Updater).
  4. run “updateFEZHydra.bat comx”
  5. monitor file “logfile.log” created in the directory. if it shows error for some reason, switch Hydra power off and on again then retry.
    (5 again: may be you need to reboot more times here, before update will work)
  6. correct procedure produce a logfile.log as show in the code.
  7. the hydra is now in tinybooter. Reboot again (cycle power off and on)
    8.Check that it is installed as "Debuggable .NET Micro framework device"
    9 start MFDeploy and load “ER_CONFIG” and “ER_FLASH” (net fw or no net fw), then press deploy.
  8. Device is ready for use.

Just FYI


-I- Waiting ...
-I- TCL platform : Windows NT
-I- SAM-BA CDC 2.10  on : windows
-I- Retrieved arguments from command line :
-I- argv 0 : com12
-I- argv 1 : at91sam9rl64-ek
-I- argv 2 : TinyBooterLoader.tcl
-I- Connection : com12 (target(comType) = 3)
-I- Board : at91sam9rl64-ek
-I- Traces Level : 4
-I- target(handle) : file21f7780
Read device Chip ID at 0xfffff240 --- get 0x019b03a0
-I- Found processor : at91sam9rl64 (Chip ID : 0x019b03a0)
-I- Command line mode : Execute script file : TinyBooterLoader.tcl
-I---------------------------------
-I-   GHI Electronics, FEZ Hydra  -
-I-   TinyBooter Updater Script   -
-I---------------------------------
-I Enable DataFlash
-I- DATAFLASH::Init 0 (trace level : 4)
-I- Loading applet isp-dataflash-fez_hydra.bin at address 0x300000
-I- Memory Size : 0x420000 bytes
-I- Buffer address : 0x302CD8
-I- Buffer size: 0x18C0 bytes
-I- Applet initialization done
-I- 	Erasing: 0x18C0 bytes at address 0x0
-I- 	Erasing: 0x18C0 bytes at address 0x18C0
-I- 	Erasing: 0x18C0 bytes at address 0x3180
-I- 	Erasing: 0x18C0 bytes at address 0x4A40
-I- 	Erasing: 0x18C0 bytes at address 0x6300
//......
-I- 	Erasing: 0x18C0 bytes at address 0x41A540
-I- 	Erasing: 0x18C0 bytes at address 0x41BE00
-I- 	Erasing: 0x18C0 bytes at address 0x41D6C0
-I- 	Erasing: 0x18C0 bytes at address 0x41EF80
-I- Send File FEZ_HYDRA_TINYBOOTER.bin at address 0x8400
GENERIC::SendFile FEZ_HYDRA_TINYBOOTER.bin at address 0x8400
-I- File size : 0xEC28 byte(s)
-I- 	Writing: 0x18C0 bytes at 0x8400 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0x9CC0 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0xB580 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0xCE40 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0xE700 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0xFFC0 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0x11880 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0x13140 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0x18C0 bytes at 0x14A00 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0xD68 bytes at 0x162C0 (buffer addr : 0x302CD8)
-I- 	0xD68 bytes written by applet
GENERIC::SendFile GHI_OSHW_BOOTSTRAP.bin at address 0x0
-I- File size : 0x2628 byte(s)
-I- 	Writing: 0x18C0 bytes at 0x0 (buffer addr : 0x302CD8)
-I- 	0x18C0 bytes written by applet
-I- 	Writing: 0xD68 bytes at 0x18C0 (buffer addr : 0x302CD8)
-I- 	0xD68 bytes written by applet
-I---------------------------------
-I-        Script Completed       -
-I-     Please Reset the Device   -
-I---------------------------------


We like to not support any NETMF 4.2 version earlier than the one being release hopefully today. As this si in beta and many things are changing frequently still.

As of this time we do not know why the screen shifts. When it says 192.168.20.677, it is because it is shifting one character left but leaves the original line unerased which in turn makes it look like 677 instead of 67.

Hi dobova,

We found the issue with the shifting IP address and it will be fixed in the SDK to be released soon.

@ Aron - ok fine. This is not big issue, because tcpip address is correct

I must add that the upd procedure is relative to beta 6/15/2012 … so this obsolete now