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.

CCS/UCD3138A: How to assign value to the array in structure

Part Number: UCD3138A
Other Parts Discussed in Thread: TMDSEMU110-U

Tool/software: Code Composer Studio

Hi,

        I tried to define a structure which contained variables, arrays and also structures. But I have problem of assigning values to the arrays and structures in this structure. In contrast, I can successfully assign values to the array which is not included in the structure. My CCS version is 6.2.0, and the Fusion Digital Power Studio is 3.0.20. 

        This is the structure I defined.

     The biquad_param structure is as follows, it also contains arrays.

      I also define all the variables as EXTERN variables. The bq_buf_LD_test[3] array is for comparison.

     Then, I tried to assign values as follows:

       The code can be compiled successfully, and the value of bq_buf_LD_test[3] is correct.

    But the values of pll1.bq_buf_LD[3], pll1.bq_param_VE.A[2], and pll1.bq_param_VE.A2_shift_n are wrong,

It is such a simple code and I don't know why the assignments are not correct.

Thank you in advance.