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.

TMS320F28027: TMS320F28027: Memory Allocation问题,打印的数组的数不变

Part Number: TMS320F28027

#pragma DATA_SECTION (Spwm_Vo_Val1,"scidata");

uint16_t print_cnt = 0;

int16 Spwm_Vo_Val1[400]={0};

printf("\r\nLI %d",Spwm_Vo_Val1[print_cnt]);
print_cnt=(print_cnt+1)%400;

打印的数据始终不变实际上不把Spwm_Vo_Val1定向在scidata段打印的数据就是变化的

打印结果为 LI  1 

CMD文件和编译后的各自占用的内存会以文件形式上传

F28027.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
// TI File $Revision: /main/7 $
// Checkin $Date: July 6, 2009 17:25:36 $
//###########################################################################
//
// FILE: F28027.cmd
//
// TITLE: Linker Command File For F28027 Device
//
//###########################################################################
// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $
// $Release Date: January 11, 2011 $
//###########################################################################
*/
/* ======================================================
// For Code Composer Studio V2.2 and later
// ---------------------------------------
// In addition to this memory linker command file,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

谢谢!