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.

The destination Halcogen Het.c doesn't contain the het code array

Other Parts Discussed in Thread: RM48L952, HALCOGEN

Hello,

I begin to use N2HET IDE to write HET programm and load it in RM48L952 microcontroller.

I wrote a first simple programm :
 
L00  CNT    {  reg=A, irq=OFF, max= 1 }
        ECMP  {  next= L00, en_pin_action=ON, pin=1, action=PULSELO, reg=A, data= 1, hr_data=0}

I want to load it by using the menu : Tool ==> Send to HalCoGen with HET IDE Release 3.3 Date 30/01/2012.

When I did it I got the following error :

The destination Halcogen Het.c doesn't contain the het code array : const hetINSTRUCTION_thetPROGRAMM[]

What can I do to transfer the programm in the device?

Thanks for your Help

  • Can you try this:

    In HET IDE:


    Assemble the .het source into a .c and .h file by pressing the assemble button

    Start HalCogen

    In the HET global Timing config tab,
    Select Enable advanced config.
    Select The .h and .c file in the directory where you created the HET IDE project.



    Save Project
    Generate code 

    The code should now be in the your project's source and include folder.

    They will have <your IDE PROJ NAME>.c and  <your IDE PROJ NAME>.h  as name.

    HALCoGen takes care that the include is included, and that the HET code is copied to HET memory.

  • Jerome,

    I can see the problem, will check with the tools guys and re-confirm.

    Another simpler option is, if you are using Halcogen and enabled the het driver, then it might have a slightly different name. So copy the memory array from your generated het.c file and paste the same manually on to the Halcogen generated HET Driver code, which should at least get you going for now before I get back to you on this shortly.

  • Jerome,

    We are not sure if that's supported any more, but there are other options like the one mentioned by Jan in the reply.

    one of our Halcogen expert will help you with the best option to go forward.

  • Hi

    Please do not use "Send to HALCoGen", this feature is not supported in HALCoGen anymore, Right way is to generate the C and H file and select those under HET Tab in HALCoGen.

  • Hi,

    I will not try to use the "Send to HalCoGen" feature anymore.

    The following solution is well working :

    ...So copy the memory array from your generated het.c file and paste the same manually on to the Halcogen generated HET Driver code..

    Thanks for your help

  • It will work, but you don't have to move any code if you do this: - generate the .c and .h file in HET IDE, by pressing 'assemble'. - in HalCoGen, select the advanced driver and select your just generated .c and .h file. If you folow these steps, the HALCoGen generated code will already take care of all of that.
  • Agree with Jan.

    If you do the way Jan/Prathap had suggested, you do not need to do a copy paste every time you modify the het code outside.

  • Just to Add to Jan's comments

    Steps to be follwed to use HET IDE and HALCoGen together

    In HET IDE Side

    1) Create HET IDE Project ( say het_test is your project name, with het_test.het as your het file)
    Note:
    To be safer make sure you do not name the HET IDE Project or your .het file as het, becasue by default the file generated will be named as het.c and het.h, which will clash with HALCoGen's driver file het.c and het.h...

    2) Do assembly coding using HET IDE, Once completed Do "Debug-->Assemble"
    3) now  het_test.c and het_test.h files will be generated by default in the same folder where het_test.het is present

    HALCoGen SIde

    1) Go to HET TAB in HALCoGen
    2) Enable Advanced Config Mode and chose the het_test.h and het_test.c files as per the snapshot below.
    3) Generate Code. You could see that het_test.h and het_test.c files get copied to the source and include Folders where HALCoGen project is present. In your CCS project you must add these files too and compile along with het driver files het.c and het.h.

     

  • Hello,
    Thanks a lot for these explanations.
    I tried it and that works very well.
    I just sometime got a warning in the first line of the het.h file:
    #ifndef __HET_H__
    ...
    #endif
    To suppress the warning I have to suppress this line and the last line of the file.
    Have you an explanation for that ?
    Kind Regards