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.

Update tools(CCS4 and HALCOGEN) -----bring problem?

Other Parts Discussed in Thread: HALCOGEN

Hi,

Describing a process:

1. I created the project of ccs4 for sharing with HALCOGEN about  one month ago.

     When I want compile  the code which was generated by HAHALCOGENL, I got a error :

>> Compilation failure

gmake: *** [source/system.obj] Error 1

gmake: Target `all' not remade because of errors.

2. I re-created the project of CCS4 for sharing with HALCOGEN again and update the HALCOGEN tools tool.

    The code which was generated by HALCOGEN passed the compiling and linking . So I thought I got mistakes when I created the sharing project(http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/216523/765524.aspx#765524).

    After that time, Everything was fine. If  I changed some items of project in HANCOGEN tools, I can got the corresponding change of the code in CCS4 tools too.

3. I updated the HAL few days ago. There was a problem: when I change the setting item in HALCOGEN, the code in CCS4 did not change.

4. I created another sharing project. When I try to compile the code which come from HAL. I got same error information:

>> Compilation failure

gmake: *** [source/system.obj] Error 1

gmake: Target `all' not remade because of errors.

 


The detail of my current tools:

windows 7.  CCS4 :Version--4.2.5.00005

                    Hal code generater :Version-- 03.03.01  --http://www.ti.com/tool/halcogen

                   CPU : RM48L950

 

 

So I think the problem maybe come form HAL tools.

Is there some one can help me?

Thanks !

B.Rs,

Chuan

  • Hello Chuan,

    This is a unique situation, your error message seems to say that something is really wrong and that a C file creates error and causes gmake to to exit.

    Can you right click on your project and hit "Build Project"? It seems from your post that you are building all projects...

    Can you right click on system.c and hit "Build Selected File"? Let me know if you're still seeing this error:  [source/system.obj] Error 1

    Can you send me a picture of your compile properties as well?

    Best regards,

    Luc

  • Hi Luc,

    Thanks for your reply.

    Yes, It was very strange.

    Right now, I have twe project code. One of them was generated by old versions HALCOGEN and  passed the compiler and link by CCS4. The other one was generated by new versions HALCOGEN and failed compiler . the setstate were same in CCS4.

    The enclosure was my setstate of ccs4. Would you help me find some mistake.

    Thanks

     

    B.Rs,

     

    Chuan

  • Hello Chuan,

    If I understand the issue correctly, you had compile errors with the previous version of HalCoGen and by switching to the new version you now can compile the code fine, is this correct?

    Best regards,

    Luc

  • Sorry, just realized that the previous HalCoGen version had code compiling. Do you still have this code available and does it still compile?

    Can you send me your project and let me know which version of HalCoGen you have been using?

  • Hi Luc,

    I install these tools about 6 weeks ago. When I compile the code which was generated by HALcogen first time, It was ,failing untill I re-created share project and set the ccs4.

    After that time, every thing looks good. Last week, the HALCOGEN can not changed the share code (ccs4 compile and link still works) after I updata the HALCOGEN. So I try to compile a new project code which was generated by new HALCOGEN. But I got the error.

    Right now, I have two project code which all  were generated by HALCOGEN (difference version). If I compile them by CCS4 in same setstate, the first one passed and the newest one did no work.

    Thank you.

     

    Chuan

  • Hi Luc

    The enclosure were two project code which all were generated by difference versions HALCOGEN.

    The v402023p was old code (include with my own code)  which can be compiled.but the code can not be changed by Halcogen.

    The v2023 was new code which have compiling error.

     

    6116.v402023p.zip

    1854.v2023.zip

     

    Thank you very much.

    Chuan

     

  • Hi Chuan,

    I tried opening your HCG project form ( v2023).. Following are my understanding and comments..

    1) The HCG project was created prior and modified later.. eg: RTI interrupt is enabled in VIN TAB  but Driver is diabaled in "Driver Enable " Tab. Please disable the unwanted interrupts.

    2) Please Enable CAN1 and CAN2 in "SAFETY INIT" tab for Parity Check. This is a known issue and will be fixed in next version.

    3) I think you have RM48x Device, But I see that in your CCS project file( GO to Properties) you have choosen RM48x device and Device Endiness as be32. Please change it to little if it is RMxx device.

    Regards
    Prathap

  • Hi Prathap,

    Thank you very much for the reply.

    I have enabled the RTI in "Driver Enable" from HCG, because  need the RTI ISR. Could you tell me what will be difference in code if one founction be enabled or disabled.

    About CAN bus, I just need CAN1 and I did not write the code yet. Should I enable Can2 too.Would you give me more details about this.

    My device is RM48L950PGE. I will change to little.

    In addition, could you change the code by HCG. My big problem is I cannot chang the code by my HCG yet.

     

    Thank you.

     

    B.Rs,

     

    Chuan

     

  • Chuan,

    1) I did not see RTI enable in "Driver Enable" Tab,when I used your Project. Hence I have asked you to check. If RTI Driver is unchecked the corresponding driver file will not be generated. For example if RTI is unchecked you will not generate the rti.c. NOTE: If you already have the rti.c in the folder it will not be deleted. May be you are facing this issue. I would recommend to start clean by backing up all your old file, delete source and include and regenerate the code using HALCoGen.

    2) U need not enable CAN2 in "Driver Enable" Tab, just Enable them in the "SAFETYINIT" Tab. It is a HALCoGen GUI bug, that "void can1ParityCheck(void)" API is generated only when both CAN1 and CAN2 checked in Memory Parity Self Test box in "SAFETYINIT" Tab.

    Regards
    Prathap

  • Hi Prathap,

    Thanks for your reply.

    I think you are referring to project v2023 (new one).I follwed your email :  enable RTI in "Driver Enable"  Tab and enabe all in  the "SAFETYINIT" Tab. ---> deleted all *c --> geneted code again by HalCoGe  -----> compile the code by CCS4 ----> did not passed and got same error :

    >> Compilation failure

    gmake: *** [source/rti.obj] Error 1

    Let me clean up my question:

    My main question was why I cannot chang the code in project "v4020023p" by HalCoGen. About the project, everything was good before I  updated the HalCoGen.So I write a lot of code and it passed compile/link. Right now it still passed compile/link in CCS4.

    For resolving the problem, I think I need re-build a new shared project between HalCoGen and CCS4 and make it pass compile/link, then I will backup the code of project v4020023p and copy my code to new shared project.

    But it bring the second problem. That was why the project "v2023" which was generated by HalCoGen and was built for resolving last problem can not passed compile/link in CCS4.

    If you need the new project "v2023" which I have done follow your email, I may upload it again.

    Thanks,

    B.Rs,

     

    Chuan