This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCU-PLUS-SDK-AM243X: Fails 60-80% when writing HS-SE conversion key writer via usb_dfu_uniflash.py other flash writers work consistently.

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

We have been attempting to use usb_dfu_uniflash.py to write a HS-SE conversion key writer to AM243x MCU with inconsistent results.

If we write the same key writer to the MCU via uart_uniflash.py, it works consistently.

We have tested this on three setups and four different board. In the best case this fails 6 out of 10 times. It fails more often on other boards and setups, realizing that 10-30 attempts isn't a large statistical sample.

When we make the attempt it is part of a provisioning script that we have written for our product that first erases the MCU (if not already found erased). The erase status is determined by using dfu-util -l and looking to see that USB path is returned for our device:

09:49:14 592 [INFO] Results of script:
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [0451:6165] ver=0200, devnum=15, cfg=1, intf=0, path="3-1.2.2.4", alt=1, name="SocId", serial="01.00.00.00"
Found DFU: [0451:6165] ver=0200, devnum=15, cfg=1, intf=0, path="3-1.2.2.4", alt=0, name="bootloader", serial="01.00.00.00"

The script then writes to the MCU using usb_dfu_uniflash.py, this script does not fail. Example of output from logs below.

09:49:14 594 [INFO] Executing script: /Users/markwar/workspace/calamari/calamari/am243x/usb_dfu_uniflash.py --cfg /Users/markwar/workspace/calamari/tmp_conv_3-1.2.2.4_cu.usbserial-312300.cfg -p 3-1.2.2.4 and expecting "All\ commands\ from\ config\ file\ are\ executed" (RegEx)
09:49:14 594 [INFO] Script start ----------------------------------------

09:49:16 183 [INFO] Results of script:
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6165
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 512
Warning: Overriding device-reported transfer size
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytes
Download	[=                        ]   4%        14848 bytes
Download	[==                       ]   8%        29184 bytes
Download	[===                      ]  12%        43520 bytes
Download	[====                     ]  16%        57856 bytes
Download	[=====                    ]  20%        72192 bytes
Download	[======                   ]  24%        86528 bytes
Download	[=======                  ]  28%       100864 bytes
Download	[========                 ]  32%       115200 bytes
Download	[=========                ]  36%       129536 bytes
Download	[==========               ]  40%       143872 bytes
Download	[===========              ]  44%       158208 bytes
Download	[============             ]  48%       172544 bytes
Download	[=============            ]  52%       186880 bytes
Download	[==============           ]  56%       201216 bytes
Download	[===============          ]  60%       215552 bytes
Download	[===============          ]  63%       228864 bytes
Download	[================         ]  64%       229888 bytes
Download	[=================        ]  68%       244224 bytes
Download	[==================       ]  72%       258560 bytes
Download	[===================      ]  76%       272896 bytes
Download	[====================     ]  80%       287232 bytes
Download	[=====================    ]  84%       301568 bytes
Download	[======================   ]  88%       315904 bytes
Download	[=======================  ]  92%       330240 bytes
Download	[======================== ]  96%       345088 bytes
Download	[=========================] 100%       358431 bytes
Download done.
DFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!

Parsing config file ...
Parsing config file ... SUCCESS. Found 1 command(s) !!!

Executing command 1 of 1 ...
Found flash writer ... sending /Users/markwar/workspace/calamari/tests/resources/sbl_tiboot3_otp_data_idx_0_ff.bin
>>> sudo /opt/homebrew/bin/dfu-util -l -p 3-1.2.2.4
----------------------------------------------------------------------------
Executing DFU command with alt_setting=0 interface=0 transfer_size=512
----------------------------------------------------------------------------
>>> sudo /opt/homebrew/bin/dfu-util -a 0 -i 0 -t 512 -D /Users/markwar/workspace/calamari/tests/resources/sbl_tiboot3_otp_data_idx_0_ff.bin -p 3-1.2.2.4
Sent flashwriter /Users/markwar/workspace/calamari/tests/resources/sbl_tiboot3_otp_data_idx_0_ff.bin of size 358431 bytes in 1.49s. Bandwidth = 234.92kbps

All commands from config file are executed !!!

09:49:16 183 [INFO] Script end (/Users/markwar/workspace/calam) ----------------------------------------

After the above using usb_dfu_uniflash.py script is run we look at the UART output of the MCU. Most commonly we see the MCU fail to finish booting. It doesn't hang at the same place in all cases, but the example below is the most common place we see it hang.

Starting Keywriting
Set GPIO0_74 high to enable VPP 1.8v 
Please ent

In less common cases it looks the MCU boots and we get the sbl_keywriter # prompt, but the MCU hangs in response to the START_PROGRAM_KEY command. Again not always in the same place, so here are a few examples of the output we see from our logs when we make the attempt.

sbl_keywriter # START_PROGRAM_KEY
Start programming OTP keys: 
keys Certificate found: 0x70052600 

sbl_keywriter # START_PRO

sbl_keywriter # START_PROGRAM_KEY
Start programming OTP keys: 
keys Certificate found: 0x'

When this works we see the following output.

sbl_keywriter # START_PROGRAM_KEY
Start programming OTP keys: 
keys Certificate found: 0x70052600 
Keywriter Debug Response:0x0 
Success Programming Keys 
Set GPIO0_74 low to disable

Again to be clear about the question: Has TI tested this HS-SE conversion key writer when loaded via both UART and USB?

