Question for CAN acceptance filter

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

Question for CAN acceptance filter

1,139 Views
kimjunghyun
Contributor III

Hello.

I am Kim from south korea.

I have been using codewarrior to develop some items.

But I had a trouble and I need some help to answer my question.

My question is as below.

Please answer me if anyone can give a help

Thank you

Kim.

 

15188_15188.jpg1.jpg

Labels (1)
0 Kudos
9 Replies

759 Views
trytohelp
NXP Employee
NXP Employee

Hi Kim,

Early this year I've contacted the Processor Expert team for similar issue.

I've received feedback.

See below:

++++++++++++++++++++++++++

We have received the following feedback from the development team than analysed the issue:

- per manual recommandation (see footnote in chapter 8.4.3 Identifier Acceptance Filter), option "Four 16-bit acceptance filters" should be used for "Acceptance mode" property for standard identifiers.

- according to chapter 8.3.2.18 MSCAN Identifier Mask Registers (CANIDMR0-CANIDMR7), in order to receive standard identifiers in 16 bit filter mode, it is required to program the last three bits (AM[2:0]) in the mask registers CANIDMR1, CANIDMR3, CANIDMR5, and CANIDMR7 to "don't care". This accounts for the last 3 bits of the ID registers, which are unused. So, the two acceptance masks should be 0x00070007 (two filters per mask).

- the ID value must be in the most significant 11 bits of the CANIDARx registers, in order to compare them with the ID registers, who format is described in chapter 8.3.3.1.2 IDR0-IDR3 for Standard Identifier Mapping. 0x7DF << 5 = 0xFBE0. So the two acceptance codes should be 0xFBE0FBE0 (two filters per code).

++++++++++++++++++++++++++

You can download the reference manual on the web using the link:

       http://cache.freescale.com/files/microcontrollers/doc/ref_manual/MC9S12P128RMV1.pdf

Hope this will help you.


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

759 Views
kimjunghyun
Contributor III

Hi. Pascal.

I could not understand how to apply datasheet’s explanation to the Processor Expert(don’t care processing) but I could understand it through your answer.

Actually I have to use extended ID. So I set as below but CAN data was not received. I need your help.

ID that I have to receive : 0x18ff56e7, 0x18f00503

Setting for Processor Expert

- Acceptance mode : Two 32-bit acceptance filters

- Acceptance code1 : 18ff56e7

- Acceptance code2 : 18f00503

- Acceptance mask1 : 00180000

- Acceptance mask1 : 00180000

Thank you.

Best regards.

Kim.

0 Kudos

760 Views
trytohelp
NXP Employee
NXP Employee

Hi Kim,

Can you please provide me more information about the tool version used and the architecture (derivative) used ?


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

760 Views
kimjunghyun
Contributor III

Hi. Irrle

I have been waiting someone's answer. Thank you.

CodeWarrior : CodeWarrior IDE version 5.9.0

PE micro : USB Multilink Interface

And what is the architecture? (if you answer me, I would let you know)

Thank you.

Kim.

0 Kudos

760 Views
trytohelp
NXP Employee
NXP Employee


Hi Kim,

CodeWarrior IDE V5.9.0 is not the tool version but the version of IDE.

We've several development tool based on this IDE.

To know exactly the development tool suite you must:

  Start the IDE and click on Help | About Freescale CodeWarrior.

  Click on Installed Products 

  Provide us all info displayed.

  Or you can save them in a txt file.

The device architecture is needed too.

Regards

Pascal

0 Kudos

760 Views
kimjunghyun
Contributor III

Hi. Pascal.

Please refer as below picture.(Tool version)

But I could not find any icon to attach the txt file so I copied and pasted it here

Thank you.

Kim.

Tool version – captured from CodeWarrior.jpg

Installed Products:
CodeWarrior Development Studio for the S12(X) Version 5.1, build 10221.

IDE Version: 5.9.0 Build 5294
Plugins: 62

================================================================================================
ASINTPPC.dll              5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:59 오후     628K     
================================================================================================

================================================================================================
CmdIDE.exe                5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:16 오후     41K      
================================================================================================

================================================================================================
IDE.exe                   5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:12 오후     10.26M   
================================================================================================

================================================================================================
IDENewDialog.dll          5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:59 오후     201K     
================================================================================================

================================================================================================
IDE_MFC60cw.dll           6.00.8665.0               6.0.8665.0                6.0.4.0                   2010-08-05, 2:53 오후     1.59M    
================================================================================================

================================================================================================
IDE_MSL_DLL90_x86.dll     5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:50 오후     296K     
================================================================================================

