Hi all,
This WIN32 utility is for patching a CC85xx production test image with a startup EHIF Command. This makes it possible to make test images for RF chambers etc. Download the zip and give it a try. The below is a paste of the included readme file:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
README file for Generate Automatic Production Test Image
Works with firmware v1.1.0 rev >= 34708
This WIN32 utility is for patching a CC85xx production test image with a startup EHIF Command. This makes it possible to make test images for RF chambers etc.
Do as follows:
1. Generate a production test hex-image with the PurePath Wireless Configurator. This is done by selecting "Production test" in the "Image type" field in the Flash programming panel. Then hit the "Save generated image to file" button and choose the name and location for your hex.
2. Run GenAutoProdTestImage.exe from the command line with the hex as input. GenAutoProdTestImage.exe will modify the hex file. The syntax is as follows:
GenAutoProdTestImage.exe -f input.hex 01 02 03 04 05 06 07 08
-f input.hex - filename for input hex file
01 02 03 04 05 06 07 08 - hex data for EHIF command
Byte descriptions :
b[0] - Delay before command is executed (in ms),
Special values :
0xFF - is no command present
0x00 - wait for Audio Device (Codec) to start before issuing command.
b[1] - Command type (ref. CC85xx User Guide)
b[2] - Command parameter length in bytes
b[3-n] - Command parameters
Examples :
To set a CW with a frequency of 2400MHz and an amplitude of 0dBm:
GenAutoProdTestImage.exe -f 8520_CW_2400_0dBm.hex 00 15 03 01 52 00
Command here is RFT_TXTST_CW (0x15),Parameters (0x03),ENABLE (0x01),Channel 2400MHz(0x52),TX_POW 0dBm(0x00)
To set an audio tone of 1KHz and 0.5FS output on Left channel:
GenAutoProdTestImage.exe -f 8520_Audio_1KHz_0.5FS_Left.hex 00 20 05 00 00 01 00 64
Command here is AT_GEN_TONE (0x20), Parameters (0x05), CHANNEL Left (0x00), RESERVED (0x00), AMP_TONE 0.5FS (0x00), FREQ_TONE 1000Hz (0x64)
To set an audio tone of 1KHz and 0.5FS output on Right channel:
GenAutoProdTestImage.exe -f 8520_Audio_1KHz_0.5FS_Right.hex 00 20 05 01 00 01 00 64
Command here is AT_GEN_TONE (0x20), Parameters (0x05), CHANNEL Right (0x01), RESERVED (0x00), AMP_TONE 0.5FS (0x00), FREQ_TONE 1000Hz (0x64)
To set GIO1 to output with Logic '1' on output :
GenAutoProdTestImage.exe -f 8520_GIO1_Test_1.hex 00 23 08 00 00 00 01 00 00 00 01
Command here is IOTST_OUTPUT (0x23), Parameters (0x08), - (0x00), - (0x00), - (0x00), GIO1 (0x01), - (0x00), - (0x00), - (0x00), GIO1 (0x01)
To set GIO1 to output with Logic '0' on output :
GenAutoProdTestImage.exe -f 8520_GIO1_Test_0.hex 00 23 08 00 00 00 01 00 00 00 00
Command here is IOTST_OUTPUT (0x23), Parameters (0x08), - (0x00), - (0x00), - (0x00), GIO1 (0x01), - (0x00), - (0x00), - (0x00), GIO1 (0x01)