Example MPC5744P FlexCAN simpleTXRX GHS614

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

Example MPC5744P FlexCAN simpleTXRX GHS614

Example MPC5744P FlexCAN simpleTXRX GHS614

********************************************************************************

* Detailed Description:

*

*

* Initializes the MCU including the FlexCAN peripherals.

* Configures the FlexCAN to transmit and receive a CAN message.

*

* In this config, CAN_0 transmits a message. CAN_1 receives the message.

* CAN_0 MB8 is configured to send data. CAN_0 sends message each 1sec.

* This interval is generated by PIT.

* CAN_1 MB9 is configured to receive a message, SW polling is used.

*

* to connect FlexCAN0 module (MCU's PB0/PB1 pins) to the motherboard's transceiver

* with J5 CAN DB9 connector you have to:

* - connect J17 2-6 on daughter board

* - connect J17 5-3 on daughter board

* This should be done as default

 

* To connect FlexCAN1 module (MCU's PA14/PA15 pins) to the motherboard's transceiver

* with J6 CAN DB9 connector you have to:

* - connect J37 2-3 on motherboard

* - connect J38 2-3 on motherboard

*

* Connect CAN0-CANH on P15-1 to CAN1-CANH on P14-1

* Connect CAN0-CANL on P15-2 to CAN1-CANL on P14-2

* Terminate the CAN bus by connecting a 60 ohm resistor between CANH and CANL

* ------------------------------------------------------------------------------

* Test HW:  MPC57xx

* Maskset:  1N65H

* Target :  internal_FLASH

* Fsys:     200 MHz PLL with 40 MHz crystal reference

*

********************************************************************************

Labels (1)
Attachments
Comments

Dear Diana Torres & Petr Stanc

Do you have SPC5744P's CAN transceiver software based on the S32DS for power V1.2 development environment demo?.

Hi everyone,

I am looking for an example of two  MPC5744P boards that communicate together using  FlexCAN protocol.

May someone help me?

%3CLINGO-SUB%20id%3D%22lingo-sub-1104648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20FlexCAN%20simpleTXRX%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1104648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Initializes%20the%20MCU%20including%20the%20FlexCAN%20peripherals.%3C%2FP%3E%3CP%3E*%20Configures%20the%20FlexCAN%20to%20transmit%20and%20receive%20a%20CAN%20message.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20In%20this%20config%2C%20CAN_0%20transmits%20a%20message.%20CAN_1%20receives%20the%20message.%3C%2FP%3E%3CP%3E*%20CAN_0%20MB8%20is%20configured%20to%20send%20data.%20CAN_0%20sends%20message%20each%201sec.%3C%2FP%3E%3CP%3E*%20This%20interval%20is%20generated%20by%20PIT.%3C%2FP%3E%3CP%3E*%20CAN_1%20MB9%20is%20configured%20to%20receive%20a%20message%2C%20SW%20polling%20is%20used.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20to%20connect%20FlexCAN0%20module%20(MCU's%20PB0%2FPB1%20pins)%20to%20the%20motherboard's%20transceiver%3C%2FP%3E%3CP%3E*%20with%20J5%20CAN%20DB9%20connector%20you%20have%20to%3A%3C%2FP%3E%3CP%3E*%20-%20connect%20J17%202-6%20on%20daughter%20board%3C%2FP%3E%3CP%3E*%20-%20connect%20J17%205-3%20on%20daughter%20board%3C%2FP%3E%3CP%3E*%20This%20should%20be%20done%20as%20default%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20To%20connect%20FlexCAN1%20module%20(MCU's%20PA14%2FPA15%20pins)%20to%20the%20motherboard's%20transceiver%3C%2FP%3E%3CP%3E*%20with%20J6%20CAN%20DB9%20connector%20you%20have%20to%3A%3C%2FP%3E%3CP%3E*%20-%20connect%20J37%202-3%20on%20motherboard%3C%2FP%3E%3CP%3E*%20-%20connect%20J38%202-3%20on%20motherboard%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Connect%20CAN0-CANH%20on%20P15-1%20to%20CAN1-CANH%20on%20P14-1%3C%2FP%3E%3CP%3E*%20Connect%20CAN0-CANL%20on%20P15-2%20to%20CAN1-CANL%20on%20P14-2%3C%2FP%3E%3CP%3E*%20Terminate%20the%20CAN%20bus%20by%20connecting%20a%2060%20ohm%20resistor%20between%20CANH%20and%20CANL%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%3C%2FP%3E%3CP%3E*%20Maskset%3A%26nbsp%3B%201N65H%3C%2FP%3E%3CP%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1104648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Initializes%20the%20MCU%20including%20the%20FlexCAN%20peripherals.%3C%2FP%3E%3CP%3E*%20Configures%20the%20FlexCAN%20to%20transmit%20and%20receive%20a%20CAN%20message.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20In%20this%20config%2C%20CAN_0%20transmits%20a%20message.%20CAN_1%20receives%20the%20message.%3C%2FP%3E%3CP%3E*%20CAN_0%20MB8%20is%20configured%20to%20send%20data.%20CAN_0%20sends%20message%20each%201sec.%3C%2FP%3E%3CP%3E*%20This%20interval%20is%20generated%20by%20PIT.%3C%2FP%3E%3CP%3E*%20CAN_1%20MB9%20is%20configured%20to%20receive%20a%20message%2C%20SW%20polling%20is%20used.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20to%20connect%20FlexCAN0%20module%20(MCU's%20PB0%2FPB1%20pins)%20to%20the%20motherboard's%20transceiver%3C%2FP%3E%3CP%3E*%20with%20J5%20CAN%20DB9%20connector%20you%20have%20to%3A%3C%2FP%3E%3CP%3E*%20-%20connect%20J17%202-6%20on%20daughter%20board%3C%2FP%3E%3CP%3E*%20-%20connect%20J17%205-3%20on%20daughter%20board%3C%2FP%3E%3CP%3E*%20This%20should%20be%20done%20as%20default%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20To%20connect%20FlexCAN1%20module%20(MCU's%20PA14%2FPA15%20pins)%20to%20the%20motherboard's%20transceiver%3C%2FP%3E%3CP%3E*%20with%20J6%20CAN%20DB9%20connector%20you%20have%20to%3A%3C%2FP%3E%3CP%3E*%20-%20connect%20J37%202-3%20on%20motherboard%3C%2FP%3E%3CP%3E*%20-%20connect%20J38%202-3%20on%20motherboard%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Connect%20CAN0-CANH%20on%20P15-1%20to%20CAN1-CANH%20on%20P14-1%3C%2FP%3E%3CP%3E*%20Connect%20CAN0-CANL%20on%20P15-2%20to%20CAN1-CANL%20on%20P14-2%3C%2FP%3E%3CP%3E*%20Terminate%20the%20CAN%20bus%20by%20connecting%20a%2060%20ohm%20resistor%20between%20CANH%20and%20CANL%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%3C%2FP%3E%3CP%3E*%20Maskset%3A%26nbsp%3B%201N65H%3C%2FP%3E%3CP%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1104648%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1104650%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5744P%20FlexCAN%20simpleTXRX%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1104650%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3EI%20am%20looking%20for%20an%20example%20of%20two%26nbsp%3B%20MPC5744P%20boards%20that%20communicate%20together%20using%26nbsp%3B%20FlexCAN%26nbsp%3Bprotocol.%3C%2FP%3E%3CP%3EMay%20someone%20help%20me%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1104649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5744P%20FlexCAN%20simpleTXRX%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1104649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Diana%20Torres%20%26amp%3B%26nbsp%3B%3CA%20_jive_internal%3D%22true%22%20data-content-finding%3D%22Community%22%20data-userid%3D%22211729%22%20data-username%3D%22PetrS%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2FPetrS%22%20target%3D%22_blank%22%3EPetr%20Stanc%3C%2FA%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%20dir%3D%22ltr%22%3E%3CP%3EDo%20you%20have%20SPC5744P's%20CAN%20transceiver%20software%20based%20on%20the%20S32DS%20for%20power%20V1.2%20development%20environment%20demo%3F.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎03-18-2015 12:56 AM
Updated by: