Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 226316

Forum Post: TMS320F28P550SJ: Sysconfig does not allow to set User Defined Memory Sections in the linker script with the same name for different build configurations

$
0
0
Part Number: TMS320F28P550SJ Other Parts Discussed in Thread: SYSCONFIG In Code Composer Studio, I imported a DSP RFFT sample project. It comes with the "RAM" and "FLASH" build configurations. The project defines some memory sections where to store the RFFT data (e.g., RFFTdata1). The RAM configuration has a definition for these areas, see below: // // User Sections // RFFTdata1 { } > RAMGS3, ALIGN(512) RFFTdata2 { } > RAMGS3 RFFTdata3 { } > RAMGS3 FPUfftTables { } > RAMGS3 RFFTdata4 { } > RAMGS3 FPUmathTables { } > RAMGS2 The project uses sysconfig and I have tried to define such memory areas also in the FLASH configuration, since they are not defined there (them not being defined causes the code to not behave correctly). The moment I add RFFTdata1 to the User Defined Section in sysconfig, however, I get the error error: generic_ram_lnk(/utilities/cmd_tool/cmd_syscfg/source/CMD) userSection[0].$name: Duplicate name: 'RFFTdata1' also exists on instance(s) of User Defined Section error: generic_flash_lnk(/utilities/cmd_tool/cmd_syscfg/source/CMD) userSection[0].$name: Duplicate name: 'RFFTdata1' also exists on instance(s) of User Defined Section This error appears both in the sysconfig UI and when compiling the code. Note that the generate linker script (device_cmd.cmd) uses preprocessor directive to select which memory configuration to use, so RFFTdata1 should not be considered duplicate, see below (shortened for clarity): #ifdef generic_ram_lnk MEMORY { ... } SECTIONS { ... } #endif #ifdef generic_flash_lnk MEMORY { ... } SECTIONS { ... } #endif /* //=========================================================================== // End of file. //=========================================================================== */ How do I add the required RFFTdata sections to the linker script in the FLASH configuration? Thanks.

Viewing all articles
Browse latest Browse all 226316

Trending Articles



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