iLLd demo missing files

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User16898
Level 4
Level 4
hi,
i tried to run IOM demo provided with iLLD library, (version iLLD_Demos_1_0_1_10_0)
but demo contains unresolved references to files and structures:

typedef struct
#include "Iom/Iom/IfxIom_Iom.h"

{
IfxIom_Iom_EcmConfig ecmConfig; /**< \brief Event Combiner Module Configuration structure */
IfxIom_Iom_FpcConfig fpcConfig; /**< \brief Filter & Prescaler Configuration structure */
IfxIom_Iom_LamConfig lamConfig; /**< \brief Logical Analayser Module Configuration structure */
IfxIom_Iom iom; /**< \brief Iom handle */

volatile unsigned counterTimer; /**< \brief counter to track alarm signal */

IfxGtm_Tom_Timer tomTimerref; /**< \brief Iom Reference signal handle */
IfxGtm_Tom_PwmHl tomPwmref; /**< \brief pwm handle */

IfxGtm_Tom_Timer tomTimermon; /**< \brief Iom Monitor signal handle */
IfxGtm_Tom_PwmHl tomPwmmon; /**< \brief pwm handle */
} App_Iom;

there is no /Iom/Iom/ directory,
There is no IfxIom_Iom.h file in iLLd. Also are IfxIom_Iom_... structures are undefined
Is this sample copy pasted from an older iLLD version ?

How to solve this problem ?
0 Likes
2 Replies
User17486
Level 1
Level 1
Perhaps a stupid question, but still.
In order to run the demo, you need to "merge" the 0_Src example folder with the 0_Src baseframework folder. Thus, in the src/appsw/tricore folder you will have sample files (cpu0_main etc.) and when building the iLLD files will be picked up from the src/basesw/illd/ folder.
I have the files you specify added using #include without problems.
UPD:
I checked the files in place.
Try

#include
0 Likes
User19938
Level 1
Level 1
I managed to answer this question since I am using the Demo and Driver package version 1.10, Iom must be replaced with Std. However, I get these errors and console logs when I build it:

Now the make files are generated !!!

