Chapter 4 BIOS Setup
56 Reference Manual CoreModule 420
Example Assumptions
The following assumptions have been made concerning the application and certain functionality has not
implemented.
The application is located at the fixed address of 1MB
The bootloader has to load the application at the fixed address of 1MB
The startup code is incomplete
For example, early initialization functions and constructors normally called before main, are not
called at all.
In general, the standard libraries can NOT be used
C++ exception handling is not supported.
The bootloader makes certain assumptions, which are documented in the source code.
Installing the Example Application
To install the example application, the generated Flash image needs to be programmed into Flash
memory.
1. Copy the files aflash.exe, image and updimg.bat to a floppy.
2. Turn on power to the CoreModule 420 and enter BIOS Setup.
3. Go to Memory settings under the BIOS and Hardware Settings screen and set Flash Address to
[8MB].
4. Select Esc to exit to the main menu.
5. Exit BIOS Setup using the Exit, Saving Changes option.
6. Reboot the CoreModule 420 from a MS-DOS 6.22 floppy diskette, without a config.sys and
autoexec.bat and then remove the diskette.
7. Insert the floppy diskette into the drive with aflash.exe, image and updimg.bat previously copied
to it.
8. Change the current directory to the floppy, by typing a:
9. Run the updimg.bat file from the diskette.
This bat file will program the file image into the Flash memory.
10. Reboot the CoreModule 420 and enter BIOS Setup again.
11. Go to the BIOS and Hardware Settings, set Boot 1st to [Flash] to boot from Flash.
12. Select Esc to exit to the main menu.
13. Exit BIOS Setup using the Exit, Saving Changes option.
14. After system reboots from the Flash, the example application sends a message to the screen.
Flash Boot API
The BIOS implements an API call to assist in booting from Flash. This API allows bootloaders to call
the BIOS to copy memory anywhere in the 32-bit address range. All addresses are treated as linear,
physical addresses.
Refer to the Flash directory under Miscellaneous Source Code Examples on the CoreModule 420 Doc &
SW CD-ROM (cm420\software\examples\flash) for the examples and more information.