The following additional utility functions available for this booter version are described in this section:
• Extended flash memory programming
• Erase flash memories • Get system values in SRAM
• Get application values in SRAM
• Get memory limits C-calling conventions The interface expects C-like calling conventions.
Note: The utility interface must be called in supervisor mode. It does not install its own stack but will use the application’s stack. Note: All parameters must be placed as long values on the supervisor stack. The first parameter must be pushed onto the stack as the last one. It must include the function number of the requested function.
Calling a utility function
Calling sequence 1. Retrieve the entry address from location BootROM+000816. 2. Push the parameters (32 bit values) onto the stack. Remember to push the function number at last. 3. Call the FGA-Boot utility interface in supervisor mode via JSR. 4. Retrieve the return code from the interface (register D0). 5. Clean up the stack (arguments are still on the stack). Calling from C Example: Calling the utility function fctNo from a C-programming language source.
Extended Flash Memory Programming
This routine allows partial programming of flash memories. The FGA-002’s timer is used for timing during execution of the routine. Function number 36 (=2416) Syntax long util (36, flashbank, source, offset, length) Parameters flashbank Base address of the flash memory bank that is to be programmed. source Source address of the data to program. offset Relative byte offset within the flash bank. length Length in bytes. If length is 0, all remaining space of the flash bank will be programmed.
The function allows partial erasing of flash memory banks if the devices support page erasing mode. The FGA-002’s timer is used for timing during execution of the routine.
Superior products
Main products include DCS control system spare parts, PLC system spare parts and robot system spare parts,
Advantage brands: Allen Bradley, BentlyNevada, ABB, Emerson Ovation, Honeywell DCS, Rockwell ICS Triplex, B&R, FOXBORO, Schneider PLC, GE Fanuc, Motorola, HIMA, TRICONEX, Prosoft and other imported industrial parts
Application industry
Our main products are widely used in metallurgy, oil and gas, glass manufacturing, aluminum, petrochemical, coal mine, paper making and printing, textile printing and dyeing, machinery, electronic manufacturing, automobile manufacturing, tobacco, plastic machinery, electricity, water conservancy, water treatment/environmental protection, municipal engineering, boiler heating, energy, power transmission and distribution, etc.