Flexcan Enhanced FIFO issues is S32DS configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Flexcan Enhanced FIFO issues is S32DS configuration

1,986 次查看
karsen
Contributor II

1.  DS version : 3.5

2. SDK version : S32K 3.0.0

3. as flexcan said, the enhanced FIFO could be used in FD format, but when I configure CANFD and enhanced FIFO tegother ,it raise "TypeError" error and can not generate code. When I remove one of them, this error disappered.

I modify this based on example "Can_Example_S32K344".

4. Also , I see that in Mcal configuration , only "CanHardwareObject_0" can be use with FIFO,

but this object can only be configured with on filter type,  basic or extend, mix is not worked, it is auto changed to extend , how can I configure baisc and extend filter type together ?

 

0 项奖励
回复
2 回复数

1,982 次查看
karsen
Contributor II

the error code is :

(Hoh.getChildById("CanObjectType ").getValue() == "RECEIVE") && (bFlagFIFO[ctrlId] == false))

TypeError: null has no such function "getValue"

0 项奖励
回复

1,922 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

In the past, the development team detected this issue and it will be fixed on the S32K3 releases in the future.

And there is a workaround for this issue: modify the code at line number 1052 in the file: "C:\NXP\S32DS.3.5\eclipse\mcu_data\components\PlatformSDK_S32K3\Can_43_FLEXCAN\Can_PBcfg.c" as below.

original: (Hoh.getChildById("CanObjectType ").getValue() == "RECEIVE") && (bFlagFIFO[ctrlId] == false))
workaround: (Hoh.getChildById("CanObjectType").getValue() == "RECEIVE") && (bFlagFIFO[ctrlId] == false))
 
BR, Petr