
4.6. NetSDR Firmware Update Item Definitions
This set of items is used to update the NetSDR firmware or FPGA code.
4.6.1 Update Mode Control
Purpose: Controls the Updating of Software or Firmware code.
Control Item Code: 0x0300
Control Item Parameter Format:
The first parameter is a 1 byte device ID ( 0 to 255).
This byte specifies the device or bank to program.
Parameter 2 is a 1 byte the Mode command.
0x00 == ENTER (Enter boot loader code if it is not running in it currently)
0x01 == START (Begin the update process)
0x02 == END (End update process and jump back into user code)
0x03 == ABORT (Abort update process)
Parameter 3,4,5, and 6 is a 4 byte password to protect against inadvertent programming.
The NetSDR password is:
Parameter 3 == 0x53
Parameter 4 == 0x44
Parameter 5 == 0x52
Parameter 6 == 0x04
Example, to start the update process:
The host sends this:
[0A][00] [00][03] [00] [01] [53] [44] [52] [04]
The Target responds with:
[0A][00] [00][03] [00] [01] [53] [44] [52] [04]
4.6.2 Update Mode Parameters
Purpose: Request programming parameters from the target device.
Control Item Code: 0x0302
Control Item Parameter Format:
The first parameter is a 1 byte device ID ( 0 to 255).
This byte specifies the device or bank to program.
The response contains these additional bytes:
Parameter 2,3,4,5 is the Flash size in bytes (32 bit unsigned integer LSB first)
Parameter 6,7,8,9 is the Flash programming page size in bytes (32 bit unsigned integer LSB first)
Parameter 10,11,12,13 is the Flash Sector size in bytes (32 bit unsigned integer LSB first)
The host sends this to request the programming parameters from the target device 0:
[05][20] [02][03] [00]
The Target responds with: (256K byte FLASH, 256 byte page, 16384 byte sector)
[11][00] [02][03] [00] [00] [00] [04] [00] [00] [01] [00] [00] [00] [40] [00] [00]
4.6.3 Update Mode Data Item 0 Block
Purpose: This is the main data item message that is sent to the target containing device programming data.
Data 0 Item Parameter Format:
Rev. 1.03 2011-11-01
29
Comentarios a estos manuales