Now Build started !!!
Compiling 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c
In file included from ./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h:50:0,
from ./0_Src/4_McHal/Tricore/Cpu/Irq/IfxCpu_Irq.h:42,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:35,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:
./0_Src/4_McHal/Tricore/_Impl/IfxCpu_cfg.h:150:8: error: unknown type name 'IFX_CONST'
IFX_EXTERN IFX_CONST IfxModule_IndexMap IfxCpu_cfg_indexMap[IFXCPU_NUM_MODULES];
^
./0_Src/4_McHal/Tricore/_Impl/IfxCpu_cfg.h:150:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'IfxCpu_cfg_indexMap'
IFX_EXTERN IFX_CONST IfxModule_IndexMap IfxCpu_cfg_indexMap[IFXCPU_NUM_MODULES];
^
In file included from ./0_Src/4_McHal/Tricore/Port/Std/IfxPort.h:43:0,
from ./0_Src/4_McHal/Tricore/_PinMap/IfxScu_PinMap.h:33,
from ./0_Src/4_McHal/Tricore/Scu/Std/IfxScuCcu.h:111,
from ./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h:57,
from ./0_Src/4_McHal/Tricore/Cpu/Irq/IfxCpu_Irq.h:42,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:35,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:
./0_Src/4_McHal/Tricore/_Impl/IfxPort_cfg.h:96:8: error: unknown type name 'IFX_CONST'
IFX_EXTERN IFX_CONST IfxPort_Esr_Masks IfxPort_cfg_esrMasks[IFXPORT_NUM_MODULES];
^
./0_Src/4_McHal/Tricore/_Impl/IfxPort_cfg.h:96:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'IfxPort_cfg_esrMasks'
IFX_EXTERN IFX_CONST IfxPort_Esr_Masks IfxPort_cfg_esrMasks[IFXPORT_NUM_MODULES];
^
./0_Src/4_McHal/Tricore/_Impl/IfxPort_cfg.h:98:8: error: unknown type name 'IFX_CONST'
IFX_EXTERN IFX_CONST IfxModule_IndexMap IfxPort_cfg_indexMap[IFXPORT_NUM_MODULES];
^
./0_Src/4_McHal/Tricore/_Impl/IfxPort_cfg.h:98:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'IfxPort_cfg_indexMap'
IFX_EXTERN IFX_CONST IfxModule_IndexMap IfxPort_cfg_indexMap[IFXPORT_NUM_MODULES];
^
In file included from ./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h:57:0,
from ./0_Src/4_McHal/Tricore/Cpu/Irq/IfxCpu_Irq.h:42,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:35,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:
./0_Src/4_McHal/Tricore/Scu/Std/IfxScuCcu.h:1055:8: error: unknown type name 'IFX_CONST'
IFX_EXTERN IFX_CONST IfxScuCcu_Config IfxScuCcu_defaultClockConfig;
^
./0_Src/4_McHal/Tricore/Scu/Std/IfxScuCcu.h:1055:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'IfxScuCcu_defaultClockConfig'
IFX_EXTERN IFX_CONST IfxScuCcu_Config IfxScuCcu_defaultClockConfig;
^
./0_Src/4_McHal/Tricore/Scu/Std/IfxScuCcu.h:1060:8: error: unknown type name 'IFX_CONST'
IFX_EXTERN IFX_CONST IfxScuCcu_ErayPllConfig IfxScuCcu_defaultErayPllConfig;
^
./0_Src/4_McHal/Tricore/Scu/Std/IfxScuCcu.h:1060:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'IfxScuCcu_defaultErayPllConfig'
IFX_EXTERN IFX_CONST IfxScuCcu_ErayPllConfig IfxScuCcu_defaultErayPllConfig;
^
In file included from ./0_Src/4_McHal/Tricore/Cpu/Irq/IfxCpu_Irq.h:42:0,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:35,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:
./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h: In function 'IfxCpu_getAddress':
./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h:730:29: error: 'IfxCpu_cfg_indexMap' undeclared (first use in this function)
module = (Ifx_CPU *)IfxCpu_cfg_indexMap[cpu].module;
^
./0_Src/4_McHal/Tricore/Cpu/Std/IfxCpu.h:730:29: note: each undeclared identifier is reported only once for each function it appears in
In file included from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:37:0,
from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:
./0_Src/4_McHal/Tricore/Gtm/Tom/PwmHl/IfxGtm_Tom_PwmHl.h: At top level:
./0_Src/4_McHal/Tricore/Gtm/Tom/PwmHl/IfxGtm_Tom_PwmHl.h:175:5: error: unknown type name 'IFX_CONST'
IFX_CONST IfxGtm_Tom_ToutMapP *ccx; /**< \brief Pointer to an array of size base.channelCount/2 containing the channels used. All channels used for ccx and coutx must be adjacent to the channel used for the timer, order is not important. */
^
./0_Src/4_McHal/Tricore/Gtm/Tom/PwmHl/IfxGtm_Tom_PwmHl.h:175:35: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
IFX_CONST IfxGtm_Tom_ToutMapP *ccx; /**< \brief Pointer to an array of size base.channelCount/2 containing the channels used. All channels used for ccx and coutx must be adjacent to the channel used for the timer, order is not important. */
^
In file included from 0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:29:0:
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:66:5: error: unknown type name 'IfxIom_Iom_EcmConfig'
IfxIom_Iom_EcmConfig ecmConfig; /**< \brief Event Combiner Module Configuration structure */
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:67:5: error: unknown type name 'IfxIom_Iom_FpcConfig'
IfxIom_Iom_FpcConfig fpcConfig; /**< \brief Filter & Prescaler Configuration structure */
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:68:5: error: unknown type name 'IfxIom_Iom_LamConfig'
IfxIom_Iom_LamConfig lamConfig; /**< \brief Logical Analayser Module Configuration structure */
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.h:69:5: error: unknown type name 'IfxIom_Iom'
IfxIom_Iom iom; /**< \brief Iom handle */
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c: In function 'fpcSuppliedConfig':
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:131:20: error: request for member 'channelId' in something not a structure or union
g_Iom.fpcConfig.channelId = IfxIom_FpcChannelId_14;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:131:33: error: 'IfxIom_FpcChannelId_14' undeclared (first use in this function)
g_Iom.fpcConfig.channelId = IfxIom_FpcChannelId_14;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:132:20: error: request for member 'filterMode' in something not a structure or union
g_Iom.fpcConfig.filterMode = IfxIom_FilterMode_delayedDebounce;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:132:34: error: 'IfxIom_FilterMode_delayedDebounce' undeclared (first use in this function)
g_Iom.fpcConfig.filterMode = IfxIom_FilterMode_delayedDebounce;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:133:20: error: request for member 'comparatorThreshold' in something not a structure or union
g_Iom.fpcConfig.comparatorThreshold = 100;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:134:20: error: request for member 'monitorSignal' in something not a structure or union
g_Iom.fpcConfig.monitorSignal = IfxIom_MonitorSignal_0;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:134:37: error: 'IfxIom_MonitorSignal_0' undeclared (first use in this function)
g_Iom.fpcConfig.monitorSignal = IfxIom_MonitorSignal_0;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:135:20: error: request for member 'referenceSignal' in something not a structure or union
g_Iom.fpcConfig.referenceSignal = IfxIom_ReferenceSignal_0;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:135:39: error: 'IfxIom_ReferenceSignal_0' undeclared (first use in this function)
g_Iom.fpcConfig.referenceSignal = IfxIom_ReferenceSignal_0;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:136:20: error: request for member 'timerReset' in something not a structure or union
g_Iom.fpcConfig.timerReset = TRUE;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:137:20: error: request for member 'edgeType' in something not a structure or union
g_Iom.fpcConfig.edgeType = IfxIom_EdgeClearType_risingFalling;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:137:32: error: 'IfxIom_EdgeClearType_risingFalling' undeclared (first use in this function)
g_Iom.fpcConfig.edgeType = IfxIom_EdgeClearType_risingFalling;
^
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c: In function 'lamSuppliedConfig':
0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.c:148:20: error: request for member 'monitorSignalInverted' in something not a structure or union
g_Iom.lamConfig.monitorSignalInverted = FALSE;
^

make[1]: *** [2_Out/Gnuc/0_Src/0_AppSw/Tricore/Demo_Illd/IomDemo.o] Error 1
make: *** [build] Error 2
0 Likes