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.

HALCOGEN: Why doesn't HALCoGen generate source code for DMM

Part Number: HALCOGEN
Other Parts Discussed in Thread: TMS570LC4357,

Hello,

I am using HALCoGen to generate code for a Hercules TMS570LC4357.

I want to use the DMM for GIO.

I can see that HALCoGen generates HL_dmm.h and HL_reg_dmm.h but it does not generate a HL_dmm.c.

I can see that HALCoGen generates various configuration values e.g. DMM_PC0_CONFIGVALUE

But how is DMM_PC0_CONFIGVALUE used to configure the Hercules?

Is the configuration of the DMM for GIO done by dmmInit()?

If so, then, where is dmmInit(), does it have to be written by hand?

Thank you.

  • Similar to above, does rtpInit() also have to be implemented by hand?

  • Hi Andrew,

    The HALCoGen doesn't generate code for several modules which are grayed in HalCoGen diagram. For example, DMM, RTP, HTU, FTU, Flexray, EPC, etc.

  • Hello QJ,

    Thank you for the link.

    However,when I click on either 3343.rtp.c or 2705.dmm.c  I get the following message:

    "You do not have permission to view this directory or page."

    What do I need to do to access these files?

    Regards,

    Andrew

  • Hello QJ,

    Thank you for the link.

    However,when I click on either 3343.rtp.c or 2705.dmm.c  I get the following message:

    "You do not have permission to view this directory or page."

    What do I need to do to access these files?

    Regards,

    Andrew

  • Hello QJ,

    Thank you for the link.

    However,when I click on either 3343.rtp.c or 2705.dmm.c  I get the following message:

    "You do not have permission to view this directory or page."

    What do I need to do to access these files?

    Regards,

    Andrew

  • Hi Andrew,

    I will find the files and re-post later. Thanks

  • 5050.dmm.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /** @file dmm.c
    * @brief DMM Driver Implementation File
    * @date 9.Sep.2014
    * @version 04.01.00
    *
    */
    /* (c) Texas Instruments 2009-2014, All rights reserved. */
    /* USER CODE BEGIN (0) */
    /* USER CODE END */
    #include "dmm.h"
    /* USER CODE BEGIN (1) */
    /* USER CODE END */
    /** @fn void dmmInit(void)
    * @brief Initializes the DMM Driver
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    8473.rtp.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /** @file rtp.c
    * @brief RTP Driver Implementation File
    * @date 9.Sep.2014
    * @version 04.01.00
    *
    */
    /* (c) Texas Instruments 2009-2014, All rights reserved. */
    /* USER CODE BEGIN (0) */
    /* USER CODE END */
    #include "rtp.h"
    /* USER CODE BEGIN (1) */
    /* USER CODE END */
    /** @fn void rtpInit(void)
    * @brief Initializes the RTP Driver
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi QJ,

    Thank you for your assistance.

    Andrew