All Forums
 Microsoft Windows CE
 CE Flash, CF and PCMCIA
 Formatting Flash Memory on our GCM using WIN CE
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

twhite

133 Posts

Posted - 15 Aug 2012 :  10:17:46  Show Profile  Email Poster
Formatting Flash Memory on our GCM (Graphic ClientM) using Windows CE.


For those of you that have determined a need to format the onboard flash memory on your GCM board, we have documented below the steps required.

For more information on our GCM product:
- GCM User Manual

Note: You will need an SD card (2GB or smaller) and your shipped SYSLOAD.HWT file to perform this operation. Once this operation is performed, you will also require the original shipped SYSLOAD.HWT, SYSLOAD.REG, and NK.BIN files to reload your board. We require that you monitor the serial debug output of the GCM board throughout this process.

The flash memory mapping on the GCM is as follows:
MOBM and Block Relocation Table 0x00000000 // Block 0
ADSLOAD.ROM 0x00020000 // Blocks 1-2 (be careful here!)
ADSLOAD.HWT 0x00060000 // Blocks 3-4
ADSLOAD.REG 0x000A0000 // Blocks 5-6
ADSLOAD.EXE 0x000E0000 // Blocks 7-8
ADSLOAD.BMP 0x00120000 // Blocks 9-10
BOOT CONFIG 0x00160000 // Blocks 11-12
SPARE BLOCKS 0x001A0000 // Blocks 13-23
NK.BIN IMAGE 0x00300000 // Blocks 24-??

1. Edit your SYSLOAD.HWT file so that the entry HardBootSwitches has the number 4 after it. This will cause the board to enter the boot loader menu. Example: "HardBootSwitches 4" (w/o quotes)

2. Load the modified SYSLOAD.HWT file, then reset the system again to enter the boot loader menu.


3. Here is the bootloader menu and the commands for erasing the NK.BIN flash area:
--------------------------------------------------
GCM Boot Loader Debug Menu
--------------------------------------------------
(A) Read memory
(B) Write memory
(C) TOC for resident NK image
(D) Disk directory for PC card
(E) Erase FLASH memory
(F) Flash Utilities...
(G) GPIO Control and Status...
(O) Set options for this board...
(P) PC card detection & power
(R) Get RTC info
(S) Set RTC info
(T) Toggle boot menu time-out
(M) RAM Walk Test in DWORD
(W) RAM Walk Test in BIT
(L) Load and Go...
(X) Exit
--------------------------------------------------
> E
FLASH is 128MB and Address from 0x00040000 to 0x07FFFFFF
Enter range to erase: (Hex Address 0x)
Start = 0x00300000
End = 0x07ffffff
dwStartBlock 24 dwEndBlock 1023
The address range you selected to erase is:
0xBA000000 - 0xC1CFFFFF
Continue? > Y
Erasing FLASH address from 0xBA000000 to 0xC1CFFFFF. Standby... Finished.

--------------------------------------------------
GCM Boot Loader Debug Menu
--------------------------------------------------
(A) Read memory
(B) Write memory
(C) TOC for resident NK image
(D) Disk directory for PC card
(E) Erase FLASH memory
(F) Flash Utilities...
(G) GPIO Control and Status...
(O) Set options for this board...
(P) PC card detection & power
(R) Get RTC info
(S) Set RTC info
(T) Toggle boot menu time-out
(M) RAM Walk Test in DWORD
(W) RAM Walk Test in BIT
(L) Load and Go...
(X) Exit
--------------------------------------------------
> X

No NK image available for boot.
SpinForever...


4. At this point, add the original shipped HWT (has HardBootSwitches 9), REG, and BIN files to the SD card, and boot from that card. From the debug output, you will see the board reloading the NK.BIN contents and storing it to FLASH, along with the REG and HWT files' contents.

If there are any questions about this process, please be sure to email us at support.us@eurotech.com.

  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000