BASIL_NETWORKS

BANNER_PRODUCT_INFO
IBPD System - CLADS

 

HomeABOUTPRODUCTSSERVICESSUPPORTCONTACTARTICLESBLOG
SystemsPeripheralsInstrumentsResearchNetworksSoftwareProgrammersOEM
IBPD-SystemIBPD-CAMSIBPD-HardwareIBPD-CLADSIBPD-ProtocolsIBPD-Test Equip
 
Main MenuAuto Create HexModify Hex BlockCLA ConfigureCreate ShortcutCLA Commands CfgUser ButtonsDefault DirectoriesRTF Editor

BANNER_IBPD-SYS_ModifyCreateHexBlocks

The Modify Intel Hex formatted block is one of the development features for the IBPD System.  It is a dual purpose editor and is integrated with the remaining CLADS dialogs.  In the Edit mode the user may select, insert, delete, add, modify an Intel Hex Formatted block of data.  In the Create mode, the user may create an Intel Hex Formatted block of data the save it independently or insert it into the current Intel Hex formatted file loaded.

We will discuss the functions separately since they have different dialog functions.  The first section will cover the "Edit" mode and the second section will cover the "Create" Mode.  Both modes may be switched back and forth independently without loss of data.  The data is interactive such that the file loaded in one dialog is automatically transferred to the Modify/Create Hex Block Dialog.  This allows easier editing of the block and when returned the data is automatically updated in the calling dialog.

EDIT Mode - In the Edit mode the data is treated like any other editor. The user may change the data, add a data byte up to the max length of a Intel Hex Block (255 data bytes) and save a selected block or the entire file.  The fields remain the same for both Edit and Create mode for this dialog with the addition of a Create New Block Parameters menu (5) trough (9), these will be covered in the Create Mode section.

CREATE Mode - In the create mode the user creates an Intel Formatted Hex block  that creates a blank block of 16 bytes and displays them in the data list box.  The user then starts the editing session and modifies the data accordingly.  This creation process is for small blocks and not meant as a Intel Hex format creation for larger files.  There is a 16 block of 255 bytes each limit for the Create mode.  Most Compilers today allow the user to generate an Intel Hex file format like GCC.  Even several of the Programmable logic chip companies allow the user to generate the programming file in an Intel Hex format.  For larger binary files that you want to create a linear hex file to edit use the Auto Create Hex File dialog.

BANNER_CLADS_ModifyExistingBlockDialog
CLADS_ModifyBlockDialog

Top

1_Modify/Create Hex Block Main Menu

This is the main menu for the dialog. It controls the switching of the modes and saving new block that have been created or modified.  The default entry mode for this dialog at startup is the Modify/Edit File mode and it is linked with the Hex Block Debug and other dialogs. The default entry if no new block is active will disable the CREATE NEW BLOCK PARAMETERS section (5) of the Dialog and continue the function for editing if a hex file has been loaded.  If this is the first time entry and there are no files or new blocks active the dialog will wait till the user selects a file to load or creates a new block.  The diagram below shows how this dialog serves to display both Edit and Create modes independently.  If both New Blocks and a Intel Hex data File is loaded then the Buttons become Display switching. If and of the two are not loaded or created then the buttons become Create for new block and Load for hex file. The first time a new block is created the user should Press the Clear/Delete New Blocks to insure there are no remnants of a previous block in the system. This is recommended when creating several new blocks files.

    Create/Display New Block - This is the Create New Block function.   The New Block is independent from the edit Hex File mode and will allow the switching back and forth in real time.  When the Create/Display Button is pressed it performs a test to see if there is a new block active, if no new block is active it will setup a new block buffer and activate the CREATE NEW BLOCK PARAMETERS section (5) of the Dialog.  The button has two functions, the first is to allow the creation of a new block and second switch displays to the Edit New Block mode when the edit file mode is active.

    Clear/Delete New Blocks - This function will Clear the New Block Buffer and Delete any and all existing New Block created data and default to the load file Edit mode.

    Save New Blocks - This function allows the user to save newly created hex blocks to a single file for later use like inserting them into a file or running them separately for device debugging.  The block may be save in either Intel Hex format or binary byte format.

3_Active File Loaded

This is the file loaded into the dialog for editing or debugging.  The Load/Display button (4) controls the switching from Create mode to Edit mode once the file is loaded.  The file may be loaded from any for the three dialogs.