What can I do to make this process reliable via USB?

  • I forgot an important piece of information to add to this ticket. I have no problem using usb_dfu_uniflash.py as a flash writer via USB for our application code, we do not use the same flash writer for both USB and UART, but our provisioning script supports both means to write flash. Thus I think we know that the USB port on our device works well, thus we believe the hardware is good.

    This seems to be either a failure of our key writer firmware to work for USB (but it does work when written to the MCU via UART) or a failure of usb_dfu_uniflash.py to support writing the key writer to the MCU.

    My co-worker will describe her changes to the key writer code.

  • The only change we made on TI's keywriter is to add:
    1) Toggle the VPP voltage via a GPIO before programming the key and after the key is programmed. 
    2) Add a simple cmd line interface, to allow the user to type a command to start programming the key. 

    Note the exact same binary runs well when using UART boot, but it is not stable after switching to USB boot.  We didn't expect to see the difference between different boot modes here. 

    The failure behavior here is the same on the USB boot case after disabling UART0 ISR in the keywriter, suggested by Prashant in another thread. 

    Thanks, 
    Hong 

  • I went back to test the keywriter binary directly built from the release. Only commented out the two line to setVPP, because we don't have the same part on our board. I noticed the difference between UART boot and USB boot. 

    UART boot, it failed due to the VPP was not set. 

    Starting Keywriting
    keys Certificate found: 0x70046500
    Keywriter Debug Response:0x20000000
    Error occured...


    USB boot, it hang at early stage as below. 

    Starting Keywriting
    keys Certificate found: 0x7004


    Note that the keywriter version here is from SDK 9.1's release.  

    Thanks, 
    Hong 

  • Hi Hong,

    The failure signature strongly suggests the UART Interrupt issue. Could you please share how did you disable the UART Interrupt mode in the keywriter?

    If possible, please share the keywriter syscfg file.

    Regards,

    Prashant

  • Hello Prashant, 

    Here is the change to disable UART0 ISR, 



    I also repeated the same failure using keywriter from SDK10's release later last night with USB boot.  The failure behavior is exactly the same. 

    Thanks, 
    Hong 

  • Hello Prashant, 

    I was able to reproduce the same issue on TI's EVM, and here is the capture using JTAG 

  • Hi Hong,

    The call trace suggests the UART driver waiting for data to be read. Are you not able to input anything on the console?

    Have you tried commenting the DebugP_scanf & still see the issue?

    Regards,

    Prashant

  • Hello Prashant, 

    When I captured the above screenshot using JTAG, I was not able to input anything on the console. UART already hang.  

    I have not tried commenting out the DebugP_scanf yet.

    I think this information is enough for TI to reproduce on TI side using TI EVM, given this is not limited to our board. 

    Thanks, 
    Hong 

  • I do see DebugP_scanf is used by other SDK examples. And it calls UART_read internally. I don't see any issues that should be caused by the DebugP_scanf here. 

    We need to receive input command from UART interface, so we cannot bypath this. Instead, could TI help to understand why the DebugP_scanf hangs in the ti's keywriter when using USB boot mode? 

    Thanks, 
    Hong 

  • Hello,

    I enabled the DebugP_scanf with the following patch:

    diff --git a/source/security/sbl_keywriter/am243x-evm/r5fss0-0_nortos/main.c b/source/security/sbl_keywriter/am243x-evm/r5fss0-0_nortos/main.c
    index 02679a82..7f8237b9 100644
    --- a/source/security/sbl_keywriter/am243x-evm/r5fss0-0_nortos/main.c
    +++ b/source/security/sbl_keywriter/am243x-evm/r5fss0-0_nortos/main.c
    @@ -51,7 +51,7 @@ void loop_forever(void)
     int32_t main(void)
     {
         int32_t status = SystemP_SUCCESS;
    -
    +    uint8_t flag = 0;
     
     #if defined(COMBINED_BOOT_MODE)
         status = Bootloader_socWaitForFWBoot();
    @@ -82,11 +82,19 @@ int32_t main(void)
     
         status = Sciclient_getVersionCheck(1);
     
    +    while(flag != 'y')
    +    {
    +        DebugP_log("Press 'y' to program certificate: ");
    +        DebugP_scanf("%c", &flag);
    +    }
    +
         if (status == SystemP_SUCCESS)
         {
             keywriter_processKeyConfig();
         }
     
    +    DebugP_log("DONE!!!\r\n");
    +
         Drivers_close();
         System_deinit();
     
    

    and did not see any issues for 50 runs of the keywriter binary (tiboot3.bin).

    [13:18:07.814] Combined boot mode 
    
    [13:18:07.814] Starting Keywriting
    [13:18:07.814] Enabled VPP
    
    [13:18:07.814] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:07.830] DMSC Firmware revision 0xa
    [13:18:07.830] DMSC ABI revision 4.0
    
    [13:18:07.830] Press 'y' to program certificate: y
    [13:18:09.126] keys Certificate found: 0x7001b980 
    [13:18:09.318] Keywriter Debug Response:0x0 
    [13:18:09.318] Success Programming Keys 
    [13:18:09.320] DONE!!!
    [13:18:14.245] Combined boot mode 
    
    [13:18:14.245] Starting Keywriting
    [13:18:14.246] Enabled VPP
    
    [13:18:14.246] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:14.261] DMSC Firmware revision 0xa
    [13:18:14.261] DMSC ABI revision 4.0
    
    [13:18:14.262] Press 'y' to program certificate: y
    [13:18:15.157] keys Certificate found: 0x7001b980 
    [13:18:15.349] Keywriter Debug Response:0x0 
    [13:18:15.349] Success Programming Keys 
    [13:18:15.349] DONE!!!
    [13:18:20.021] Combined boot mode 
    
    [13:18:20.021] Starting Keywriting
    [13:18:20.021] Enabled VPP
    
    [13:18:20.037] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:20.037] DMSC Firmware revision 0xa
    [13:18:20.038] DMSC ABI revision 4.0
    
    [13:18:20.038] Press 'y' to program certificate: y
    [13:18:20.821] keys Certificate found: 0x7001b980 
    [13:18:21.013] Keywriter Debug Response:0x0 
    [13:18:21.013] Success Programming Keys 
    [13:18:21.013] DONE!!!
    [13:18:25.476] Combined boot mode 
    
    [13:18:25.477] Starting Keywriting
    [13:18:25.477] Enabled VPP
    
    [13:18:25.477] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:25.492] DMSC Firmware revision 0xa
    [13:18:25.493] DMSC ABI revision 4.0
    
    [13:18:25.493] Press 'y' to program certificate: y
    [13:18:26.436] keys Certificate found: 0x7001b980 
    [13:18:26.628] Keywriter Debug Response:0x0 
    [13:18:26.629] Success Programming Keys 
    [13:18:26.629] DONE!!!
    [13:18:30.884] Combined boot mode 
    
    [13:18:30.884] Starting Keywriting
    [13:18:30.884] Enabled VPP
    
    [13:18:30.884] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:30.900] DMSC Firmware revision 0xa
    [13:18:30.900] DMSC ABI revision 4.0
    
    [13:18:30.900] Press 'y' to program certificate: y
    [13:18:31.988] keys Certificate found: 0x7001b980 
    [13:18:32.180] Keywriter Debug Response:0x0 
    [13:18:32.180] Success Programming Keys 
    [13:18:32.180] DONE!!!
    [13:18:36.611] Combined boot mode 
    
    [13:18:36.612] Starting Keywriting
    [13:18:36.612] Enabled VPP
    
    [13:18:36.628] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:36.628] DMSC Firmware revision 0xa
    [13:18:36.628] DMSC ABI revision 4.0
    
    [13:18:36.628] Press 'y' to program certificate: y
    [13:18:37.555] keys Certificate found: 0x7001b980 
    [13:18:37.747] Keywriter Debug Response:0x0 
    [13:18:37.748] Success Programming Keys 
    [13:18:37.748] DONE!!!
    [13:18:42.211] Combined boot mode 
    
    [13:18:42.211] Starting Keywriting
    [13:18:42.211] Enabled VPP
    
    [13:18:42.212] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:42.227] DMSC Firmware revision 0xa
    [13:18:42.227] DMSC ABI revision 4.0
    
    [13:18:42.228] Press 'y' to program certificate: y
    [13:18:43.059] keys Certificate found: 0x7001b980 
    [13:18:43.251] Keywriter Debug Response:0x0 
    [13:18:43.251] Success Programming Keys 
    [13:18:43.251] DONE!!!
    [13:18:47.619] Combined boot mode 
    
    [13:18:47.619] Starting Keywriting
    [13:18:47.635] Enabled VPP
    
    [13:18:47.635] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:47.635] DMSC Firmware revision 0xa
    [13:18:47.635] DMSC ABI revision 4.0
    
    [13:18:47.635] Press 'y' to program certificate: y
    [13:18:48.547] keys Certificate found: 0x7001b980 
    [13:18:48.739] Keywriter Debug Response:0x0 
    [13:18:48.739] Success Programming Keys 
    [13:18:48.739] DONE!!!
    [13:18:53.106] Combined boot mode 
    
    [13:18:53.106] Starting Keywriting
    [13:18:53.107] Enabled VPP
    
    [13:18:53.107] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:53.122] DMSC Firmware revision 0xa
    [13:18:53.123] DMSC ABI revision 4.0
    
    [13:18:53.123] Press 'y' to program certificate: y
    [13:18:54.066] keys Certificate found: 0x7001b980 
    [13:18:54.242] Keywriter Debug Response:0x0 
    [13:18:54.242] Success Programming Keys 
    [13:18:54.242] DONE!!!
    [13:18:58.898] Combined boot mode 
    
    [13:18:58.898] Starting Keywriting
    [13:18:58.898] Enabled VPP
    
    [13:18:58.898] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:18:58.914] DMSC Firmware revision 0xa
    [13:18:58.914] DMSC ABI revision 4.0
    
    [13:18:58.914] Press 'y' to program certificate: y
    [13:18:59.874] keys Certificate found: 0x7001b980 
    [13:19:00.066] Keywriter Debug Response:0x0 
    [13:19:00.066] Success Programming Keys 
    [13:19:00.066] DONE!!!
    [13:19:04.561] Combined boot mode 
    
    [13:19:04.561] Starting Keywriting
    [13:19:04.562] Enabled VPP
    
    [13:19:04.562] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:04.577] DMSC Firmware revision 0xa
    [13:19:04.578] DMSC ABI revision 4.0
    
    [13:19:04.578] Press 'y' to program certificate: y
    [13:19:05.425] keys Certificate found: 0x7001b980 
    [13:19:05.601] Keywriter Debug Response:0x0 
    [13:19:05.601] Success Programming Keys 
    [13:19:05.617] DONE!!!
    [13:19:10.513] Combined boot mode 
    
    [13:19:10.513] Starting Keywriting
    [13:19:10.513] Enabled VPP
    
    [13:19:10.513] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:10.529] DMSC Firmware revision 0xa
    [13:19:10.529] DMSC ABI revision 4.0
    
    [13:19:10.529] Press 'y' to program certificate: y
    [13:19:12.289] keys Certificate found: 0x7001b980 
    [13:19:12.465] Keywriter Debug Response:0x0 
    [13:19:12.465] Success Programming Keys 
    [13:19:12.481] DONE!!!
    [13:19:16.944] Combined boot mode 
    
    [13:19:16.945] Starting Keywriting
    [13:19:16.945] Enabled VPP
    
    [13:19:16.960] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:16.961] DMSC Firmware revision 0xa
    [13:19:16.961] DMSC ABI revision 4.0
    
    [13:19:16.961] Press 'y' to program certificate: y
    [13:19:17.776] keys Certificate found: 0x7001b980 
    [13:19:17.968] Keywriter Debug Response:0x0 
    [13:19:17.969] Success Programming Keys 
    [13:19:17.969] DONE!!!
    [13:19:22.480] Combined boot mode 
    
    [13:19:22.480] Starting Keywriting
    [13:19:22.480] Enabled VPP
    
    [13:19:22.480] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:22.496] DMSC Firmware revision 0xa
    [13:19:22.496] DMSC ABI revision 4.0
    
    [13:19:22.496] Press 'y' to program certificate: y
    [13:19:23.408] keys Certificate found: 0x7001b980 
    [13:19:23.584] Keywriter Debug Response:0x0 
    [13:19:23.584] Success Programming Keys 
    [13:19:23.600] DONE!!!
    [13:19:29.375] Combined boot mode 
    
    [13:19:29.376] Starting Keywriting
    [13:19:29.376] Enabled VPP
    
    [13:19:29.376] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:29.391] DMSC Firmware revision 0xa
    [13:19:29.392] DMSC ABI revision 4.0
    
    [13:19:29.392] Press 'y' to program certificate: y
    [13:19:30.063] keys Certificate found: 0x7001b980 
    [13:19:30.239] Keywriter Debug Response:0x0 
    [13:19:30.239] Success Programming Keys 
    [13:19:30.255] DONE!!!
    [13:19:37.407] Combined boot mode 
    
    [13:19:37.407] Starting Keywriting
    [13:19:37.407] Enabled VPP
    
    [13:19:37.407] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:37.423] DMSC Firmware revision 0xa
    [13:19:37.423] DMSC ABI revision 4.0
    
    [13:19:37.423] Press 'y' to program certificate: y
    [13:19:38.287] keys Certificate found: 0x7001b980 
    [13:19:38.463] Keywriter Debug Response:0x0 
    [13:19:38.479] Success Programming Keys 
    [13:19:38.479] DONE!!!
    [13:19:44.686] Combined boot mode 
    
    [13:19:44.686] Starting Keywriting
    [13:19:44.686] Enabled VPP
    
    [13:19:44.687] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:44.702] DMSC Firmware revision 0xa
    [13:19:44.702] DMSC ABI revision 4.0
    
    [13:19:44.702] Press 'y' to program certificate: y
    [13:19:45.582] keys Certificate found: 0x7001b980 
    [13:19:45.758] Keywriter Debug Response:0x0 
    [13:19:45.774] Success Programming Keys 
    [13:19:45.774] DONE!!!
    [13:19:55.261] Combined boot mode 
    
    [13:19:55.261] Starting Keywriting
    [13:19:55.262] Enabled VPP
    
    [13:19:55.262] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:19:55.262] DMSC Firmware revision 0xa
    [13:19:55.277] DMSC ABI revision 4.0
    
    [13:19:55.278] Press 'y' to program certificate: y
    [13:19:56.109] keys Certificate found: 0x7001b980 
    [13:19:56.285] Keywriter Debug Response:0x0 
    [13:19:56.301] Success Programming Keys 
    [13:19:56.301] DONE!!!
    [13:20:03.133] Combined boot mode 
    
    [13:20:03.133] Starting Keywriting
    [13:20:03.133] Enabled VPP
    
    [13:20:03.133] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:03.149] DMSC Firmware revision 0xa
    [13:20:03.149] DMSC ABI revision 4.0
    
    [13:20:03.149] Press 'y' to program certificate: y
    [13:20:04.013] keys Certificate found: 0x7001b980 
    [13:20:04.205] Keywriter Debug Response:0x0 
    [13:20:04.205] Success Programming Keys 
    [13:20:04.205] DONE!!!
    [13:20:08.844] Combined boot mode 
    
    [13:20:08.844] Starting Keywriting
    [13:20:08.844] Enabled VPP
    
    [13:20:08.860] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:08.860] DMSC Firmware revision 0xa
    [13:20:08.861] DMSC ABI revision 4.0
    
    [13:20:08.861] Press 'y' to program certificate: y
    [13:20:09.660] keys Certificate found: 0x7001b980 
    [13:20:09.852] Keywriter Debug Response:0x0 
    [13:20:09.852] Success Programming Keys 
    [13:20:09.853] DONE!!!
    [13:20:14.988] Combined boot mode 
    
    [13:20:15.004] Starting Keywriting
    [13:20:15.004] Enabled VPP
    
    [13:20:15.004] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:15.004] DMSC Firmware revision 0xa
    [13:20:15.004] DMSC ABI revision 4.0
    
    [13:20:15.020] Press 'y' to program certificate: y
    [13:20:16.748] keys Certificate found: 0x7001b980 
    [13:20:16.924] Keywriter Debug Response:0x0 
    [13:20:16.924] Success Programming Keys 
    [13:20:16.924] DONE!!!
    [13:20:22.091] Combined boot mode 
    
    [13:20:22.091] Starting Keywriting
    [13:20:22.092] Enabled VPP
    
    [13:20:22.107] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:22.108] DMSC Firmware revision 0xa
    [13:20:22.108] DMSC ABI revision 4.0
    
    [13:20:22.108] Press 'y' to program certificate: y
    [13:20:22.843] keys Certificate found: 0x7001b980 
    [13:20:23.035] Keywriter Debug Response:0x0 
    [13:20:23.035] Success Programming Keys 
    [13:20:23.035] DONE!!!
    [13:20:30.746] Combined boot mode 
    
    [13:20:30.747] Starting Keywriting
    [13:20:30.747] Enabled VPP
    
    [13:20:30.762] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:30.763] DMSC Firmware revision 0xa
    [13:20:30.763] DMSC ABI revision 4.0
    
    [13:20:30.763] Press 'y' to program certificate: y
    [13:20:31.530] keys Certificate found: 0x7001b980 
    [13:20:31.722] Keywriter Debug Response:0x0 
    [13:20:31.722] Success Programming Keys 
    [13:20:31.723] DONE!!!
    [13:20:36.746] Combined boot mode 
    
    [13:20:36.746] Starting Keywriting
    [13:20:36.762] Enabled VPP
    
    [13:20:36.762] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:36.762] DMSC Firmware revision 0xa
    [13:20:36.763] DMSC ABI revision 4.0
    
    [13:20:36.778] Press 'y' to program certificate: y
    [13:20:37.722] keys Certificate found: 0x7001b980 
    [13:20:37.898] Keywriter Debug Response:0x0 
    [13:20:37.898] Success Programming Keys 
    [13:20:37.914] DONE!!!
    [13:20:43.065] Combined boot mode 
    
    [13:20:43.066] Starting Keywriting
    [13:20:43.066] Enabled VPP
    
    [13:20:43.082] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:43.082] DMSC Firmware revision 0xa
    [13:20:43.082] DMSC ABI revision 4.0
    
    [13:20:43.082] Press 'y' to program certificate: y
    [13:20:43.833] keys Certificate found: 0x7001b980 
    [13:20:44.009] Keywriter Debug Response:0x0 
    [13:20:44.010] Success Programming Keys 
    [13:20:44.025] DONE!!!
    [13:20:48.873] Combined boot mode 
    
    [13:20:48.889] Starting Keywriting
    [13:20:48.889] Enabled VPP
    
    [13:20:48.889] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:48.890] DMSC Firmware revision 0xa
    [13:20:48.890] DMSC ABI revision 4.0
    
    [13:20:48.905] Press 'y' to program certificate: y
    [13:20:49.785] keys Certificate found: 0x7001b980 
    [13:20:49.977] Keywriter Debug Response:0x0 
    [13:20:49.977] Success Programming Keys 
    [13:20:49.977] DONE!!!
    [13:20:54.952] Combined boot mode 
    
    [13:20:54.953] Starting Keywriting
    [13:20:54.953] Enabled VPP
    
    [13:20:54.953] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:20:54.969] DMSC Firmware revision 0xa
    [13:20:54.969] DMSC ABI revision 4.0
    
    [13:20:54.969] Press 'y' to program certificate: y
    [13:20:55.753] keys Certificate found: 0x7001b980 
    [13:20:55.928] Keywriter Debug Response:0x0 
    [13:20:55.929] Success Programming Keys 
    [13:20:55.945] DONE!!!
    [13:21:00.424] Combined boot mode 
    
    [13:21:00.424] Starting Keywriting
    [13:21:00.424] Enabled VPP
    
    [13:21:00.425] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:00.425] DMSC Firmware revision 0xa
    [13:21:00.440] DMSC ABI revision 4.0
    
    [13:21:00.440] Press 'y' to program certificate: y
    [13:21:01.144] keys Certificate found: 0x7001b980 
    [13:21:01.320] Keywriter Debug Response:0x0 
    [13:21:01.336] Success Programming Keys 
    [13:21:01.336] DONE!!!
    [13:21:05.832] Combined boot mode 
    
    [13:21:05.832] Starting Keywriting
    [13:21:05.848] Enabled VPP
    
    [13:21:05.848] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:05.848] DMSC Firmware revision 0xa
    [13:21:05.848] DMSC ABI revision 4.0
    
    [13:21:05.848] Press 'y' to program certificate: y
    [13:21:06.584] keys Certificate found: 0x7001b980 
    [13:21:06.760] Keywriter Debug Response:0x0 
    [13:21:06.776] Success Programming Keys 
    [13:21:06.776] DONE!!!
    [13:21:12.103] Combined boot mode 
    
    [13:21:12.103] Starting Keywriting
    [13:21:12.104] Enabled VPP
    
    [13:21:12.104] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:12.119] DMSC Firmware revision 0xa
    [13:21:12.119] DMSC ABI revision 4.0
    
    [13:21:12.120] Press 'y' to program certificate: y
    [13:21:12.839] keys Certificate found: 0x7001b980 
    [13:21:13.015] Keywriter Debug Response:0x0 
    [13:21:13.031] Success Programming Keys 
    [13:21:13.031] DONE!!!
    [13:21:18.327] Combined boot mode 
    
    [13:21:18.327] Starting Keywriting
    [13:21:18.327] Enabled VPP
    
    [13:21:18.327] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:18.343] DMSC Firmware revision 0xa
    [13:21:18.343] DMSC ABI revision 4.0
    
    [13:21:18.343] Press 'y' to program certificate: y
    [13:21:19.207] keys Certificate found: 0x7001b980 
    [13:21:19.383] Keywriter Debug Response:0x0 
    [13:21:19.399] Success Programming Keys 
    [13:21:19.399] DONE!!!
    [13:21:25.590] Combined boot mode 
    
    [13:21:25.590] Starting Keywriting
    [13:21:25.590] Enabled VPP
    
    [13:21:25.606] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:25.606] DMSC Firmware revision 0xa
    [13:21:25.607] DMSC ABI revision 4.0
    
    [13:21:25.607] Press 'y' to program certificate: y
    [13:21:26.710] keys Certificate found: 0x7001b980 
    [13:21:26.902] Keywriter Debug Response:0x0 
    [13:21:26.902] Success Programming Keys 
    [13:21:26.902] DONE!!!
    [13:21:33.029] Combined boot mode 
    
    [13:21:33.030] Starting Keywriting
    [13:21:33.030] Enabled VPP
    
    [13:21:33.030] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:33.030] DMSC Firmware revision 0xa
    [13:21:33.046] DMSC ABI revision 4.0
    
    [13:21:33.046] Press 'y' to program certificate: y
    [13:21:33.605] keys Certificate found: 0x7001b980 
    [13:21:33.781] Keywriter Debug Response:0x0 
    [13:21:33.798] Success Programming Keys 
    [13:21:33.798] DONE!!!
    [13:21:38.197] Combined boot mode 
    
    [13:21:38.197] Starting Keywriting
    [13:21:38.197] Enabled VPP
    
    [13:21:38.213] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:38.213] DMSC Firmware revision 0xa
    [13:21:38.214] DMSC ABI revision 4.0
    
    [13:21:38.214] Press 'y' to program certificate: y
    [13:21:38.837] keys Certificate found: 0x7001b980 
    [13:21:39.029] Keywriter Debug Response:0x0 
    [13:21:39.029] Success Programming Keys 
    [13:21:39.029] DONE!!!
    [13:21:44.309] Combined boot mode 
    
    [13:21:44.309] Starting Keywriting
    [13:21:44.325] Enabled VPP
    
    [13:21:44.325] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:44.325] DMSC Firmware revision 0xa
    [13:21:44.325] DMSC ABI revision 4.0
    
    [13:21:44.325] Press 'y' to program certificate: y
    [13:21:45.157] keys Certificate found: 0x7001b980 
    [13:21:45.348] Keywriter Debug Response:0x0 
    [13:21:45.349] Success Programming Keys 
    [13:21:45.349] DONE!!!
    [13:21:50.868] Combined boot mode 
    
    [13:21:50.868] Starting Keywriting
    [13:21:50.868] Enabled VPP
    
    [13:21:50.869] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:50.884] DMSC Firmware revision 0xa
    [13:21:50.884] DMSC ABI revision 4.0
    
    [13:21:50.884] Press 'y' to program certificate: y
    [13:21:51.876] keys Certificate found: 0x7001b980 
    [13:21:52.068] Keywriter Debug Response:0x0 
    [13:21:52.068] Success Programming Keys 
    [13:21:52.068] DONE!!!
    [13:21:56.500] Combined boot mode 
    
    [13:21:56.500] Starting Keywriting
    [13:21:56.500] Enabled VPP
    
    [13:21:56.500] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:21:56.516] DMSC Firmware revision 0xa
    [13:21:56.516] DMSC ABI revision 4.0
    
    [13:21:56.516] Press 'y' to program certificate: y
    [13:21:57.444] keys Certificate found: 0x7001b980 
    [13:21:57.636] Keywriter Debug Response:0x0 
    [13:21:57.636] Success Programming Keys 
    [13:21:57.636] DONE!!!
    [13:22:02.579] Combined boot mode 
    
    [13:22:02.579] Starting Keywriting
    [13:22:02.579] Enabled VPP
    
    [13:22:02.595] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:02.595] DMSC Firmware revision 0xa
    [13:22:02.596] DMSC ABI revision 4.0
    
    [13:22:02.596] Press 'y' to program certificate: y
    [13:22:03.427] keys Certificate found: 0x7001b980 
    [13:22:03.603] Keywriter Debug Response:0x0 
    [13:22:03.603] Success Programming Keys 
    [13:22:03.603] DONE!!!
    [13:22:08.755] Combined boot mode 
    
    [13:22:08.755] Starting Keywriting
    [13:22:08.755] Enabled VPP
    
    [13:22:08.771] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:08.771] DMSC Firmware revision 0xa
    [13:22:08.771] DMSC ABI revision 4.0
    
    [13:22:08.771] Press 'y' to program certificate: y
    [13:22:09.347] keys Certificate found: 0x7001b980 
    [13:22:09.539] Keywriter Debug Response:0x0 
    [13:22:09.539] Success Programming Keys 
    [13:22:09.539] DONE!!!
    [13:22:14.402] Combined boot mode 
    
    [13:22:14.402] Starting Keywriting
    [13:22:14.403] Enabled VPP
    
    [13:22:14.418] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:14.419] DMSC Firmware revision 0xa
    [13:22:14.419] DMSC ABI revision 4.0
    
    [13:22:14.419] Press 'y' to program certificate: y
    [13:22:15.986] keys Certificate found: 0x7001b980 
    [13:22:16.162] Keywriter Debug Response:0x0 
    [13:22:16.162] Success Programming Keys 
    [13:22:16.178] DONE!!!
    [13:22:20.530] Combined boot mode 
    
    [13:22:20.530] Starting Keywriting
    [13:22:20.530] Enabled VPP
    
    [13:22:20.546] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:20.546] DMSC Firmware revision 0xa
    [13:22:20.546] DMSC ABI revision 4.0
    
    [13:22:20.546] Press 'y' to program certificate: y
    [13:22:21.122] keys Certificate found: 0x7001b980 
    [13:22:21.314] Keywriter Debug Response:0x0 
    [13:22:21.314] Success Programming Keys 
    [13:22:21.314] DONE!!!
    [13:22:25.953] Combined boot mode 
    
    [13:22:25.953] Starting Keywriting
    [13:22:25.969] Enabled VPP
    
    [13:22:25.969] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:25.970] DMSC Firmware revision 0xa
    [13:22:25.970] DMSC ABI revision 4.0
    
    [13:22:25.970] Press 'y' to program certificate: y
    [13:22:26.817] keys Certificate found: 0x7001b980 
    [13:22:26.993] Keywriter Debug Response:0x0 
    [13:22:26.993] Success Programming Keys 
    [13:22:27.009] DONE!!!
    [13:22:31.585] Combined boot mode 
    
    [13:22:31.585] Starting Keywriting
    [13:22:31.585] Enabled VPP
    
    [13:22:31.585] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:31.601] DMSC Firmware revision 0xa
    [13:22:31.601] DMSC ABI revision 4.0
    
    [13:22:31.601] Press 'y' to program certificate: y
    [13:22:32.497] keys Certificate found: 0x7001b980 
    [13:22:32.689] Keywriter Debug Response:0x0 
    [13:22:32.689] Success Programming Keys 
    [13:22:32.689] DONE!!!
    [13:22:37.136] Combined boot mode 
    
    [13:22:37.152] Starting Keywriting
    [13:22:37.153] Enabled VPP
    
    [13:22:37.153] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:37.153] DMSC Firmware revision 0xa
    [13:22:37.153] DMSC ABI revision 4.0
    
    [13:22:37.168] Press 'y' to program certificate: y
    [13:22:37.952] keys Certificate found: 0x7001b980 
    [13:22:38.144] Keywriter Debug Response:0x0 
    [13:22:38.145] Success Programming Keys 
    [13:22:38.145] DONE!!!
    [13:22:42.768] Combined boot mode 
    
    [13:22:42.784] Starting Keywriting
    [13:22:42.784] Enabled VPP
    
    [13:22:42.784] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:42.785] DMSC Firmware revision 0xa
    [13:22:42.785] DMSC ABI revision 4.0
    
    [13:22:42.800] Press 'y' to program certificate: y
    [13:22:43.680] keys Certificate found: 0x7001b980 
    [13:22:43.856] Keywriter Debug Response:0x0 
    [13:22:43.872] Success Programming Keys 
    [13:22:43.872] DONE!!!
    [13:22:49.199] Combined boot mode 
    
    [13:22:49.200] Starting Keywriting
    [13:22:49.200] Enabled VPP
    
    [13:22:49.215] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:49.216] DMSC Firmware revision 0xa
    [13:22:49.216] DMSC ABI revision 4.0
    
    [13:22:49.216] Press 'y' to program certificate: y
    [13:22:49.903] keys Certificate found: 0x7001b980 
    [13:22:50.079] Keywriter Debug Response:0x0 
    [13:22:50.095] Success Programming Keys 
    [13:22:50.096] DONE!!!
    [13:22:54.479] Combined boot mode 
    
    [13:22:54.495] Starting Keywriting
    [13:22:54.495] Enabled VPP
    
    [13:22:54.495] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:54.496] DMSC Firmware revision 0xa
    [13:22:54.511] DMSC ABI revision 4.0
    
    [13:22:54.511] Press 'y' to program certificate: y
    [13:22:55.007] keys Certificate found: 0x7001b980 
    [13:22:55.183] Keywriter Debug Response:0x0 
    [13:22:55.199] Success Programming Keys 
    [13:22:55.199] DONE!!!
    [13:22:59.743] Combined boot mode 
    
    [13:22:59.743] Starting Keywriting
    [13:22:59.743] Enabled VPP
    
    [13:22:59.743] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:22:59.759] DMSC Firmware revision 0xa
    [13:22:59.759] DMSC ABI revision 4.0
    
    [13:22:59.759] Press 'y' to program certificate: y
    [13:23:47.739] keys Certificate found: 0x7001b980 
    [13:23:47.915] Keywriter Debug Response:0x0 
    [13:23:47.915] Success Programming Keys 
    [13:23:47.931] DONE!!!
    [13:23:52.779] Combined boot mode 
    
    [13:23:57.034] Starting Keywriting
    [13:23:57.034] Enabled VPP
    
    [13:23:57.050] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:23:57.050] DMSC Firmware revision 0xa
    [13:23:57.051] DMSC ABI revision 4.0
    
    [13:23:57.051] Press 'y' to program certificate: y
    [13:23:58.458] keys Certificate found: 0x7001b980 
    [13:23:58.650] Keywriter Debug Response:0x0 
    [13:23:58.650] Success Programming Keys 
    [13:23:58.650] DONE!!!
    [13:24:04.313] Combined boot mode 
    
    [13:24:04.314] Starting Keywriting
    [13:24:04.330] Enabled VPP
    
    [13:24:04.330] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:24:04.330] DMSC Firmware revision 0xa
    [13:24:04.330] DMSC ABI revision 4.0
    
    [13:24:04.345] Press 'y' to program certificate: y
    [13:24:05.609] keys Certificate found: 0x7001b980 
    [13:24:05.801] Keywriter Debug Response:0x0 
    [13:24:05.801] Success Programming Keys 
    [13:24:05.801] DONE!!!
    [13:24:10.105] Combined boot mode 
    
    [13:24:10.105] Starting Keywriting
    [13:24:10.105] Enabled VPP
    
    [13:24:10.121] DMSC Firmware Version 10.0.8-v10.00.08_am64x_keywrite
    [13:24:10.121] DMSC Firmware revision 0xa
    [13:24:10.121] DMSC ABI revision 4.0
    
    [13:24:10.122] Press 'y' to program certificate: y
    [13:24:11.545] keys Certificate found: 0x7001b980 
    [13:24:11.721] Keywriter Debug Response:0x0 
    [13:24:11.721] Success Programming Keys 
    [13:24:11.737] DONE!!!
    

    Please provide your keywriter binary or provide the keywriter patch for me to reproduce the issue locally on the TI EVM.

    Regards,

    Prashant

  • Hello Prashant, 

    Could you please let me know what is your setup to run repeated testing?  For USB boot, I think a power cycle or reset is required to be able to load for next round. Do you in case use USB boot for the above test?  And does the keywriter actually programming keys?


    I might have been very lucky to be able to reproduce the issue as above on EVM board. I did run several tests today with the same binary, and I was not able to reproduce the same issue on my side using EVM. 

    The only difference from our side code and your code snip is that we used a %s instead of %c on your side. 

    int ret = DebugP_scanf("%s", cmd);

    Thanks, 
    Hong 


  • Hi Hong,

    I indeed boot the keywriter in the USB DFU bootmode. The repeated boot is done by manually powering off/on the EVM & inputting the 'y' character. The keywriter certificate is generated with the following command:

    ./gen_keywr_cert.sh -t tifek/ti_fek_public.pem --msv 0xC0FFE --msv-ovrd

    Even with an automated setup, I did not see any issues for about 1800 runs of the keywriter binary.

    ====================

    I enabled the DebugP_scanf with the following patch

    I do see random failures with this patch on the Keywriter v09.01.00 which configures the UART0 in Interrupt mode by default. However, if the mode is changed to polling mode, I haven't seen any issues even after about 6900 runs of the keywriter binary.

    ====================

    In short if the UART is configured in polling mode, I haven't seen any issues in both the keywriter versions.

    Regards,

    Prashant

  • Hello Prashant, 

    Could you please help to test using an input string "START_PROGRAM_KEY" with echo to print this string out instead of using one char as above?


    int ret = DebugP_scanf("%s", cmd);


    That is the only difference that I can see between our side and your side. 

    Thanks, 
    Hong 

  • Hello Prashant, 

    I was able to reproduce on TI's EVM using keywriter 9.1 as well with UART ISR disabled on UART0.  The above repro with JTAG capture was on SDK 10's keywriter. This capture is on SDK 9.1's keywriter. 

    It failed the same way as below. The UART0 hangs now 

  • Hello Prashant, 

    I dumped the UART register values as below, could you please help to double confirm whether the ISR is disabled as expected?

    0x027FFEE0	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000
    0x027FFF40	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000
    0x027FFFA0	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000	00000000
    0x02800000	UART0_MEM_DLL, UART0_MEM_RHR, UART0_MEM_THR
    0x02800000	00000000
    0x02800004	UART0_MEM_DLH, UART0_MEM_IER_CIR, UART0_MEM_IER_IRDA, UART0_MEM_IER_UART
    0x02800004	00000000
    0x02800008	UART0_MEM_EFR, UART0_MEM_FCR, UART0_MEM_IIR_CIR, UART0_MEM_IIR_IRDA, UART0_MEM_IIR_UART
    0x02800008	000000C1
    0x0280000C	UART0_MEM_LCR
    0x0280000C	00000003
    0x02800010	UART0_MEM_MCR, UART0_MEM_XON1_ADDR1
    0x02800010	00000000
    0x02800014	UART0_MEM_LSR_CIR, UART0_MEM_LSR_IRDA, UART0_MEM_LSR_UART, UART0_MEM_XON2_ADDR2
    0x02800014	00000060
    0x02800018	UART0_MEM_MSR, UART0_MEM_TCR, UART0_MEM_XOFF1
    0x02800018	00000000
    0x0280001C	UART0_MEM_SPR, UART0_MEM_TLR, UART0_MEM_XOFF2
    0x0280001C	00000000
    0x02800020	UART0_MEM_MDR1
    0x02800020	00000000
    0x02800024	UART0_MEM_MDR2
    0x02800024	00000000
    0x02800028	UART0_MEM_SFLSR, UART0_MEM_TXFLL
    0x02800028	00000000
    0x0280002C	UART0_MEM_RESUME, UART0_MEM_TXFLH
    0x0280002C	00000000
    0x02800030	UART0_MEM_RXFLL, UART0_MEM_SFREGL
    0x02800030	00000000
    0x02800034	UART0_MEM_RXFLH, UART0_MEM_SFREGH
    0x02800034	00000000
    0x02800038	UART0_MEM_BLR, UART0_MEM_UASR
    0x02800038	00000040
    0x0280003C	UART0_MEM_ACREG
    0x0280003C	00000000
    0x02800040	UART0_MEM_SCR
    0x02800040	000000C0
    0x02800044	UART0_MEM_SSR
    0x02800044	00000004
    0x02800048	UART0_MEM_EBLR
    0x02800048	00000000	00000000
    0x02800050	UART0_MEM_MVR
    0x02800050	47424603
    0x02800054	UART0_MEM_SYSC
    0x02800054	00000000
    0x02800058	UART0_MEM_SYSS
    0x02800058	00000001
    0x0280005C	UART0_MEM_WER
    0x0280005C	000000FF
    0x02800060	UART0_MEM_CFPS
    0x02800060	00000069
    0x02800064	UART0_MEM_RXFIFO_LVL
    0x02800064	00000000
    0x02800068	UART0_MEM_TXFIFO_LVL
    0x02800068	00000000
    0x0280006C	UART0_MEM_IER2
    0x0280006C	00000000
    0x02800070	UART0_MEM_ISR2
    0x02800070	00000003
    0x02800074	UART0_MEM_FREQ_SEL
    0x02800074	0000001A
    0x02800078	UART0_MEM_ABAUD_1ST_CHAR
    0x02800078	00000000
    0x0280007C	UART0_MEM_BAUD_2ND_CHAR
    0x0280007C	00000000
    0x02800080	UART0_MEM_MDR3
    0x02800080	00000000
    0x02800084	UART0_MEM_TX_DMA_THRESHOLD
    0x02800084	00000000
    0x02800088	UART0_MEM_MDR4
    0x02800088	00000000
    0x0280008C	UART0_MEM_EFR2
    0x0280008C	00000000
    0x02800090	UART0_MEM_ECR
    0x02800090	00000018
    0x02800094	UART0_MEM_TIMEGUARD
    0x02800094	00000000
    0x02800098	UART0_MEM_TIMEOUTL
    0x02800098	00000000
    0x0280009C	UART0_MEM_TIMEOUTH
    0x0280009C	00000000
    0x028000A0	UART0_MEM_SCCR
    0x028000A0	00000007
    0x028000A4	UART0_MEM_ERHR, UART0_MEM_ETHR
    0x028000A4	00000000
    0x028000A8	UART0_MEM_MAR
    0x028000A8	00000000
    0x028000AC	UART0_MEM_MMR
    0x028000AC	00000000
    0x028000B0	UART0_MEM_MBR
    
    

    Thanks, 
    Hong 

  • Hello,

    I do see the issue when using the "START_PROGRAM_KEY" string as input however that's only when the string is copy pasted on the UART console. If the string is manually typed character by character, I haven't seen any issues.

    With the automated setup where the string is automatically typed character by character, I haven't seen any issues even after about 250 runs of the keywriter. Here are the logs for verification:

    �
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    
    Starting Keywriting
    Enabled VPP
    Please enter 'START_PROGRAM_KEY' to continue
    # START_PROGRAM_KEY
    keys Certificate found: 0x70052e00 
    Keywriter Debug Response:0x0 
    Success Programming Keys 
    DONE!!!
    

    So, I do not think this is a target side issue. The issue is most possibly coming from how the string is entered on the UART console.

    Regards,

    Prashant

  • Hello Prashant, 

    I am glad to know that you had a successful repro on your side.  For the copy-paste hang case, could you please help us to understand the root cause?  We have command-line interface support for our app FW as well using the same AM243 MCU and we have not seen this copy-paste hang issue at all. This issue only happened for the keywriter.  

    From the above Mark's reported failure case, the UART print can hang at anywhere not only limited to the place during DebugP_scanf is receiving input. I hope by understanding the rootcause here can help us to address other hang case as well for the keywriter. 


    Thanks, 
    Hong

  • Hello Prashant, 

    There is one more questions regarding the FIFO_EN bit. 

    Based on AM243 TRM, FIFO_EN needs to be set to be 0 for the FIFO polled mode operation. 

     12.1.5.4.6.3 FIFO Polled Mode Operation
    In FIFO polled mode (the UART_FCR[0] FIFO_EN bit is set to 0 and the relevant interrupts are disabled by the
    UART_IER_UART register), the status of the receiver and transmitter can be checked by polling the line status
    register (UART_LSR_UART).
    This mode is an alternative to the FIFO interrupt mode of operation in which the status of the receiver and
    transmitter is automatically determined by sending interrupts to the Host CPU.

    While in SDK uart drivere's uart_v0_lld.c file, I see FIFO_EN is always set to be 1 for SDK 9 and SDK 10.  

        /* Enable FIFO */
        fcrValue |= UART_FCR_FIFO_EN_MASK;

    Could you please help me to understand whether the UART is operating at FIFO polled mode with this FIFO_EN bit setting to be 1 from the SDK? 

    Thanks, 
    Hong 
  • Hello,

    For the copy-paste hang case, could you please help us to understand the root cause?

    The DebugP_scanf function is designed to receive & echo the input character by character.

    https://github.com/TexasInstruments/mcupsdk-core/blob/next/source/kernel/nortos/dpl/common/DebugP_uartScanf.c#L40-L40

    So, while copy pasting the whole string on the UART console, the data is possibly getting lost in polling mode resulting in the UART driver forever waiting for the further input.

    Could you please try a shorter string as input like SPK (for START_PROGRAM_KEY) as input & see if the issue still occurs?

    I have tried it on TI EVM & do not see any issues.

    So far, I have seen issues for the following cases only:

    • Keywriter v09_01_00 with UART in Interrupt mode (default) results in random failures when taking input.
    • Keywriter v09_01_00 and v10.00.08 in Polling mode results in consistent failures when taking larger string as input. The failure only occurs when copy pasting the whole string.
      • No issues seen when typing string character by character.
      • No issues seen when copy pasting for string upto 3 - 4 characters.

    Regards,

    Prashant

  • And,

    Keywriter v09_01_00 with UART in Interrupt mode (default) results in random failures when taking input.

    This is a generic UART interrupt issue.

    Keywriter v09_01_00 and v10.00.08 in Polling mode results in consistent failures when taking larger string as input. The failure only occurs when copy pasting the whole string.

    This is seen even in the SBL NULL bootloader

    [17:35:21.797] Starting NULL Bootloader ...
    
    [17:35:21.797] DMSC Firmware Version 9.1.6--v09.01.06 (Kool Koala)
    [17:35:21.813] DMSC Firmware revision 0x9
    [17:35:21.814] DMSC ABI revision 3.1
      
    [17:35:21.814] Please enter 'START_PROGRAM_KEY' to continue
    [17:35:21.814] # START_PR

    In short, there is nothing keywriter specific issue I have seen till now.

  • Last update for the day:

    This is seen even in the SBL NULL bootloader

    The issue is not seen in the SBL NULL bootloader from SDK v09_00_00_35.

    So, I ported the UART driver from this SDK version to SDK v09_01_00_41, then I haven't seen the following issue.

    Keywriter v09_01_00 and v10.00.08 in Polling mode results in consistent failures when taking larger string as input. The failure only occurs when copy pasting the whole string.
  • Hello Prashant, 

    Thanks for the help to understand the questions here. 

    From what I understand, UART has FIFO size of 64 bytes for both TX and RX. I don't understand why DebugP_scanf cannot handle receiving character and echo it back fast enough for only 10+ characters. I did try to increase the rxTriggerLevel to see whether it makes difference, but I didn't have luck here. 

    In our use case, we don't use copy-paste, but we have python script to handle sending characters of START_PROGRAM_KEY. This failed the same way as the copy-paste example you have as above on EVM board. 

    I also have the above questions regarding FIFO_EN setting in SDK's uart_v0.c, which seems to be conflict with TRM's recommendation for UART polling mode. I believe, with a proper setting, AM243x with a 800 MHz MCU clock frequency should be able to handle receiving and echoing a character back properly at UART clock of 115k; unless there is something else that we have not understood about. 

    Thanks, 
    Hong 

  • Hi Hong,

    Keywriter v09_01_00 and v10.00.08 in Polling mode results in consistent failures when taking larger string as input. The failure only occurs when copy pasting the whole string.

    I have identified the root cause of this bug. It is apparently caused by the incorrect handling of the remaining data to be read in the UART_fifoRead function.

    Please try the following patch & let us know if the issue still occurs:

    diff --git a/source/drivers/uart/v0/lld/uart_v0_lld.c b/source/drivers/uart/v0/lld/uart_v0_lld.c
    index 0b4b10c..8b96376 100644
    --- a/source/drivers/uart/v0/lld/uart_v0_lld.c
    +++ b/source/drivers/uart/v0/lld/uart_v0_lld.c
    @@ -2460,7 +2460,7 @@ static uint32_t UART_fifoRead(UARTLLD_Handle hUart, uint8_t *buffer,
     
         isRxReady = UART_statusIsDataReady(hUart);
     
    -    while (((Bool)TRUE == isRxReady) && (0U != readSizeRemaining))
    +    while (((Bool)TRUE == isRxReady) && (0U != tempReadSizeRemaining))
         {
             /* once the H/w is ready  reading from the H/w                        */
             *tempBuffer = (UInt8) UART_readByte(hUart);
    

    I do not see issue for copy pasting after applying the patch.

    Regards,

    Prashant

  • I have identified the root cause of this bug. It is apparently caused by the incorrect handling of the remaining data to be read in the UART_fifoRead function.

    This is already fixed in the SDK v10_01_00_32 with the following patch

    am263x: uart: Fix the uart read issue · TexasInstruments/mcupsdk-core@0cf5573

  • Hello Prashant, 

    Very glad to know that the root cause has been identified. 

    We have been using the released library from SDK directly.  For applying the above patch for SDK, does it mean that we need to re-build the library drivers.am243x.r5f.ti-arm-clang.debug.lib?

    Thanks, 
    Hong 

  • For applying the above patch for SDK, does it mean that we need to re-build the library drivers.am243x.r5f.ti-arm-clang.debug.lib?

    That is correct.

    software-dl.ti.com/.../MAKEFILE_BUILD_PAGE.html

  • Hi Hong,

    Please let us know if the issue is resolved and no further support is needed.

    Thanks!

  • Hello Prashant, 

    Thanks for checking. 

    This issue has been resolved with the patch for the SDK UART driver. 

    This can be closed. 
    Hong