Ampro Corporation 5001692A manual Example Assumptions, Installing the Example Application

Page 62

Chapter 4

BIOS Setup

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.

56

Reference Manual

CoreModule 420

Image 62
Contents CoreModule PC/104 Single Board Computer Reference Manual Audience Assumptions Contents Appendix a Table A-1 Reference Manual CoreModule About This Manual SpecificationsChip Specifications Purpose of this ManualOther CoreModule Products Related Ampro ProductsCoreModule 420 Support Products Other Ampro ProductsChapter Reference Manual CoreModule Product Overview PC/104 ArchitectureCPU Module FeaturesProduct Description Chapter CRT Block Diagram BiosStpc Major Integrated Circuits ICsChip Type Mfg Model Description Function AtlasJack/Plug # Access Description Connectors, Jumpers, and LEDsConnector Definitions IDEJumper Definitions Jumper # Installed RemovedIndicator Definition LED DefinitionsJP6 JP9 JP7 JP8 JP5 JP4 JP1 Mechanical Specifications SpecificationsPhysical Specifications DimensionThermal/Cooling Requirements Power SpecificationsEnvironmental Specifications Reference Manual Hardware OverviewCPU U14 MemoryUse Address Size Memory hole size selected Interrupt Channel Assignments Address Map0CFC-0CFF EC00-EC0FPin # Signal Description P1 Row a PC/104 Bus Interface P1A,B,C,DPin # Signal Description P1 Row B Pin # Signal Description P1 Row C Pin # Signal Description P1 Row D DRQ7 DRQ5DRQ6 IDE Interface J6 Pin # Signal DescriptionReset PdrqPirq PiorPdack IDEPCS1CompactFlash Socket J12 REG RDYIordy ACTParallel Port Floppy/Parallel Port J4Floppy Disk Drive Port PD3 SlinStep RdataSerial Ports J3, J9, J13, J14 Serial 1 to RS485 ConversionPin # Signal DB9 # Description Usbpn USB Port J10Usbpwr UsbppUtility Interface J5 RX+ Ethernet Interface J2TX+ Video LCD/CRT Interface J11 Tftlp TftdclkTftde FP2Real Time Clock RTC User Gpio SignalsMiscellaneous Oops! Jumper Bios Recovery Serial ConsoleWatchdog Timer Serial Console Bios SetupPin # Signal Power Interface J7Pin Signal Descriptions Reference Manual CoreModule Introduction Bios SetupAccessing Bios Setup VGA Display Accessing Bios Setup Serial Console Bios Setup Menu Item/TopicMain Bios Setup Menu Bios Setup Opening ScreenBios Configuration Screen CdromChapter Bios Setup Chapter Bios Setup Chapter Bios Setup USB IRQ none, 1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, or Converting the Splash Screen File Splash Screen CustomizationSplash Screen Image Requirements \splashconvert convert.idf Building the Example On-Board Flash Access and UseFlash Programming Requirements Example Assumptions Installing the Example ApplicationFlash Boot API Appendix a Technical Support Method Contact InformationAppendix a Gpio Appendix B Connector Part NumbersTeka 2PH2R44SGAAppendix B See also Oops! jumper Bios Setup Index64MB Sdram PostSerial terminal ANSI-compatible Reference Manual CoreModule