================================================================================================
InstallHelperKeys.exe     No Version Info           0.0.0.0                   0.0.0.0                   2005-03-22, 7:01 오후     76K      
================================================================================================

================================================================================================
lmgr11.dll                No Version Info           0.0.0.0                   0.0.0.0                   2008-05-28, 5:05 오후     1.42M    
================================================================================================

================================================================================================
lmgr8c.dll                No Version Info           0.0.0.0                   0.0.0.0                   2004-02-15, 7:02 오후     832K     
================================================================================================

================================================================================================
MWCore5_0.dll             5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:54 오후     240K     
================================================================================================

================================================================================================
MWRADUtils.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:59 오후     260K     
================================================================================================

================================================================================================
Mwregsvr.exe              5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:01 오후     36K      
================================================================================================

================================================================================================
MWRegSvrWinApp.exe        5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:01 오후     36K      
================================================================================================

================================================================================================
PluginLib.dll             5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     120K     
================================================================================================

================================================================================================
PluginLib2.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     120K     
================================================================================================

================================================================================================
PluginLib3.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     120K     
================================================================================================

================================================================================================
PluginLib4.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     84K      
================================================================================================

================================================================================================
PluginLib5.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     84K      
================================================================================================

================================================================================================
PluginLib6.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:51 오후     84K      
================================================================================================

================================================================================================
SHW32.DLL                                           4.0.1.0                   4.0.1.0                   2000-02-11, 2:15 오전     110K     
================================================================================================

================================================================================================
sunvmhub.dll              No Version Info           0.0.0.0                   0.0.0.0                   2002-01-29, 11:20 오후    49K      
================================================================================================

================================================================================================
tcl84t.dll                8.4.12                    8.4.2.12                  8.4.2.12                  2006-09-25, 10:22 오후    576K     
================================================================================================

================================================================================================
utf8conversion.dll        No Version Info           0.0.0.0                   0.0.0.0                   2008-05-22, 7:36 오후     524K     
================================================================================================

================================================================================================
xerces-2_2_0.dll          2, 2, 0                   2.2.0.0                   2.2.0.0                   2010-08-05, 3:01 오후     2.14M    
================================================================================================

================================================================================================
Bin\Plugins\COM
================================================================================================
PE_prelink.dll            1, 0, 0, 4                1.0.0.4                   1.0.0.4                   2005-08-08, 1:34 오후     95K      
TipOfTheDay.dll           1,0,0,10221               1.0.0.10221               1.0.0.10221               2010-08-10, 4:41 오후     64K      
PE_Plugin.dll             4.44.0.5282               4.44.0.5282               4.44.0.5282               2010-08-16, 12:58 오후    7.50M    
PE_options.dll            1, 0, 0, 13               1.0.0.13                  1.0.0.13                  2005-08-08, 1:33 오후     32K      
MWActivate.dll            5.9.0.5294                5.9.0.5294                5.9.0.5294                2010-08-05, 3:16 오후     572K     
pe_init.exe               No Version Info           0.0.0.0                   0.0.0.0                   2009-03-17, 8:46 오후     92K      
PackAndGo.dll             1,0,0,10221               1.0.0.10221               1.0.0.10221               2010-08-10, 4:41 오후     344K     
DebugRegisterMgr.dll      5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:23 오후     116K     
HC12Wizard.dll            5.2.10221                 5.2.0.10221               5.2.0.10221               2010-08-10, 4:40 오후     960K     
DebugDatabase.dll         5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:23 오후     324K     
CPPCodeCompletion.dll     5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:15 오후     808K     

================================================================================================
Bin\Plugins
================================================================================================

================================================================================================
Bin\Plugins\compiler
================================================================================================
hw_hc12_assembler.dll     5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
hw_hc12_compiler.dll      5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
hw_hc12_importer.dll      5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
hw_xgate_assembler.dll    5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
hw_xgate_compiler.dll     5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
hw_xgate_importer.dll     5.0.14.10203              5.0.14.10203              5.0.14.10203              2014-05-21, 1:35 오후     116K     
OsekCompiler.dll          No Version Info           0.0.0.0                   0.0.0.0                   2014-05-21, 1:35 오후     116K     
PCLintCompiler.dll        No Version Info           0.0.0.0                   0.0.0.0                   2014-05-21, 1:35 오후     116K     

================================================================================================
Bin\Plugins\Editor
================================================================================================
HC12_Coloring             No Version Info           0.0.0.0                   0.0.0.0                   2006-06-20, 3:58 오후     46K      
MWE_Common_Coloring       No Version Info           0.0.0.0                   0.0.0.0                   2004-12-29, 9:23 오후     29K      
XGATE_Coloring            No Version Info           0.0.0.0                   0.0.0.0                   2004-05-05, 9:48 오후     35K      