4_Load/Display Hex File

This button allows the user to selectively load a Intel Hex Formatted file for editing,  It is associated with a browse button allowing the user to browse the system directories first to locate the file.  If the Field is empty then it defaults to Browse for File mode. If the field has a filename displayed it will be loaded


BANNER_CLADS_CreateNewBlock

For Convenience Items 5_ through 9_ are repeated with the Create New Block state of the Dialog after this main section.

5_CREATE NEW BLOCK PARAMETERS

This section is for creating a new Hex Formatted Block.  The IBPD-SYS Create Hex Block conforms to the 1988 official specifications released to the public.  The addition of selecting an Offset starting address (0x0000-0xFFFF) and a Block size (0x00 - 0xFF) has been added to the dialog for a more in depth creation of the Hex Formatted file than the standard 16 bytes.  The user may also select the Offset address and the size of the block (0x00 - 0xFF).  Each protocol has its own block parameters as seen by the other block types disabled.

6_Select Block Type

The standard Intel Hex Block types are 00 to 05.  BASIL Networks added Protocol Block Types10 -28 for the to identify and setup BUS Protocols.  This is still under development and will be released in the near future and is embedded into the CLADS BUS protocol environment.  The hex file section follows the Intel Hex Format Specification of Jan 1988.  The addition to the header part of the file that is created is for the IBPD-SYS that has a different format from the Intel Hex Format Identifier allowing it to be read by the IBPD System and not interfere with other Intel Hex File programmers that are used in a production environment.  The addition of the BUS type to the file allows the user to incorporate a series of commands for setting up the device for prior to programming data.  Many system and devices require a setup process of writes and reads prior to programming such as a multilevel I2C or SPI BUS implementation that requires the selection of the actual device through a series of multiplexors.  This added feature transfers the preset Command and Control bytes initially setup in the device database to be transferred to the dialog and selected via a drop down list and implemented into the actual Hex file.

7_Create/Insert New Block

Once the parameters have been established the user may click on the Create/Insert New Block button and the block will be created from the selected parameters.  At that point the Block Listbox and the Data Listbox will show  the new Block.  The Block Listbox will show the type selected and the offset selected.  The Data Listbox will display the number of bytes in sequence with the data bytes set to zero.   The user then edits the block to the desired data bytes for each address.  The checksum is automatically updated when the user clicks the Replace Data button for each byte.

8_Block Type Command

This addition allows the user to add a header file that is used within the IBPD System to instruct it to perform a preliminary setup process before programming the selected device.  This is a process feature for the IBPD System to aid in development and debugging as well as production programming devices.

9_BUS Protocol Parameters

These Parameters allow the user to select a specific type of file structure for the IBPD protocols.   This function is only present for IOntel Hex file format.  It is scheduled to interact with several protocol formats for added control during the data transfer.

Current # New Blocks - This is the current number of new blocks created during this session.

Offset - This is the Offset and Extended Address area for the Block being Created

Block Size - This is the Block Size MAX=0xFF

Top


Editing Section of Dialog

10_Current Hex Blocks Listbox

This Listbox holds the current active blocks in either the file selected or the new blocks created.  A single click on a block will display the data bytes in that block to the right in the Data Listbox.

11_Delete / Un-Delete Block

Select the current block to be deleted when updating the blocks button (14) is pushed.  Block are not deleted until the blocks are updated.  The Delete/Undelete button toggles the delete flag.

12_Insert Saved Block

This function allows the user to browse for a saved Hex formatted Block of data and insert it into the list of blocks displayed.

13_Place Selected Block Update

Allows the user to select the position of where to insert a block of data. Before, after or just replace the data block.  This will only insert one block of data at a time and the maximum number of blocks is 16 for the create block session.  Larger number of blocks are created using the Auto Create Hex File dialog.

14_Update Block

Update the current list of blocks.  This function allows the user to clean and organize the list of blocks in the listbox.  Delete those that have been marked for deletion and redisplay the blocks.  This does not save the blocks to any file and if you close out the IBPD-SYS main program you will loose all data created.

15_ Selected Block Information

This is the remaining information of the selected block in the Block Listbox.

Selected Hex Block Data Editing group

16_ Delete Selected Data Byte

