Flexcan Enhanced FIFO issues is S32DS configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexcan Enhanced FIFO issues is S32DS configuration

1,940 Views
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 Kudos
Reply
2 Replies

1,936 Views
karsen
Contributor II

the error code is :

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

TypeError: null has no such function "getValue"

0 Kudos
Reply

1,876 Views
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