================================================================================================
Bin\Plugins\linker
================================================================================================
BatchRunnerPostLinker.dll 2.0.0 Build 0006          2.0.0.6                   2.0.0.6                   2004-07-09, 2:01 오후     40K      
BatchRunnerPreLinker.dll  1.0.0 build 0002          1.0.0.2                   1.0.0.2                   2004-07-09, 2:01 오후     42K      
ExternalBuildLinker.dll   5.9.0.5294                5.9.0.5294                5.9.0.5294                2010-08-05, 3:28 오후     80K      
hw_hc12_libmaker.dll      5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    92K      
hw_hc12_linker.dll        5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    92K      
hw_xgate_libmaker.dll     5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    92K      
hw_xgate_linker.dll       5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    92K      
PCLintLinker.dll          1.5                       1.5.0.5                   1.5.0.5                   2003-09-04, 4:58 오후     84K      

================================================================================================
Bin\Plugins\preference_panel
================================================================================================
hw_hc12_assembler_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_hc12_burner_panel.dll  5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_hc12_compiler_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_hc12_importer_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_hc12_libmaker_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_hc12_linker_panel.dll  5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_assembler_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_burner_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_compiler_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_importer_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_libmaker_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
hw_xgate_linker_panel.dll 5.0.14.10203              5.0.14.10203              5.0.14.10203              2010-07-23, 11:20 오전    89K      
OsekPanel.dll             2, 1, 2, 0                2.1.2.0                   2.1.2.0                   2006-08-29, 6:11 오후     70K      
PBatchRunnerPostLinker.dll 2.0.0 Build 0004          2.0.0.4                   2.0.0.4                   2003-09-11, 11:31 오후    39K      
PBatchRunnerPreLinker.dll 1.0.0 build 0003          1.0.0.3                   1.0.0.3                   2003-09-11, 11:31 오후    29K      
PCLintOptions.dll         1.5                       1.5.0.5                   1.5.0.5                   2003-09-04, 4:58 오후     41K      
PCLintSettings.dll        1.5                       1.5.0.5                   1.5.0.5                   2003-09-04, 4:58 오후     82K      
PDebugx86Except.dll       5.9 Build 5294            5.8.0.0                   5.8.0.0                   2010-08-05, 3:29 오후     64K      
PExternalBuild.dll        1.0.1.0                   1.0.1.0                   1.0.1.0                   2010-08-05, 3:28 오후     64K      
pMWCVS.dll                1.3.0.5294                1.3.0.5294                1.3.0.5294                2010-08-05, 3:29 오후     64K      
pmwSourceSafe.dll         5.5.1.40704               5.5.1.40704               5.5.1.40704               2004-04-13, 5:47 오후     29K      

================================================================================================
Bin\Plugins\Support
================================================================================================
CPlusSourceGen.dll        5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:13 오후     272K     
MWComBase.dll             5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:58 오후     64K      
MWComHelpers.DLL          5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:55 오후     460K     
MWRadModel.dll            5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:00 오후     572K     

================================================================================================
Bin\Plugins\version_control
================================================================================================
mwcvs.dll                 1.3.0.5294                1.3.0.5294                1.3.0.5294                2010-08-05, 3:29 오후     228K     
mwSourceSafe.dll          1.0.3.716                 1.0.3.716                 1.0.3.716                 2004-04-13, 5:47 오후     137K     
VCSClearCase.dll          1.1.2.1999                1.1.2.1999                1.1.2.1999                2004-09-29, 5:28 오후     76K      

================================================================================================
Bin\resource
================================================================================================
CPlusResources.dll        5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:13 오후     24K      
ExternalBuildResources.dll 5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 3:28 오후     6K       
IDEAuxiliaryResources.dll 5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:55 오후     44K      
IDEResources.dll          5.9.0 Build 5294          5.9.0.5294                5.9.0.5294                2010-08-05, 2:55 오후     52K      

0 Kudos

759 Views
trytohelp
NXP Employee
NXP Employee

Hi Kim,

thanks for details.

I will start to investigate the problem.

Just another question.

      What is the derivative used ?


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

760 Views
kimjunghyun
Contributor III

Hi. Pascal.

What is the derivative? (Do you mean MCU? MC9S12P64_48QFN is used)

Thank you.

Kim

0 Kudos

759 Views
trytohelp
NXP Employee
NXP Employee

perfect.

Keep you informed.


Have a great day,
Pascal Irrle

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos