Part Number:TMS320F280025
我做了一个bootloader程序,需要把整个工程放在ram里面运行。用作boot升级boot,升级过程中会擦除flash的全部程序
运行完全没有问题。但编译有告警。不知道是否有问题。用官方例程改成这个cmd文件都会出现这个告警
我是按照这个网页操作的 https://zhuanlan.zhihu.com/p/495521132
还有没有别的什么方法把整个工程放在ram运行。
以下是修改280025_FLASH_lnk.cmd文件的部分
//.text : >> FLASH_BOOTLOADER, ALIGN(8)
.text : LOAD = FLASH_BOOTLOADER,
RUN = RAM_DATA,
LOAD_START(_text_loadstart),
LOAD_SIZE(_text_size),
RUN_START(_text_runstart),
ALIGN(8)
编译告警的内容
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:decompress:lzss:rts2800_fpu32_eabi.lib<copy_decompress_lzss.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:decompress:none:rts2800_fpu32_eabi.lib<copy_decompress_none.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:decompress:ZI:__TI_zero_init_nomemset:rts2800_fpu32_eabi.lib<copy_zero_init.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:decompress:ZI:rts2800_fpu32_eabi.lib<copy_zero_init.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:rts2800_fpu32_eabi.lib<memcpy.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Description Resource Path Location Type
#10278-D LOAD placement specified for section ".text:rts2800_fpu32_eabi.lib<memset.c.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY"). DCDC_boot C/C++ Problem
Ben Qin:
你好,可以参考下这两个文件:
Running an Application from Internal Flash Memory on the TMS320F28xxx DSP (Rev. L)
Copying Compiler Sections from Flash to RAM on the TMS320F28xxx DSCs (Rev. A)
wang li 说:#10278-D LOAD placement specified for section ".text:decompress:lzss:rts2800_fpu32_eabi.lib<copy_decompress_lzss.c.obj>".
这个警告您可以参考下这篇帖子:
(+) 28388 – C2000︎ 微控制器论坛 – C2000 微控制器 – E2E 设计支持 (ti.com)