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.

AM263P4: Questions in building sbl_keywriter

Part Number: AM263P4
Other Parts Discussed in Thread: SYSCONFIG, MCU-PLUS-SDK-AM263PX

Hi, TI experts.

Today I built sbl_keywriter example for AM263P4.

-----

(1) CCS v20 can not import sbl_keywriter example project.

At "DEV boot" chapter of AM263PX OTP keywriter User Guide, it shows importing the example project in old version CCS.

Is there something that I must modify in order to import the keywriter example project?

Or does not CCS v20 support importing of the example yet?

-----

(2) The method of building at command prompt of windows is like below.

gmake -sj clean PROFILE=debug

gmake -sj PROFILE=debug

What is the exact meaning of "-sj" option?

I can not find its explanation. It seems that "-sj" option is like "-s" option.

-----

(3) When I built the keywriter example using gmake prompt, it tried to use the next files.

"C:/ti/ccs2040/ccs/utils/cygwin/rm"

"C:/ti/sysconfig_1.26.0/nodejs/node"

My CCS v20.4.1 was installed in "C:/ti/ccs2011/" because it was updated from CCS v20.1.1.

Sysconfig v1.26.0 was installed in "C:/ti/ccs2011/ccs/utils/sysconfig_1.26.0/" because it was installed in CCS.

Then how can I change those directory settings in gmake prompt?

I checked makefile of the keywriter example but I coud not find those settings.

-----

Actually I installed CCS v20.4.0 and Sysconfig v1.26.0 again and succeeded in building the keywriter example.

But, I think next SDK version could make same problems so I want to know a clear solution.

-----

Regard,

Jeeuk Chang

  • Hi Jeeuk,

    Allow me to get back on this by tomorrow.

  • The sbl_keywriter example can be imported into CCS v20 using the standard CCS project import wizard. The "-sj" gmake option combines silent mode (-s) and parallel compilation (-j). To resolve incorrect tool paths, you need to set environment variables (CCS_INSTALL_PATH and SYSCONFIG_INSTALL_PATH) either through the setup_env.bat script or by passing them directly to gmake commands.

  • Hi, Nilabh Anand.

    ------

    (1) I made test work folder "c:/CCSworks/"

    I changed my work directory using "File - Open Folder ... " In CCS.

    And I import sbl_keywriter example using "File - Import Porject ..." in CCS.

    (The directory that I import is "C:/ti/mcu_plus_sdk_am263px_11_01_00_19/source/security/sbl_keywriter/am263px/r5fss0-0_nortos/")

    When I proceeded the importing, I received the message below and the process is stopped.

    I do not know what the problem is.

    My environments are below.

    CCS : 20.4.1.4 (updated from 20.4.0), c:/ti/ccs2040/

    MCU+SDK : 11.01.00.19, c:/ti/mcu_plus_sdk_am263px_11_01_00_19

    otp_keywriter : c:/ti/otp_keywriter_am263px_SR_10_11_00_00_02

    I copied sbl_keywriter folder to "c:/ti/mcu_plus_sdk_am263px_11_01_00_19/source/security folder".

    -----

    (2) I understand the meaning of "-sj" option now.

    -----

    (3) I could not find "setup_env.bat" file anywhere.

    But I found the directory environment settings in "imports.mak" file at "c:/ti/mcu_plus_sdk_am263px_11_01_00_19/".

    -----

    Regard,

    Jeeuk Chang

  • 3) I could not find "setup_env.bat" file anywhere.

    But I found the directory environment settings in "imports.mak" file at "c:/ti/mcu_plus_sdk_am263px_11_01_00_19/".

    Setup_env.bat is something some Windows users use to set the path on a Windows machine.

    If you do not have such a file, you can make amendments in the Windows environment variable.

    www.computerhope.com/.../ch000549.htm

  • Hi, Nilabh Anand.

    Still I can not succeed in importing sbl_keywriter example project in CCS v20. (Question (1))

    If any way, please let me know.

    If it is something that cannot be done yet, please confirm it.

    Regard,

    Jeeuk Chang

  • Hi Jeeuk,

    I understand the problem now, since otp keywriter need to be placed inside the mcu plus, ther is a minor change that is needed to make the example importable. In the file: C:\ti\otp_keywriter_am263px_SR_10_11_00_00_02\sbl_keywriter\am263px\r5fss0-0_nortos\ti-arm-clang\example.projectspec

    You need to change AMxxx to AM263PX

    With this change I was able to import the project:

    ...

  • Hi, Nilabh Anand.

    I changed "com.ti.MCU_PLUS_SDK_AMXXX" to "MCU-PLUS-SDK-AM263PX" in the file you pointed.

    And I succeeded in loading otp keywriter example.

    Thank you for answering my question.

    Regards,

    Jeeuk Chang