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.

TMS320F28377D: can't assign a value to a parameter

Part Number: TMS320F28377D

Hi,

I declare a struct called "ST_CTL_PARAM" in ctl_var.h.

2500.ctl_var.h

And define

volatile ST_CTL_PARAM ctl_par

in boost_Ctr_CLA.cla file.

But "ctl_par.Vpn_sep_co = 13.0;,ctl_par.id_n_lmt   = 15.0" can't take effect.

ctl_par.Vpn_sep_co,

ctl_par.id_n_lmt,

are still 0 even after we run through the code below.

However, "ctl_par.coswT=14.0" can take effect.

if we add "PLL_test_num++" below, "ctl_par.Vpn_sep_co = 13.0;,ctl_par.id_n_lmt   = 15.0" can take effect. 

Why?