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.

RM48L952ZWT: Missing F021.h in Device_RM48.h when building

Other Parts Discussed in Thread: HALCOGEN

I used HalCoGen to generate the code for my RM48L952ZWT project and overlaid/added the source files to my Code Composer Studio project. I tried to build, but receive a compiler error, include file F021.h in Device_RM48.h does not exist.

/* Include Files */
#ifndef _PLATFORM_TYPES_H_
#define _PLATFORM_TYPES_H_
#endif
#include "F021.h"
#include "hal_stdtypes.h"
#include "Device_types.h"

I see the other 2 include files, just not the F021.h. Where is it?

  • Hi Sarah,

    If you are using the FEE driver, you have to use F021 Flash API that comes along with the HALCoGen package. F021.h is as part of F021 Flash API  and the other 2 header files are generated as part of HALCOGen drivers.

    You can follow these steps to include F021 Flash API to the project:

    • Add Link F021_API_CortexR4_LE_V3D16.lib from folder C:/ti/Hercules/F021 Flash API/2.01.01 to CCS Project
    • Add Path C:/ti/Hercules/F021 Flash API/2.01.01/include to Include Path in CCS Project.

    Please refer examples provided in the HLACoGen user guide for more details.

    Thanks and Regards,

    Veena

  • How did HalCoGen make it out the door? Was everyone in QA laid off and does HalCoGen have no users besides me? Anyways, here is a bug-bug causing compilation issues. CCS caught the error, hence my comment.

    From sys_vim.c:

    static const t_isrFuncPTR s_vim_init[96U] =
    {
    &phantomInterrupt,
    &esmHighInterrupt, /* Channel 0 */
    &phantomnterrupt, /* Channel 1 */
    &rtiCompare0Interrupt, /* Channel 2 */
    &phantomInterrupt, /* Channel 3 */
    &phantomInterrupt, /* Channel 4 */
    &phantomInterrupt, /* Channel 5 */
    &phantomInterrupt, /* Channel 6 */
    &phantomInterrupt, /* Channel 7 */
    &phantomInterrupt, /* Channel 8 */
    &gioHighLevelInterrupt, /* Channel 9 */

    Please take a look at Channel 1 and tell me the problem! Manually fixing the problem just causes the problem to come back the next time that I generate the code. I just tried that. I fixed the issue and regenerated the code. True, I could add that function rather than adding the missing character.

    Please come out with a Hot Fix for me.

  • Hi,

    HALCoGen by default configures the Channel 1 ISR as phantomInterrupt. It also provides an option to the user to change the ISR name in VIM RAM tab. The new ISRs added by the user (in VIM RAM tab) must be defined by the user.

    You might have by mistake changed the channel 1 entry as phantomnterrupt which is causing the compile error.

    Regards,

    Veena

  • You are right. I somehow edited that field without knowing it. Thanks!