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.

CLA issue with variable definition

Hi,

i have a problem with the communikation of the main cpu with the cla,

i use the cla math and modified a examble. The cla don´t take varriable i made, but it ist in the same struct like the examble i.e.
struct CPU_TO_CLA_MSG_RAM {
    float   rad0;  (from examble)

    float  Ref;  (new) }

and the call

MMOV32 MR0, @_CpuToCla1Msg.rad0 ; run

MMOV32 MR0, @_CpuToCla1Msg.Ref ; don´t run

"CLA.asm", ERROR!   at line 125: [E0300] Structure/union member, Ref, not found
     MMOV32 MR0, @_CpuToCla1Msg.Ref

 

can somebody help me ?

thx

 

  • Chris,

    If I understand, all you did was go into CLAShared.h and added a member to the structure?  Make sure you do a "rebuild all"  (instead of a incremental build) otherwise the change in CLAshared might not force a rebuild the .asm file.   

     

    A trick to keep this from happening is to add this to the very end of the CLA assembly file:  This will trick the build tools to into looking for changes to CLAShared.h.


        .end
        .include "CLAShared.h"

    -Lori

  • Thank you for the answer.

     I added a member an i used this member in the CLA.

    I added the .end.... , but now i have the massage :

    "TestCLA2.c", line 102: error: struct "CPU_TO_CLA_MSG_RAM" has no field "Ref"

    I´m sure i done all what explained in the video about the varriables, it´s enough to drive one to despair.

    Now i create a projec without IQmathe and i include the CLAmath.

    And i have more problems since i activate the CLA, i can´t give my float32 varriables a value, when i try that, the value is 0.0 anytime. Is thes a affect of the CLA or i am to stupid to use the prozessor ?

    Without the CLA i create a project with IQmath and the project works, after i activate the CLA my IQmath funktions don´t execute. I dont become errors but the instruction is like a nope instruction.

    In addition i´m not abel to play the 2 trainings videos, i tryed that on two pc´s but the mediaplayer opend automatic and give me an error...  is a specific player needet ?

    I hope i don´t post in a fals topic, i habe a little bit problems with the language, sorry.

     

     

    Chris

     

     

     

     

  • Chris,

    The two training videos are .wmv files. You can use Windows Media Player. You can also try VLC Media Player. Regarding your project, are you modifying an exisiting CLAMath project to add IQMath or are you creating a new project? If this is a new project can you attempt to just modify the existing program to see if this works?

    Regards,

    Tim Love

  • Hi Tim,

    i cant´t use the Windows Media Player, the player gives me an errormassage, i try to use the VLC.

    About my project, i use an exsisting project and modify it, that are the problem. The simple modifications don´t work.

    Thank you for your help.

    mfg

    Chris