1 Reply Latest reply on Jun 10, 2020 9:36 PM by SheetalJ_96

    Programming CYBT-413034-02-EVAL

    KeFo_4700586

      I've been developing a BT SPP app on a CYBT-413034 eval module using Wiced Studio 6.2. I have noi problem building, loading and running my code from the Studio IDE.

       

      Now I would like to allow other team members to program their modules with the resulting hex code, using the Wiced Module Programmer tool, rather than the full blown IDE. I connect to the programmer with the same method I connect to Studio, via a USB cable to the PC. I've configured the DUT serial port to be the same as used by Studio, and pointed the firmware file path to the release.hex file generated by Studio.

      I then place the module in recovery mode and begin the program process. I've been unable to program the module using this tool, here is the resulting log:

       

      10-06-2020 09:33:43.504: LogManager: Started

      10-06-2020 09:33:43.864: COM1: NewSerialPort[3]

      10-06-2020 09:33:43.876: COM1: NewSerialPort[4]

      10-06-2020 09:33:43.887: COM1: NewSerialPort[5]

      10-06-2020 09:33:43.897: COM1: NewSerialPort[6]

      10-06-2020 09:33:43.907: COM1: NewSerialPort[7]

      10-06-2020 09:33:43.917: COM1: NewSerialPort[8]

      10-06-2020 09:33:43.927: COM1: NewSerialPort[9]

      10-06-2020 09:33:43.937: COM1: NewSerialPort[10]

      10-06-2020 09:33:44.029: COM1: NewSerialPort[11]

      10-06-2020 09:33:44.059: WICEDModuleProg: ToggleComponentsByRunningStatus@6 - DutPropChanged - Stopped - False

      10-06-2020 09:33:44.061: WICEDModuleProg: #######RefreshGUIByTestItem

      10-06-2020 09:33:44.063: WICEDModuleProg: Module Family: CYW20719_SFlash

      10-06-2020 09:33:44.084: WICEDModuleProg: ToggleComponentsByRunningStatus@6 - DutPropChanged - Stopped - False

      10-06-2020 09:33:44.084: WICEDModuleProg: #######RefreshGUIByTestItem

      10-06-2020 09:33:44.084: WICEDModuleProg: Module Family: CYW20719_SFlash

      10-06-2020 09:33:44.095: WICEDModuleProg: ToggleComponentsByRunningStatus@7 - ProgBoardChanged - Stopped - False

      10-06-2020 09:33:44.095: WICEDModuleProg: #######RefreshGUIByTestItem

      10-06-2020 09:33:44.096: WICEDModuleProg: Programming Board: CYBT-413034-02 ProgKit

      10-06-2020 09:33:44.096: WICEDModuleProg: Initialization complete

      10-06-2020 09:33:44.142: ProgramManager: Loading config file.

      10-06-2020 09:33:44.144: ProgramManager: Config file successfully loaded from C:\Users\keith\Documents\WICED-Studio-6.2\20719-B1_Bluetooth\build\zengar-CYBT_413034_EVAL-rom-ram-Wiced-release\ZengarModule.xml

      10-06-2020 09:33:44.152: WICEDModuleProg: ToggleComponentsByRunningStatus@0 - TestProgramChanged - Stopped - False

      10-06-2020 09:33:44.152: WICEDModuleProg: #######RefreshGUIByTestItem

      10-06-2020 09:33:44.178: COM6: OpenSerialPort[0]

      10-06-2020 09:33:44.255: PortSetDlg[40]COM6DUT: Connected to "COM6 - USB Serial Port (COM6)" (115200, None)

      10-06-2020 09:33:50.133: PortSetDlg[42]COM6DUT: Removing all serial ports.

      10-06-2020 09:33:50.136: PortSetDlg[42]COM6DUT: Rediscovering serial ports.

      10-06-2020 09:33:50.139: PortSetDlg[42]COM6DUT: 3 serial ports found.

      10-06-2020 09:34:46.579: WICEDModuleProg: Running test program.

      10-06-2020 09:34:46.581: WICEDModuleProg: ToggleComponentsByRunningStatus@2 - Run - Stopped - False

      10-06-2020 09:34:46.698: ProgramManager: Selecting_DUT 1/8

      10-06-2020 09:34:46.737: ProgramManager: Running_test_program 1/1

      10-06-2020 09:34:46.792: ProgKit423028COM6: ###Enter Pin Mode###

      10-06-2020 09:34:46.866: ProgKit423028COM6: Pull Dut#1 CTS_Pin to Low

      10-06-2020 09:34:46.868: ProgKit423028COM6: Writting BCMHelper Cmd: C4

      10-06-2020 09:34:47.125: ProgKit423028COM6: Exception on Pull Dut#1 CTS_Pin to LowSystem.TimeoutException: The operation has timed out.

         at System.IO.Ports.SerialStream.ReadByte(Int32 timeout)

         at System.IO.Ports.SerialStream.ReadByte()

         at System.IO.Ports.SerialPort.ReadByte()

         at CyBLE_MTK_Application.ProgBoard.PullDutPin_SAMI265(Int32 DutNo, DutPinName PinName, PullState PullTo, Int32 WaitTime)

      10-06-2020 09:34:47.128: ProgKit423028COM6: Pull Dut#1 XRES_Pin to Low

      10-06-2020 09:34:47.129: ProgKit423028COM6: Writting BCMHelper Cmd: C2

      10-06-2020 09:34:47.386: ProgKit423028COM6: Exception on Pull Dut#1 XRES_Pin to LowSystem.TimeoutException: The operation has timed out.

         at System.IO.Ports.SerialStream.ReadByte(Int32 timeout)

         at System.IO.Ports.SerialStream.ReadByte()

         at System.IO.Ports.SerialPort.ReadByte()

         at CyBLE_MTK_Application.ProgBoard.PullDutPin_SAMI265(Int32 DutNo, DutPinName PinName, PullState PullTo, Int32 WaitTime)

      10-06-2020 09:34:47.398: ProgKit423028COM6: Pull Dut#1 XRES_Pin to High

      10-06-2020 09:34:47.400: ProgKit423028COM6: Writting BCMHelper Cmd: C3

      10-06-2020 09:34:47.655: ProgKit423028COM6: Exception on Pull Dut#1 XRES_Pin to HighSystem.TimeoutException: The operation has timed out.

         at System.IO.Ports.SerialStream.ReadByte(Int32 timeout)

         at System.IO.Ports.SerialStream.ReadByte()

         at System.IO.Ports.SerialPort.ReadByte()

         at CyBLE_MTK_Application.ProgBoard.PullDutPin_SAMI265(Int32 DutNo, DutPinName PinName, PullState PullTo, Int32 WaitTime)

      10-06-2020 09:34:47.846: ProgKit423028COM6: ###Exit Pin Mode###

      10-06-2020 09:34:47.848: ModeSelectBCM20719: Reset DUT#1 to HCI

      10-06-2020 09:34:47.851: Prog[0]COM6 : Write HCI Cmd (COM6): 01 03 0C 00

      10-06-2020 09:34:49.160: Prog[0]COM6 : No HCI Event in 1000 (1000) ms

      10-06-2020 09:34:49.162: Prog[0]COM6 : Reset (COM6) Timeout!

      10-06-2020 09:34:49.163: Prog[0]COM6 : Soft-Reset Fail COM6

      10-06-2020 09:34:49.165: Prog[0]COM6 : Failed to reset on baudrate = 115200

      10-06-2020 09:34:49.167: Prog[0]COM6 : Failed to reset DUT

      10-06-2020 09:34:49.179: ProgramManager: ---->SetResult [1,1] = TestFailed

      10-06-2020 09:34:49.182: ProgramManager: ---->SetResult [2,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.184: ProgramManager: ---->SetResult [3,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.186: ProgramManager: ---->SetResult [4,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.187: ProgramManager: ---->SetResult [5,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.190: ProgramManager: ---->SetResult [6,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.192: ProgramManager: ---->SetResult [7,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.194: ProgramManager: ---->SetResult [8,1] = ProgrammerNotConfigured

      10-06-2020 09:34:49.238: ProgramManager: Selecting_DUT 2/8

      10-06-2020 09:34:49.253: ProgramManager: Running_test_program 1/1