Other Parts Discussed in Thread: C2000WARE
Tool/software:
Dear Experts,
I'm testing flash programming of TMS320F280049C through CAN boot mode. The reference is sprad51a.
I modified the reference project, "flash_kernel_ex5_dcan_flash_kernel" for TMS320F28003x, as following
[ 1.kernel ]
//===========================================================
<projectSpec>
<project
name="flash_kernel_ex5_280049C_dcan_flash_kernel"
device="TMS320F280049C"
cgtVersion="22.6.1.LTS"
launchWizard="False"
enableHexTool="True"
linkerCommandFile=""
outputFormat="ELF"
postBuildStep=""${CG_TOOL_HEX}" "${BuildArtifactFileName}" -boot -sci8 -a -o "${BuildArtifactFileBaseName}.txt""
>
<configuration name="CPU1_RAM" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_DLIB_INC} -I${BootROM_INC_PATH} -I${FlashAPI_INCLUDE_ROOT} -v28 -ml -mt --define=CPU1 --cla_support=cla2 --float_support=fpu32 --define=CPU1 --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="-I${FlashAPI_LIB_ROOT} --entry_point code_start --stack_size=0x200 --heap_size=0x100" hexBuildOptions="--boot --sci8 --ascii --outfile=${BuildArtifactFileBaseName}.txt" />
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../f28004x/driverlib" scope="project"/>
<pathVariable name="C2000WARE_DLIB_INC" path="../../../../f28004x/driverlib/inc" scope="project"/>
<pathVariable name="BootROM_INC_PATH" path="../../../../../libraries/boot_rom/f28004x/rev0/rom_sources/F28004x_ROM/bootROM/include" scope="project"/>
<pathVariable name="FlashAPI_INCLUDE_ROOT" path="../../../../../libraries/flash_api/f28004x/include/FlashAPI" scope="project"/>
<pathVariable name="FlashAPI_LIB_ROOT" path="../../../../../libraries/flash_api/f28004x/lib" scope="project" />
<file action="copy" path="../../../../../libraries/flash_api/f28004x/lib/F021_API_F28004x_EABI.lib" targetDirectory="" />
<file action="copy" path="../../../../../device_support/f28004x/common/include/driverlib.h" targetDirectory="device"/>
<file action="copy" path="../../../../../device_support/f28004x/common/include/device.h" targetDirectory="device"/>
<file action="copy" path="../../../../../device_support/f28004x/common/source/device.c" targetDirectory="device"/>
<file action="copy" path="../../../../../device_support/f28004x/common/targetConfigs/TMS320F280049C.ccxml" targetDirectory="targetConfigs" />
<file action="copy" path="../../../../../device_support/f28004x/common/targetConfigs/TMS320F280049C_LaunchPad.ccxml" targetDirectory="targetConfigs"/>
<file action="copy" path="../../../../../device_support/f28004x/common/cmd/28004x_generic_ram_lnk.cmd" targetDirectory="" />
<file action="link" path="../../../../../driverlib/f28004x/driverlib/ccs/Debug/driverlib.lib" targetDirectory=""/>
<file action="copy" path="../../../../../driverlib/f28004x/driverlib/" targetDirectory="device" excludeFromBuild="True"/>
<file action="copy" path="../../../../../libraries/boot_rom/f28004x/rev0/rom_sources/F28004x_ROM/bootROM/include/cpu1bootrom.h"/>
<file action="copy" path="../../../../../libraries/boot_rom/f28004x/rev0/rom_sources/F28004x_ROM/bootROM/include/cpu1brom_pbist.h"/>
<file action="copy" path="../../../../../libraries/boot_rom/f28004x/rev0/rom_sources/F28004x_ROM/bootROM/include/cpu1brom_utils.h"/>
<file action="copy" path="../../../../../libraries/boot_rom/f28004x/rev0/rom_sources/F28004x_ROM/bootROM/include/bootloader_can_timing.h"/>
<file action="copy" path = "../flash_programming_f28004x.h"/>
<file action="copy" path="../flash_kernel_ex3_codestartbranch.asm" targetDirectory="" />
<file action="copy" path="../flash_kernel_ex5_dcan_flash_kernel.c" targetDirectory=""/>
<file action="copy" path="../flash_kernel_ex5_boot.c" targetDirectory="" />
<file action="copy" path="../DCAN_Boot.c" targetDirectory="" />
<file action="copy" path="../flash_kernel_ex3_commands.h" targetDirectory="" />
</project>
</projectSpec>
//===============================================================================================
[ CANA PIN ]
Boot Mode : 0x42 (CAN_TX - GPIO31, CAN_RX - GPIO30)
Programming OTP for this mode
[ Flash programmer ]
dcan_flash_programmer.exe and dcan_flash_programmer.sln and PCAN-USB FD
[Test result]
kernel and hex(txt) files were sent to board, but flash memory is not programmed.
What's the check points for this situation?
Sincerely,
Eui-heon