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.
Tool/software:
The program can able to flash and works fine when do via CCS. If I try to flash the hex file by "Uniflash" tool, programming successful , but Not working !
Using XDS110 debugger and generate hex file by enable "C2000 Hex Utility" in project option( just enable by tick the option box with default setting ).
Hi Maheswaran,
If you are able to flash your hex file and it's not working, here are some things to check:
1) What do your settings look like for downloading the hex file through Uniflash (CPU1 settings)?
2) Are you able to show the map file for your project to confirm that you are placing sections appropriately?
Thanks and regards,
Charles
****************************************************************************** TMS320C2000 Linker PC v22.6.1 ****************************************************************************** >> Linked Tue Sep 17 09:56:18 2024 OUTPUT FILE NAME: <Universal Project.out> ENTRY POINT SYMBOL: "code_start" address: 00080000 MEMORY CONFIGURATION name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- RAMM0 00000128 000002d8 00000000 000002d8 RWIX RAMM1 00000400 000003f8 00000200 000001f8 RWIX RAMLS0 00008000 00002000 000000f3 00001f0d RWIX RAMLS1 0000a000 00001ff8 00000000 00001ff8 RWIX FLASH_BANK0_SEC_0_7 00080000 00002000 00000105 00001efb RWIX FLASH_BANK0_SEC_8_15 00082000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_16_23 00084000 00002000 00000bf7 00001409 RWIX FLASH_BANK0_SEC_24_31 00086000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_32_29 00088000 00002000 000002b5 00001d4b RWIX FLASH_BANK0_SEC_40_47 0008a000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_48_55 0008c000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_56_63 0008e000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_64_71 00090000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_72_79 00092000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_80_87 00094000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_88_95 00096000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_96_10 00098000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_104_1 0009a000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_112_1 0009c000 00002000 00000000 00002000 RWIX FLASH_BANK0_SEC_120_1 0009e000 00001ff0 00000000 00001ff0 RWIX RESET 003fffc0 00000002 00000000 00000002 RWIX SECTION ALLOCATION MAP output attributes/ section page origin length input sections -------- ---- ---------- ---------- ---------------- .reset 0 003fffc0 00000000 DSECT .stack 0 00000400 00000200 UNINITIALIZED 00000400 00000200 --HOLE-- codestart * 0 00080000 00000002 00080000 00000002 f280015x_codestartbranch.obj (codestart) .TI.ramfunc * 0 00080008 000000e9 RUN ADDR = 00008000 00080008 00000051 driverlib.lib : flash.obj (.TI.ramfunc:Flash_initModule) 00080059 00000022 : flash.obj (.TI.ramfunc:Flash_setWaitstates) 0008007b 00000018 : flash.obj (.TI.ramfunc:Flash_disableCache) 00080093 00000017 : flash.obj (.TI.ramfunc:Flash_disablePrefetch) 000800aa 00000017 : flash.obj (.TI.ramfunc:Flash_enableCache) 000800c1 00000016 : flash.obj (.TI.ramfunc:Flash_enableECC) 000800d7 00000016 : flash.obj (.TI.ramfunc:Flash_enablePrefetch) 000800ed 00000004 : sysctl.obj (.TI.ramfunc) .data 0 000080ea 0000000a UNINITIALIZED 000080ea 00000006 rts2800_fpu32_eabi.lib : exit.c.obj (.data) 000080f0 00000002 : _lock.c.obj (.data:_lock) 000080f2 00000002 : _lock.c.obj (.data:_unlock) .cinit 0 000800f8 00000012 000800f8 00000009 (.cinit..data.load) [load image, compression = lzss] 00080101 00000001 --HOLE-- [fill = 0] 00080102 00000004 (__TI_handler_table) 00080106 00000004 (__TI_cinit_table) .ovly 0 00080110 00000008 00080110 00000008 (.ovly:copyTable_ramfunc) .init_array * 0 00080000 00000000 UNINITIALIZED .const 0 00088000 000002b5 00088000 0000009c driverlib.lib : flash.obj (.const:.string) 0008809c 0000009b : gpio.obj (.const:.string) 00088137 00000001 --HOLE-- [fill = 0] 00088138 0000009b : sysctl.obj (.const:.string) 000881d3 00000001 --HOLE-- [fill = 0] 000881d4 00000054 device.obj (.const:.string) 00088228 00000047 board.obj (.const:.string) 0008826f 00000001 --HOLE-- [fill = 0] 00088270 00000045 main.obj (.const:.string) .text 0 00084000 00000bf7 00084000 0000013f driverlib.lib : sysctl.obj (.text:SysCtl_setClock) 0008413f 000000ea : sysctl.obj (.text:SysCtl_isPLLValid) 00084229 000000ac : gpio.obj (.text:GPIO_setAnalogMode) 000842d5 0000008d board.obj (.text:SYSCTL_init) 00084362 00000088 rts2800_fpu32_eabi.lib : fs_div28.asm.obj (.text) 000843ea 00000073 driverlib.lib : sysctl.obj (.text:DCC_setCounterSeeds) 0008445d 00000065 : sysctl.obj (.text:SysCtl_getClock) 000844c2 0000005f device.obj (.text:Device_init) 00084521 00000052 driverlib.lib : gpio.obj (.text:GPIO_setPadConfig) 00084573 00000045 : sysctl.obj (.text:SysCtl_pollX1Counter) 000845b8 00000042 : sysctl.obj (.text:SysCtl_selectOscSource) 000845fa 0000003d : interrupt.obj (.text:Interrupt_initModule) 00084637 0000003d : sysctl.obj (.text:SysCtl_selectXTAL) 00084674 00000037 : gpio.obj (.text:GPIO_setPinConfig) 000846ab 00000037 : gpio.obj (.text:GPIO_setQualificationMode) 000846e2 00000031 : gpio.obj (.text:GPIO_setDirectionMode) 00084713 00000030 rts2800_fpu32_eabi.lib : copy_decompress_lzss.c.obj (.text:decompress:lzss) 00084743 00000030 : cpy_tbl.c.obj (.text) 00084773 0000002b : autoinit.c.obj (.text:__TI_auto_init_nobinit_nopinit) 0008479e 00000029 : exit.c.obj (.text) 000847c7 00000027 main.obj (.text:GPIO_writePin) 000847ee 00000025 main.obj (.text:main) 00084813 00000024 driverlib.lib : sysctl.obj (.text:DCC_enableSingleShotMode) 00084837 00000020 device.obj (.text:CAN_selectClockSource) 00084857 00000020 driverlib.lib : sysctl.obj (.text:SysCtl_selectXTALSingleEnded) 00084877 0000001f : flash.obj (.text:Flash_writeTrims) 00084896 0000001e : sysctl.obj (.text:DCC_setCounter0ClkSource) 000848b4 0000001e : sysctl.obj (.text:DCC_setCounter1ClkSource) 000848d2 0000001e : interrupt.obj (.text:Interrupt_initVectorTable) 000848f0 0000001d rts2800_fpu32_eabi.lib : memcpy.c.obj (.text) 0008490d 0000001c driverlib.lib : sysctl.obj (.text:SysCtl_configureType) 00084929 0000001b board.obj (.text:SysCtl_setStandbyQualificationPeriod) 00084944 0000001a driverlib.lib : sysctl.obj (.text:SysCtl_getLowSpeedClock) 0008495e 00000018 board.obj (.text:SysCtl_disablePeripheral) 00084976 00000017 board.obj (.text:SysCtl_enablePeripheral) 0008498d 00000017 driverlib.lib : sysctl.obj (.text:SysCtl_enablePeripheral) 000849a4 00000017 rts2800_fpu32_eabi.lib : boot28.asm.obj (.text) 000849bb 00000016 driverlib.lib : sysctl.obj (.text:DCC_disableDoneSignal) 000849d1 00000016 : interrupt.obj (.text:Interrupt_defaultHandler) 000849e7 00000016 : sysctl.obj (.text:SysCtl_setIntOSC2_Mode) 000849fd 00000015 : sysctl.obj (.text:DCC_clearDoneFlag) 00084a12 00000015 : sysctl.obj (.text:DCC_clearErrorFlag) 00084a27 00000015 : sysctl.obj (.text:DCC_disableErrorSignal) 00084a3c 00000015 device.obj (.text:GPIO_unlockPortConfig) 00084a51 00000014 driverlib.lib : sysctl.obj (.text:DCC_disableModule) 00084a65 00000014 : sysctl.obj (.text:DCC_enableModule) 00084a79 00000014 : gpio.obj (.text:GPIO_isPinValid) 00084a8d 00000014 main.obj (.text:GPIO_isPinValid) 00084aa1 00000014 board.obj (.text:SysCtl_selectErrPinPolarity) 00084ab5 00000014 driverlib.lib : sysctl.obj (.text:SysCtl_setPLLSysClk) 00084ac9 00000010 device.obj (.text:CAN_isBaseValid) 00084ad9 00000010 driverlib.lib : sysctl.obj (.text:DCC_isBaseValid) 00084ae9 00000010 device.obj (.text:Device_initGPIO) 00084af9 00000010 driverlib.lib : flash.obj (.text:Flash_isCtrlBaseValid) 00084b09 00000010 : flash.obj (.text:Flash_isECCBaseValid) 00084b19 00000010 board.obj (.text:LED_GREEN_init) 00084b29 00000010 board.obj (.text:LED_RED_init) 00084b39 0000000f device.obj (.text:SysCtl_setMCANClk) 00084b48 0000000d driverlib.lib : interrupt.obj (.text:Interrupt_disableGlobal) 00084b55 0000000d device.obj (.text:SysCtl_setLowSpeedClock) 00084b62 0000000c rts2800_fpu32_eabi.lib : args_main.c.obj (.text) 00084b6e 0000000b driverlib.lib : sysctl.obj (.text:SysCtl_isMCDClockFailureDetected) 00084b79 0000000a : sysctl.obj (.text:ASysCtl_getExtROscStatus) 00084b83 0000000a : interrupt.obj (.text:Interrupt_illegalOperationHandler) 00084b8d 0000000a : interrupt.obj (.text:Interrupt_nmiHandler) 00084b97 00000009 board.obj (.text:Board_init) 00084ba0 00000009 board.obj (.text:PinMux_init) 00084ba9 00000009 rts2800_fpu32_eabi.lib : _lock.c.obj (.text) 00084bb2 00000008 device.obj (.text:SysCtl_disableWatchdog) 00084bba 00000008 rts2800_fpu32_eabi.lib : copy_decompress_none.c.obj (.text:decompress:none) 00084bc2 00000008 f280015x_codestartbranch.obj (.text) 00084bca 00000007 device.obj (.text:ASysCtl_lockVREG) 00084bd1 00000007 board.obj (.text:SysCtl_disableMCD) 00084bd8 00000007 driverlib.lib : sysctl.obj (.text:SysCtl_resetMCD) 00084bdf 00000007 device.obj (.text:__error__) 00084be6 00000005 board.obj (.text:GPIO_init) 00084beb 00000005 device_cmd.obj (.text:generic_flash_lnk_init) 00084bf0 00000003 device_cmd.obj (.text:CMD_init) 00084bf3 00000002 rts2800_fpu32_eabi.lib : pre_init.c.obj (.text) 00084bf5 00000001 c2000ware_libraries.obj (.text:C2000Ware_libraries_init) 00084bf6 00000001 rts2800_fpu32_eabi.lib : startup.c.obj (.text) MODULE SUMMARY Module code ro data rw data ------ ---- ------- ------- .\ main.obj 96 69 0 f280015x_codestartbranch.obj 10 0 0 +--+------------------------------+------+---------+---------+ Total: 106 69 0 .\syscfg\ board.obj 297 71 0 device.obj 230 84 0 device_cmd.obj 8 0 0 c2000ware_libraries.obj 1 0 0 +--+------------------------------+------+---------+---------+ Total: 536 155 0 C:/ti/c2000/C2000Ware_5_01_00_00/driverlib/f280015x/driverlib/ccs/Debug/driverlib.lib sysctl.obj 1389 155 0 flash.obj 521 156 0 gpio.obj 433 155 0 interrupt.obj 146 0 0 +--+------------------------------+------+---------+---------+ Total: 2489 466 0 C:\Dev\TI\CCS\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib\rts2800_fpu32_eabi.lib fs_div28.asm.obj 136 0 0 copy_decompress_lzss.c.obj 48 0 0 cpy_tbl.c.obj 48 0 0 exit.c.obj 41 0 6 autoinit.c.obj 43 0 0 memcpy.c.obj 29 0 0 boot28.asm.obj 23 0 0 _lock.c.obj 9 0 4 args_main.c.obj 12 0 0 copy_decompress_none.c.obj 8 0 0 pre_init.c.obj 2 0 0 startup.c.obj 1 0 0 +--+------------------------------+------+---------+---------+ Total: 400 0 10 Stack: 0 0 512 Linker Generated: 0 25 0 +--+------------------------------+------+---------+---------+ Grand Total: 3531 715 522 LINKER GENERATED COPY TABLES __TI_cinit_table @ 00080106 records: 1, size/record: 4, table size: 4 .data: load addr=000800f8, load size=00000009 bytes, run addr=000080ea, run size=0000000a bytes, compression=lzss copyTable_ramfunc @ 00080110 records: 1, size/record: 6, table size: 8 .TI.ramfunc: load addr=00080008, load size=000000e9, run addr=00008000, run size=000000e9, compression=none LINKER GENERATED HANDLER TABLE __TI_handler_table @ 00080102 records: 2, size/record: 2, table size: 4 index: 0, handler: __TI_decompress_lzss index: 1, handler: __TI_decompress_none GLOBAL DATA SYMBOLS: SORTED BY DATA PAGE address data page name -------- ---------------- ---- 00000400 10 (00000400) __stack 000080ea 203 (000080c0) __TI_enable_exit_profile_output 000080ec 203 (000080c0) __TI_cleanup_ptr 000080ee 203 (000080c0) __TI_dtors_ptr 000080f0 203 (000080c0) _lock 000080f2 203 (000080c0) _unlock GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name page address name ---- ------- ---- 0 00084b97 Board_init 0 0008479e C$$EXIT 0 00084bf5 C2000Ware_libraries_init 0 00084bf0 CMD_init 0 000844c2 Device_init 0 00084ae9 Device_initGPIO 0 00008000 Flash_initModule 0 00084be6 GPIO_init 0 00084229 GPIO_setAnalogMode 0 000846e2 GPIO_setDirectionMode 0 00084521 GPIO_setPadConfig 0 00084674 GPIO_setPinConfig 0 000846ab GPIO_setQualificationMode 0 000849d1 Interrupt_defaultHandler 0 00084b83 Interrupt_illegalOperationHandler 0 000845fa Interrupt_initModule 0 000848d2 Interrupt_initVectorTable 0 00084b8d Interrupt_nmiHandler 0 00084b19 LED_GREEN_init 0 00084b29 LED_RED_init 0 00084ba0 PinMux_init 0 000842d5 SYSCTL_init 0 0008490d SysCtl_configureType 0 000080e5 SysCtl_delay 0 0008445d SysCtl_getClock 0 00084944 SysCtl_getLowSpeedClock 0 0008413f SysCtl_isPLLValid 0 000845b8 SysCtl_selectOscSource 0 00084637 SysCtl_selectXTAL 0 00084857 SysCtl_selectXTALSingleEnded 0 00084000 SysCtl_setClock 0 00080106 __TI_CINIT_Base 0 0008010a __TI_CINIT_Limit 0 0008010a __TI_CINIT_Warm 0 00080102 __TI_Handler_Table_Base 0 00080106 __TI_Handler_Table_Limit 0 00000600 __TI_STACK_END abs 00000200 __TI_STACK_SIZE 0 00084773 __TI_auto_init_nobinit_nopinit 0 000080ec __TI_cleanup_ptr 0 00084713 __TI_decompress_lzss 0 00084bba __TI_decompress_none 0 000080ee __TI_dtors_ptr 0 000080ea __TI_enable_exit_profile_output abs ffffffff __TI_pprof_out_hndl abs ffffffff __TI_prof_data_size abs ffffffff __TI_prof_data_start 0 00080110 __TI_table_copyTable_ramfunc 0 00084362 __c28xabi_divf n/a UNDEFED __c_args__ 0 00084bdf __error__ 0 00000400 __stack 0 00084b62 _args_main 0 000849a4 _c_int00 0 000080f0 _lock 0 00084bb1 _nop 0 00084bad _register_lock 0 00084ba9 _register_unlock 0 00084bf6 _system_post_cinit 0 00084bf3 _system_pre_init 0 000080f2 _unlock 0 0008479e abort 0 00080000 code_start 0 00080110 copyTable_ramfunc 0 00084743 copy_in 0 000847a0 exit 0 00084beb generic_flash_lnk_init 0 000847ee main 0 000848f0 memcpy GLOBAL SYMBOLS: SORTED BY Symbol Address page address name ---- ------- ---- 0 00000400 __stack 0 00000600 __TI_STACK_END 0 00008000 Flash_initModule 0 000080e5 SysCtl_delay 0 000080ea __TI_enable_exit_profile_output 0 000080ec __TI_cleanup_ptr 0 000080ee __TI_dtors_ptr 0 000080f0 _lock 0 000080f2 _unlock 0 00080000 code_start 0 00080102 __TI_Handler_Table_Base 0 00080106 __TI_CINIT_Base 0 00080106 __TI_Handler_Table_Limit 0 0008010a __TI_CINIT_Limit 0 0008010a __TI_CINIT_Warm 0 00080110 __TI_table_copyTable_ramfunc 0 00080110 copyTable_ramfunc 0 00084000 SysCtl_setClock 0 0008413f SysCtl_isPLLValid 0 00084229 GPIO_setAnalogMode 0 000842d5 SYSCTL_init 0 00084362 __c28xabi_divf 0 0008445d SysCtl_getClock 0 000844c2 Device_init 0 00084521 GPIO_setPadConfig 0 000845b8 SysCtl_selectOscSource 0 000845fa Interrupt_initModule 0 00084637 SysCtl_selectXTAL 0 00084674 GPIO_setPinConfig 0 000846ab GPIO_setQualificationMode 0 000846e2 GPIO_setDirectionMode 0 00084713 __TI_decompress_lzss 0 00084743 copy_in 0 00084773 __TI_auto_init_nobinit_nopinit 0 0008479e C$$EXIT 0 0008479e abort 0 000847a0 exit 0 000847ee main 0 00084857 SysCtl_selectXTALSingleEnded 0 000848d2 Interrupt_initVectorTable 0 000848f0 memcpy 0 0008490d SysCtl_configureType 0 00084944 SysCtl_getLowSpeedClock 0 000849a4 _c_int00 0 000849d1 Interrupt_defaultHandler 0 00084ae9 Device_initGPIO 0 00084b19 LED_GREEN_init 0 00084b29 LED_RED_init 0 00084b62 _args_main 0 00084b83 Interrupt_illegalOperationHandler 0 00084b8d Interrupt_nmiHandler 0 00084b97 Board_init 0 00084ba0 PinMux_init 0 00084ba9 _register_unlock 0 00084bad _register_lock 0 00084bb1 _nop 0 00084bba __TI_decompress_none 0 00084bdf __error__ 0 00084be6 GPIO_init 0 00084beb generic_flash_lnk_init 0 00084bf0 CMD_init 0 00084bf3 _system_pre_init 0 00084bf5 C2000Ware_libraries_init 0 00084bf6 _system_post_cinit abs 00000200 __TI_STACK_SIZE abs ffffffff __TI_pprof_out_hndl abs ffffffff __TI_prof_data_size abs ffffffff __TI_prof_data_start n/a UNDEFED __c_args__ [69 symbols]
Where I can find the CPI1 setting ?
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <configurations XML_version="1.2" id="configurations_0"> <configuration XML_version="1.2" id="configuration_0"> <instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe" xml="TIXDS110_Connection.xml" xmlpath="connections"/> <connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe"> <instance XML_version="1.2" href="drivers/tixds510icepick_c.xml" id="drivers" xml="tixds510icepick_c.xml" xmlpath="drivers"/> <instance XML_version="1.2" href="drivers/tixds510c28x.xml" id="drivers" xml="tixds510c28x.xml" xmlpath="drivers"/> <instance XML_version="1.2" href="drivers/tixds510cs_child.xml" id="drivers" xml="tixds510cs_child.xml" xmlpath="drivers"/> <instance XML_version="1.2" href="drivers/tixds510ajsm.xml" id="drivers" xml="tixds510ajsm.xml" xmlpath="drivers"/> <platform XML_version="1.2" id="platform_0"> <instance XML_version="1.2" desc="TMS320F2800157" href="devices/f2800157.xml" id="TMS320F2800157" xml="f2800157.xml" xmlpath="devices"/> </platform> </connection> </configuration> </configurations>
Hi Maheswaran,
CPU1 Settings can be found here in Uniflash under the 'Settings & Utilities' tab:
First, were you able to find and use the CPU1 setting?
Thanks and regards,
Charles