Quantcast
Viewing all articles
Browse latest Browse all 262198

CCS/CC3220SF-LAUNCHXL: Problems with 'dslite' to create a UCF file via script.

Part Number:CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

My goal is to have a CCS build which automatically creates a loadable file without following a 40 step process manually using UniFlash. This will allow a developer to compile the project and program the device without a tedious and error-prone manual process.

The "UniFlash CC31xx, CC32xx SimpleLink™ Wi-Fi® and Internet-on-a chip™ Solution ImageCreator and Programming Tool" document implies that this is possible to do this with "dslite".

The UniFlash procedure was translated to a windows batch file which repeatedly calls 'dslite' using the steps shown below. Additionally, the full batch file checks for errors after each call of 'dslite'.  The process completes with no errors and a UCF file approximately the same size as the one created by UniFlash.

The ImageProgramming.exe utility can open the UCF file and transfer the contents to the CC3220SF. Although the progress reaches 100%, there is an error:

Received error : error number = -10341 , extended error = 2633

The module does not respond until reprogrammed with a UCF created from UniFlash.

Error -10341 means that a file is missing. I don't know what the extended error code is.

Looking at the prints generated by the calls to 'dslite', it appears that all of the files are present with the correct names.

It is not clear how to configure the module's "System Settings", particularly the Role=Station and Country Code=USA.

Questions:

1. Has anyone successfully used 'dslite' to build a working UCF image?
2. Is there a means of comparing one UCF with another?
3. Is there an alternative tool or procedure for for building a UCF?
4. What is extended error 2633?

These are the steps used to create the current UCF file:

rem ### New Project. (6.1.8)
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project new --name %PROJECT_NAME% --project_path %PROJECT_PATH% --overwrite --device CC3220SF

rem ### Set Trusted Root-Certificate Catalog.  (6.1.4)
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project set_certstore --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file %CERTS_PATH%\certcatalogPlayGround20160911.lst --sign %CERTS_PATH%\certcatalogPlayGround20160911.lst.signed_3220.bin

rem ### Set Service Pack. (6.1.2)
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project set_sp --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file  C:\ti\simplelink_cc32xx_sdk_2_30_00_05\tools\cc32xx_tools\servicepack-cc3x20\sp_3.9.0.6_2.0.0.0_2.2.0.6.bin

rem ### Add the Root Certificate Authority file.
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project add_file --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file %CERTS_PATH%\dummy-root-ca-cert --fs_path /dummy-root-ca-cert

rem ### Add the Trusted Certificate Authority file.
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project add_file --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file %CERTS_PATH%\dummy-trusted-ca-cert --fs_path /dummy-trusted-ca-cert

rem ### Add the Trusted Certificate file.
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project add_file --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file %CERTS_PATH%\dummy-trusted-cert --fs_path /dummy-trusted-cert 

rem ### Add the MCU Image.
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project add_file --name %PROJECT_NAME% --project_path %PROJECT_PATH% --file %PROJECT_PATH%\%PROJECT_IMAGE% --mcu --flags failsafe,secure,publicwrite --cert dummy-trusted-cert --priv %CERTS_PATH%\dummy-trusted-cert-key 

rem ### Create the image.
call c:\ti\uniflash_4.5.0\dslite.bat --mode cc32xx project create_image --name %PROJECT_NAME% --project_path %PROJECT_PATH% --ucf_file %PROJECT_PATH%\%PROJECT_NAME%.ucf


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>