This is the Data of the blocks editing session - it allows the user to delete the selected byte from the block.  Once bytes are changed the Update Block should be executed to insure that the data is in organized forma and the right addressing is implemented.  Data bytes  may be changed and deleted. The starting address of these bytes may only be changed then the blocks should be updated to insure that there are no conflicting addresses in the sequence of blocks.

17_Add Data byte to Selected Block

A data byte may be added to the block up to the maximum size of 255 bytes.  If data is added the Update Blocks have to be executed to insure that there are no conflicting addresses in the sequence of blocks.

18_ Replace Data Byte

Replacing a data byte does not require the blocks to be updated. The replace byte is put directly in the buffer area.  Saving the data is required if the user want to use it again at a later date.

19_ Hex Address / Data

This is the editing session of the selected block of data.

20_ Hex Block Data Listbox

This is the listbox of the current blocks being processed.

Save Modified Data to File Session

21_ Filename Save Block

Once the data has been processed the user may save all or any portion of it in blocks.  These blocks may be used throughout the IBPD-SYS selected BUS protocol.

22_ File Byte Size

This field will be filled when the file is saved.  It is calculated in real time as the file is being saved.

23_ Save File Type

The user may save the file in Intel Hex or Straight binary.  If the file is saved in binary it will be a linear byte addressed file with all the Hex formatting removed.

24_ Single Block Save

This allows the user to save a selected block in the selected format. If the file is saved in binary it will be a linear byte addressed file with all the Hex formatting removed.

25_ Make Program File

This button will active the make file and save the data selected to the filename shown in 21_.

Status and Help Session

26_ Status Bar

Display the result of the last function executed.

27_ Help - This Page

 

Top

BANNER_CreateNewBlockDialog

CLADS_ModicyBlockCreateDialog

5_ CREATE NEW BLOCK PARAMETERS

This section is for creating a new Hex Formatted Block.  The IBPD System Create Hex Block conforms to the 1988 official specifications released to the public.  The addition of selecting an Offset starting address (0x0000-0xFFFF) and a Block size (0x00 - 0xFF) has been added to the dialog for a more in depth creation of the Hex Formatted file than the standard 16 bytes.  The user may also select the Offset address and the size of the block (0x00 - 0xFF).  Each protocol has its own block parameters as seen by the other block types disabled.

6_ Select Block Type

The standard Intel Hex Block types are 00 to 05.  BASIL Networks added Protocol Block Types10 -28 for the to identify and setup BUS Protocols.  This is still under development and will be released in the near future and is embedded into the CLADS BUS protocol environment.  The hex file section follows the Intel Hex Format Specification of Jan 1988.  The addition to the header part of the file that is created is for the IBPD-SYS that has a different format from the Intel Hex Format Identifier allowing it to be read by the IBPD System and not interfere with other Intel Hex File programmers that are used in a production environment.  The addition of the BUS type to the file allows the user to incorporate a series of commands for setting up the device for prior to programming data.  Many system and devices require a setup process of writes and reads prior to programming such as a multilevel I2C or SPI BUS implementation that requires the selection of the actual device through a series of multiplexors.  This added feature transfers the preset Command and Control bytes initially setup in the device database to be transferred to the dialog and selected via a drop down list and implemented into the actual Hex file.

7_ Create/Insert New Block

Once the parameters have been established the user may click on the Create/Insert New Block button and the block will be created from the selected parameters.  At that point the Block Listbox and the Data Listbox will show  the new Block.  The Block Listbox will show the type selected and the offset selected.  The Data Listbox will display the number of bytes in sequence with the data bytes set to zero.  The user then edits the block to the desired data bytes for each address.  The checksum is automatically updated when the user clicks the Replace Data button for each byte.

8_ Block Type Command

This addition allows the user to add a header file that is used within the IBPD System to instruct it to perform a preliminary setup process before programming the selected device.  This is a process feature for the IBPD-SYS to aid in development and debugging as well as production programming devices.

9_BUS Protocol Parameters

These Parameters allow the user to select a specific type of file structure for the IBPD protocols.   This function is only present for IOntel Hex file format.  It is scheduled to interact with several protocol formats for added control during the data transfer.

Current # New Blocks - This is the current number of new blocks created during this session.

Offset - This is the Offset and Extended Address area for the Block being Created

Block Size - This is the Block Size MAX=0xFF

TOP
Copyright 1990-2018 BASIL Networks, PLLC. All rights reserved
webmaster