Other Parts Discussed in Thread: UNIFLASH
Dear Support:
I am trying to build a .hex file that is an OAD image of an already existing CCS project. I am using CCSv9.1 and SDKv3.20 for the CC1352 and taking an existing example from the SDK (i.e., uart_echo) and adding the following to the post build steps:
${CG_TOOL_HEX} -order MS --memwidth=8 --romwidth=8 --intel -o ${ProjName}.hex ${ProjName}
${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/bin/win32/oad_image_tool --verbose ccs ${PROJECT_LOC} 0 -hex1 ${ConfigName}/${ProjName}.hex -o ${ConfigName}/${ProjName}
and upon building I am getting an error of the following:
C:/TI/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/bin/armhex -order MS --memwidth=8 --romwidth=8 --intel -o pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.hex pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs
Translating to Intel format...
"pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.out" .resetVecs ==> .resetVecs
"pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.out" .text ==> .text
"pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.out" .const ==> .const
"pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.out" .cinit ==> .cinit
"pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.out" .ccfg ==> .ccfg
C:/TI/simplelink_cc13x2_26x2_sdk_3_20_00_68/tools/common/oad/bin/win32/oad_image_tool --verbose ccs C:/Projects/ccsv9/cc1352_sdk3_20/pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs 0 -hex1 Debug/pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs.hex -o Debug/pwmled2_CC1352P1_LAUNCHXL_tirtos_ccs
makefile:181: recipe for target 'post-build' failed
[112692] Failed to execute script oad_image_tool
Traceback (most recent call last):
File "oad_image_tool.py", line 539, in <module>
File "oad_image_tool.py", line 335, in main
Exception: Boundary file path and file name required!
gmake[2]: [post-build] Error -1 (ignored)
I don't have an application + stack file. I assume I am selecting the right option of "0" for the binary file type, but not sure. I am just needing to add all the OAD header stuff to an existing CCS project so I can burn it into on-chip FLASH or external SPI FLASH so I can use the bim example to successfully find the OAD image in FLASH and run the desired image. I am planning on putting multiple OAD images into on-chip FLASH or external FLASH and just need to understand how to create an OAD image using the OAD image tool.
I have gone through the OAD documentation in the SDK Thread User's Guide and Proprietary RF User's Guide which is quite extensive in explaining the OAD process, but very limited on how to take an existing application and run the right tools with the right syntax to create an OAD image that I can use to build and run with the BIM. Can you provide some more details and explain what I am doing wrong?
I've tried using the hexmerge.py utility by taking the uart_echo example and merging it with the on-chip and off-chip BIM, like using the following:
python c:\Python27\Scripts\hexmerge.py -o all.hex "--overlap=error" cc13x2r1lp_bim_onchip.hex uart_echo.hex
but I don't see an output of all.hex anywhere. Just a message of:
Merging: uart_echo.hex
Data overlapped at address 0x57FA8
Do you know what I may be doing wrong here?
Thanks,
Tim