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.

f28335 定义结构体跑飞



我在程序中定义了一个结构体

typedef struct
{
int SP //
int NP; //
float Kp; //
float Ki; //
float Kd; //
int Sum;
int Last; 
int Prev; 
} Param;

在程序中声明一个给类型的变量并赋值时程序出现跑飞的现象,点击暂停程序停在 0 L$$DIV() at l_div28.inc:53 0x00b00b 

,这是什么原因,是因为内存空间不够大吗?

声明和赋值的代码如下

Param sS;

sS.SP = 1;