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.

SK-AM64B: SK-AM64x sd card otp key writing

Part Number: SK-AM64B
Other Parts Discussed in Thread: TCA6424, , TCA9538

Hi 

I try to write keys in otp area, Board is booting from sdcard, but tiboot3.bin (kw_bootloader) is not running properly . I got error in  keywriter setVpp function. Is this a board specific error for my board? 

B.R. 

  • Hi Canibek,

    please provide more details here. What error message do you see? Which OPT writer version are you using?

    Please also provide the board revision just to be sure we are discussing correct HW.

    Regards, Frank

  • Hi Frank

    When I ran the otp keywriter application, it logs the message "Starting Keywriting" and froze. I examined the problem, the "TCA6424_config" function is called in the "keywriter_setVpp" function and it does not return as success, it returns failure.

    I installed below packages for building otp keywriter tiboot3.bin. I am using SK-AM64B TI board for testing otp key writer.

    SDK = mcu_plus_sdk_am64x_09_00_00_31-linux-x64-installer

    Key writer app = otp_keywriter_am64x-linux-installer

    sys-config = sysconfig-1.17.0_3128-setup

    CCS = CCS12.4.0.00007_linux-x64

    Boot mode set as SD card. I couldn't find board revision number. If you want , I can sent SL#  or ASSY# information. 

    B.R.

  • Hi Canibek,

    the board should have a print or sticker starting with PROC somewhere. That typically identifies the schematic rev you have. 

    Did you do any changes to keywriter? I just had a quick look and on a first view it seems the supplied code is assuming the use of TI EVM and not any starterkit. For example on starter kit I see TCA9538 as the I2C expander that controls VPP_LDO_EN. GPEVM and Starterkits do have different HW to control the VPP LDO. I will check internally for correct version.

    Regards, Frank

  • Hi Frank

    Board version is PROC100A . I made my first attempt without making any changes.  To determine where the problem, I added some lines for logging to the keywriter_setVpp function. 

    B.R.

  • PROC100A is definitely SK-AM64B and not the EVM. The OTP writer UG only talks about AM64 EVM and AM243 Launchpads. So for your board we need to modify board.c. Or use a different board for that evaluation...

    I assume that the TCA6424 API calls in keywriter_setVpp() functions return a fail as Starterkits do not have that device.

    Regards, Frank

  • Modifying board.c file seems to be the best way to go. You are right, i got fail in keywriter_setVpp() function. How to proceed from now on ? Is there any example implemantation of board.c for SK-AM64B ? 

  • I am checking internally on an updated board.c

    Unfortunately the writer is based on MCU+ SDK for base drivers. I do not see TCA9538 in 9.01.00.03. Otherwise it might be as simple as just replacing the API calls with their equivalents. In addition we would need to update the expansion pin number of course but it seems this is not hard coded in board.c anyway. We do have provisions to adapt the keywriter to customer HW as there are many ways how you control the VPP enable signal. Unfortunately it is not as easy as changing a GPIO number in current TI boards...

    Regards, Frank

  • Please refer to the FAQ on how to run OTP Keywriter on SK-AM64B
    e2e.ti.com/.../faq-how-to-run-otp-keywriter-on-sk-am64b
    Best,
    -Hong