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.
How is the DIL file generated from Halcogen, what is it's significance ? Can I read this file if I want to include the Halcogen settings in my custom code.
My aim is to do the init time settings from Halcogen and use the generated code with my custom code. If I have to work with only the generated code, in that case what would be the use of DIL file?
The HALCoGen DIL file holds the values set in the GUI. It is not designed to be used directly. HALCoGen was designed that you can use the source files generated by HALCoGen. If you make all of the custom code modifications between the user code statements, then when you go back to the GUI to make updates, your custom code will be preserved.
/* USER CODE BEGIN (6) */ /* USER CODE END */
So that means, DIL file is just a representation of settings we make to Halcogen GUI? All I always need to work with the generated Halcogen code and if I change the settings in Halcogen GUI, I do not need to worry much about my inserted custom code(before the GUI changes were made) when I generate the code again? or here DIL plays some role?
-Peeyush
No, you can call HalCoGen through the command line (Headless mode) to invoke generation without the GUI showing up. See HALCoGen command line options - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E...
The .dil file is specified in the .hcg file which is XML based .. for example like this:
<?xml version="1.0" encoding="UTF-8"?>
<SETTINGS>
<DEVICE>
<family>RM57Lx</family>
<device>RM57L843ZWT</device>
<dilfile>hcg.dil</dilfile>
<tools>ti</tools>
</DEVICE>