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.

[HET IDE] Debug mode is not work

Other Parts Discussed in Thread: HALCOGEN

Hi,

I installed HET IDE and try to do "Tutorial 1 – Getting Started"
But I could not go to Debug mode from Editor mode after asembly and Load HET Program.

So, I cannot run simulation and cannot click Tools>Waveform wizard which are next step of tutorial.

Would you guide me what I have to do run debug mode?

Following is message on Output window after I clicked "Assemble and Load" button.

==============================
C:/Users/a0967691/Documents/Texas Instruments/Hercules/HET/Tutorials/tut1/tut1_overview/tut1_overview.het
C:/Program Files (x86)/Texas Instruments/Hercules/HET/bin/hetp.exe C:/Users/a0967691/Documents/Texas Instruments/Hercules/HET/Tutorials/tut1/tut1_overview/tut1_overview.het
NHET Assembler    Release 1.7
Texas Instruments Incorporated.
 PASS 1
 PASS 2

 No Errors, No Warnings
==============================

 

  • Hi Yulip,

    There's a known issue with the current release of the HET IDE - it uses a hard-coded TCP port # to communicate between the GUI (frontend) and simulator (Backend) and if this port is already in use, the simulation won't launch.

    There are some patches posted in this link.

    Pls. try them and let me know if this clears up the issue for you.

  • Hi Anthony, It works and can go next step now.
    I will contact when I have more question. Thank you!!
  • Sorry to everyone who had trouble w. the previous link.  It has been updated...

    The patches are available here:  

    https://txn.box.com/het-patches  


    This link expires every 7 days though (sorry I can't change that behavior) so if you need the file and it's not working, shoot me a mail and I'll refresh the link.

    You have to overwrite the two files in your existing HET IDE installation with the two files in the folder linked above.   HET.exe goes into the HET IDE install folder (replace current HET.exe) and Simulator.exe goes into the \bin subfolder.

    When you run the HET IDE again with these files, you should see messages in the output like this:

    Starting the simulator ....
    Simulator Constructed Frontend Interface ...
    Simulator Listening on Port 60785
    Frontend Connected to Simulator on Port 60785
    Clock is set to 10 HET_NS

    The port # is now dynamic instead of hard coded - the problem w. the current release is that it has a hard-coded port # and you may already have some application that is tying up this port.    The patched executables ask the OS for an open port and then use it to communicate - in my case above port 60758 was open but you may have a different #.  It doesn't matter what the port # is as long as the simulator and front end both talk on the same port.


  • This link expires every 7 days ...

    Please refresh the link.

    Thanks

  • Hi Terry,

    Just updated it & worked a minute ago. Let me know if you have any problems with the link.

    Best Regards,
    Anthony
  • Thanks Anthony

    The link worked fine.

    I still was having a problem with the HET IDE Debug. It looks like the 'hnc' file runs the app.  I was using the -hc32 option and no *.hnc file was generated.

    The -c32 or nothing works fine.

    Regards,

    Terry

  • Hi Terry,

    I've tried editing the command line for the HET assembler inside the HET IDE and it's never worked for me.
    The only way it seems to work is to leave it at the default setting. If you do that it should work OK and it should import into HalCoGen ok as well.
    If not let me know more about what you are trying to do.

    The reason I have tried to edit the command line is to assemble for HET2 instead of HET1. But when I do this now I just simulate for HET1 and when I'm done, assemble at a command prompt (outside the HET IDE) with the switches for HET #2.
  • I do that second assembly step in CCS, on the prompt for the pre-build commands.

    That takes care that the .c and .h file are generated before project compilation, and always are based on the latest .het  assembly source.

  • Excellent Suggestion Jan!

    Did you happen to capture this in one of your you-tube movies?
  • I had it documented for someone else a while ago (adapt the command line options as needed for your project):

    Add environment variable pointing to the het assembler; adapt to your local settings.
    This assembler is installed when you install the HET IDE.
     
    Add the steps to assemble the .c and .h files to the CSS build steps:
     
    ${HET_COMPILER} -n0 -v1  -hc32 "..\het\HET_IO_TEST.het
    copy /Y  ..\het\HET_IO_TEST.h ..\include\HET_IO_TEST.h
    copy /Y  ..\het\HET_IO_TEST.c ..\source\HET_IO_TEST.c
    Pusk OK.
    That's it. From now on the project is fully buildable from within CCS.
  • Thanks to all for your help.

    I have my capture and timer functions working. I’m using a custom build at compile time, thank you Jan. My final hang up was leaving out the structures reference to hetRAM1 0xFF460000. (using RM48L with HALCoGen 4.02)

    __no_init volatile HETPROGRAM0_UN e_HETPROGRAM0_UN @ 0xFF460000;

    Regards

    Terry

  • Dear Anthony,

    could you refresh the patch link please?

    Thank you: Szilard

  • Szilard,

    Sure, but I just checked txn.box.com/het-patches and it appears to be active until 2/23.
    Are you having trouble accessing it?

    Best Regards,
    Anthony
  • Anthony,

    Firstly I tried to use my TI account at the box.com, without any success. Secondly signed up and unfortunately I got "The item you are trying to access has either been deleted or unavailable to you" message.

    Thank You: Szilard
  • Hi Szilard,

    Sorry that was my mistake - I thought it was setup for anyone with the link but it was anyone in the company.

    I don't believe you login w. your my.ti.com account but instead create your own account on box (they offer free accounts) or login with your own account if you have one. I tested it that way on my own PC w. my own individual login and I was able to see the patches once I fixed the perimissions.
  • Thank You Anthony,
    it works yet.
  • Hi Anthony,

    could you please refresh the link to HET patches ?
    Thank you in advance.

    Regards,
    Miloslav
  • Hi Jan

    I have 2 codes. One for N2HET1 and the other for N2HET2. I did two projects on the IDE  to generate the .C and the .H and then upload them on HALCOGEN on the Advanced configuration

    do I still need to do this??

    and if so... I would need to do it for both rigth?

    one more question. How can I know the timing configuration for my project? since the HET IDE is not allowing me to go instruction for instruction... 

    thanks!!!

  • There are 3 things that need to happen:

    - assemble the het code (you can do that in the HET IDE or with the HET assembler command line tool.)

    - take care that the generated .h file ends up in your project's include path, and

    - take care to move  the generated .c file ends up in your source path
    (you can move them either by selecting them in HALCoGen or by moving them over via a copy command.)

    The video's of TI show how to do it with the HET IDE and HALCoGen. That's the easiest way. I showed how to do it with the command line tools because then you can automate the build cycle. The end result is the same, but you never need to do both IDE and command lines together. It's either, not both.

  • okok

    so I just generated the .c and .h files and upload them via halcogen.

    I configured the pins as inpust, since im reading 12 encoders. the loop is of 6.4us. What are the options for the interrupt enable? do I need to use them?

    I need, each X time, recover the info of my variables and use that info for the motor control application. The code goes from first encoder to 12 and back to the start. But I have a question. You can see on encoders_1 that all the data is on register A. I was reading the TMR and saw that I should put the info on A B C and D but Im not sure about that... 

    And... for some reason, when doing the simulation, on the registers window, A doesnt get a value different from 0... is that a problem from the IDE or am I missing something???

    thanks Jan!!

    3821.encoders-27-10-2016.rar

  • Hi Jan
    do you know why the register A still the same even when there are input signals? shoudnt it change?? or am I missing something on the code?
    thanks