Ampro Corporation 5001692A manual On-Board Flash Access and Use, Flash Programming Requirements

Page 61

Chapter 4

BIOS Setup

On-Board Flash Access and Use

This section describes how to use the on-board flash memory and load an application in the available lower 768kB region of the 1MB of Flash Memory. The application can boot directly from the on-board flash memory.

The Flash memory can be accessed at 128MB intervals above the base address (with the exception of 256MB). For example, if the Flash address is set to 8MB, then the Flash memory can be accessed at 136MB, 392MB, 520MB etc.

CAUTION To prevent a system crash or unusable BIOS, do not overwrite the BIOS. The entire 1MB of Flash is accessible, but only the lower 768kB region is available for custom applications. The higher 256kB region is used for the BIOS and can be overwritten, rendering the CoreModule 420 unbootable!!

Flash Programming Requirements

To build an example application under DOS or in a Windows DOS pop-up screen, you need to have one of the following tools.

Microsoft Visual C++ 7.0 – This is a commercial product and is available from Microsoft. It can be downloaded as part of the .NET Framework from http://msdn.microsoft.com. The compiler is part of the Microsoft .NET Framework V1.1 Software Development Kit and the NET Framework Redistributable Package V1.1. Both of these need to be downloaded and installed.

Open Watcom C/C++32 1.1 – This is a commercial compiler product available from http://www.openwatcom.org. It is also included on the CoreModule 420 Doc & SW CD-ROMin the cm420\software\examples\flash\watcom directory.

Other versions of the above tools may also work.

The following example application is also necessary and is provided by Ampro.

Example application – This application can be found in the cm420\software\examples\ flash\watcom or cm420\software\examples\flash\msvc directory for the Watcom compiler or Visual C++ compiler respectively. This example application will be described in more detail in the following procedures.

Building the Example

Ampro provides an example for flash programming found on the CoreModule 420 Doc & SW CD-ROMunder Miscellaneous Source Code Examples in the Support Software directory. The example actually consists of two parts:

Example application – The example application shows how a C++ compiler can be used to generate a 32-bit application, which runs without an Operating System. First, build this application using the make.bat file. The make.bat file will build app.exe.

Bootloader – The bootloader can be found in bootsec.asm and the final Flash image is built with image.asm. You can use make.bat to build the bootloader and Flash image (in the cm420\software\examples\flash.

CoreModule 420

Reference Manual

55

Image 61
Contents CoreModule PC/104 Single Board Computer Reference Manual Audience Assumptions Contents Appendix a Table A-1 Reference Manual CoreModule Chip Specifications SpecificationsAbout This Manual Purpose of this ManualCoreModule 420 Support Products Related Ampro ProductsOther CoreModule Products Other Ampro ProductsChapter Reference Manual CoreModule PC/104 Architecture Product OverviewProduct Description Module FeaturesCPU Chapter CRT Bios Block DiagramChip Type Mfg Model Description Function Major Integrated Circuits ICsStpc AtlasConnector Definitions Connectors, Jumpers, and LEDsJack/Plug # Access Description IDEIndicator Definition Jumper # Installed RemovedJumper Definitions LED DefinitionsJP6 JP9 JP7 JP8 JP5 JP4 JP1 Physical Specifications SpecificationsMechanical Specifications DimensionEnvironmental Specifications Power SpecificationsThermal/Cooling Requirements Reference Manual Overview HardwareMemory CPU U14Use Address Size Memory hole size selected Address Map Interrupt Channel AssignmentsEC00-EC0F 0CFC-0CFFPC/104 Bus Interface P1A,B,C,D Pin # Signal Description P1 Row aPin # Signal Description P1 Row B Pin # Signal Description P1 Row C Pin # Signal Description P1 Row D DRQ6 DRQ5DRQ7 Reset Pin # Signal DescriptionIDE Interface J6 PdrqPdack PiorPirq IDEPCS1CompactFlash Socket J12 Iordy RDYREG ACTFloppy Disk Drive Port Floppy/Parallel Port J4Parallel Port Step SlinPD3 RdataSerial 1 to RS485 Conversion Serial Ports J3, J9, J13, J14Pin # Signal DB9 # Description Usbpwr USB Port J10Usbpn UsbppUtility Interface J5 TX+ Ethernet Interface J2RX+ Video LCD/CRT Interface J11 Tftde TftdclkTftlp FP2Miscellaneous User Gpio SignalsReal Time Clock RTC Serial Console Oops! Jumper Bios RecoverySerial Console Bios Setup Watchdog TimerPin Signal Descriptions Power Interface J7Pin # Signal Reference Manual CoreModule Accessing Bios Setup VGA Display Bios SetupIntroduction Bios Setup Menu Item/Topic Accessing Bios Setup Serial ConsoleBios Setup Opening Screen Main Bios Setup MenuCdrom Bios Configuration ScreenChapter Bios Setup Chapter Bios Setup Chapter Bios Setup USB IRQ none, 1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, or Splash Screen Image Requirements Splash Screen CustomizationConverting the Splash Screen File \splashconvert convert.idf Flash Programming Requirements On-Board Flash Access and UseBuilding the Example Flash Boot API Installing the Example ApplicationExample Assumptions Method Contact Information Appendix a Technical SupportAppendix a Teka Appendix B Connector Part NumbersGpio 2PH2R44SGAAppendix B Index See also Oops! jumper Bios SetupPost 64MB SdramSerial terminal ANSI-compatible Reference Manual CoreModule